Test Mcp Server Connectivity
This endpoint allows you to test if the provided URL and custom headers for an MCP server are valid.
More specifically, the API will attempt to list tools of an MCP server using the provided configuration. This allows you to verify whether the URL and custom headers are correct even before creating the MCP server configuration.
To test the configuration of an existing MCP server, you can instead use the
/test-connection/<mcp-server> endpoint.
Show optional properties
{
"url": "string",
"transport": "string"
}
{
"url": "string",
"transport": "string",
"headers": {
"headers": "string"
}
}
Base URL to access the MCP server.
MCP server communication transport protocol
A list of HTTP headers for the MCP server.
Outcome of validating the connectivity.
{
"status": "string",
"detail": "string"
}
MCP server connectivity result.
Details about the connectivity result, if any.
Validation Error
{
"detail": [
{
"loc": [
{}
],
"msg": "string",
"type": "string"
}
]
}
detail
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"url":"string","transport":"string"}' https://{api_host}/api/v1/control/mcp-servers/test-connection