Back to guide/General Productivity

MCP Connection Test Script

Step-by-step diagnostics isolate exactly where a connection fails instead of giving a generic 'not working' error.

mcp-setup-guideserver_nameruntimeoperating_system
Edit View
Prompt
Write a diagnostic script that tests whether my MCP server "{{server_name}}" is properly connected and responding.\n\nThe script should:\n1. Verify the server process is running\n2. Send a basic initialization handshake\n3. List available tools from the server\n4. Call a simple test tool (like list or ping) and verify the response\n5. Report success/failure with clear error messages for each step\n\nTarget environment: {{runtime}} on {{operating_system}}\nServer command: {{server_command}}

Variables to customize

{{server_name}}{{runtime}}{{operating_system}}{{server_command}}

Why this prompt works

Step-by-step diagnostics isolate exactly where a connection fails instead of giving a generic 'not working' error.

Save this prompt to your library

Organize, version, and access your best prompts across ChatGPT, Claude, and Cursor.