Skip to main content
POST
/
api
/
mcp
/
validate
curl -X POST https://api.example.com/api/mcp/validate \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "transportType": "http",
    "url": "https://mcp-server.example.com",
    "connectionType": "proxy"
  }'
{
  "valid": true,
  "message": "Server validation successful",
  "status": "ok",
  "capabilities": {
    "tools": true,
    "resources": true,
    "prompts": true
  },
  "serverInfo": {
    "name": "Example MCP Server",
    "version": "1.0.0"
  }
}

Request Body

transportType
string
required
Transport protocol type. Must be one of: stdio, http, or sse
url
string
Server URL for HTTP/SSE transport
command
string
Command to execute for stdio transport
args
string
Command arguments for stdio transport
env
object
Environment variables as key-value pairs
customHeaders
array
Custom HTTP headers
connectionType
string
default:"proxy"
Connection type. Must be either direct or proxy
proxyUrl
string
Proxy URL if using proxy connection

Response

valid
boolean
Whether the server configuration is valid
message
string
Validation message or error details
status
string
Validation status: ok, error, or timeout
capabilities
object
Server capabilities if validation successful
serverInfo
object
Server implementation details
curl -X POST https://api.example.com/api/mcp/validate \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "transportType": "http",
    "url": "https://mcp-server.example.com",
    "connectionType": "proxy"
  }'
{
  "valid": true,
  "message": "Server validation successful",
  "status": "ok",
  "capabilities": {
    "tools": true,
    "resources": true,
    "prompts": true
  },
  "serverInfo": {
    "name": "Example MCP Server",
    "version": "1.0.0"
  }
}