test_connection
Test if a configured MCP server starts and responds correctly by spawning the process, connecting via stdio, and verifying tool listing. Use after configuring a server or when health check fails.
Instructions
Test that a single configured MCP server starts and responds correctly.
Spawns the server process, connects via MCP stdio protocol, calls list_tools() to verify it responds, then shuts it down cleanly.
Use this to verify a specific server after configure_server, or to debug a server that check_health reported as unhealthy.
Args: server_name: Exact name of the server as it appears in the config. Use list_installed to see available names. client: Which MCP client's config to read from. One of "claude_desktop", "claude_code", "cursor", "windsurf". Auto-detects if empty. timeout_seconds: Max seconds to wait for a response (clamped to 5-60). Default 15. Increase for slow-starting servers. auto_heal: When True, if the test fails, attempt to diagnose the error, apply an automatic fix, and retry. Returns healing details alongside the test result.
Returns: Test result with success status, discovered tool names, or error message explaining what went wrong. If auto_heal is True and healing was attempted, includes a "healing" key with diagnosis and fix details.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| server_name | Yes | ||
| client | No | ||
| timeout_seconds | No | ||
| auto_heal | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||