Skip to main content
POST
/
api
/
mcp-validate-config
Validate MCP server configuration
curl --request POST \
  --url http://localhost:5173/api/mcp-validate-config \
  --header 'Content-Type: application/json' \
  --cookie apiKeys= \
  --data '
{
  "serverName": "<string>",
  "config": {
    "type": "stdio",
    "command": "<string>",
    "url": "<string>",
    "headers": {},
    "cwd": "<string>",
    "env": {}
  }
}
'
{
  "valid": true,
  "errors": [
    "<string>"
  ]
}

Authorizations

apiKeys
string
cookie
required

Cookie-based authentication storing API keys and provider settings

Body

application/json
serverName
string
required

Name of the MCP server to validate

config
object
required

Response

Validation result

valid
boolean
errors
string[]