Skip to main content

TestMCPServerConnection

POST 

/v1/customers/:customer_id/projects/:project_id/users/:user_id/mcp-servers/:server_id:test

TestMCPServerConnection runs an MCP handshake (initialize, then tools/list) against a server the caller may attach in the project. When the data plane that serves the project reports 0.13.0 or later, that data plane runs the handshake from inside its own network, so the test reaches the server the way the profile's clients do. Otherwise valet calls the server's catalog URL. It sends the caller's stored OAuth token for an OAuth server, or upstream_token. An expired or missing OAuth token returns FAILED_PRECONDITION. Only a signed-in session acting for itself may call it. Internal: the Developer Console's Test connection button.

Request​

Responses​

Success