Test Mcp Server Configuration
This endpoint allows you to test if an MCP server has been configured correctly.
More specifically, the API will attempt to connect to the MCP server as it would when the PAIS backend lists available tools. This allows you to verify whether the stored URL is correct and the PAIS system can connect to the MCP server APIs using the provided custom headers.
To test the configuration before creating the MCP server configuration, you can
instead use the /test-connection endpoint.
mcp_server_id
Outcome of validating the configuration of the MCP server.
{
"status": "string",
"detail": "string"
}
MCP server connectivity result.
Details about the connectivity result, if any.
Invalid MCP server ID.
Validation Error
{
"detail": [
{
"loc": [
{}
],
"msg": "string",
"type": "string"
}
]
}
detail
curl -H 'Authorization: <value>' https://{api_host}/api/v1/control/mcp-servers/test-connection/{mcp_server_id}