Validate Mcp Connection
POST/v1/mcp/validate
Test connection to an MCP server WITHOUT requiring an agent.
Used during agent creation flow to validate MCP config before the agent exists in the database.
This endpoint:
- Validates the MCP server endpoint
- Establishes a test connection
- Fetches the list of available tools
- Returns connection status and tools (does NOT persist anything)
Example Request:
{
"endpoint": "https://my-mcp-server.com/sse",
"transport_type": "sse",
"auth_header": "Bearer xxx"
}
Request
Responses
- 200
- 422
Successful Response
Validation Error