Back to guide/General Productivity

MCP Error Handler

Including the last working state helps narrow the diagnosis to what changed, dramatically reducing debugging time.

mcp-setup-guideserver_nameerror_messageai_tool
Edit View
Prompt
My MCP server "{{server_name}}" is returning the following error:\n\n{{error_message}}\n\nContext:\n- AI tool: {{ai_tool}}\n- Server command: {{server_command}}\n- Config file location: {{config_path}}\n- Last working state: {{last_working_description}}\n\nDiagnose the issue and provide:\n1. Most likely cause\n2. Step-by-step fix\n3. How to verify the fix worked\n4. Preventive measures to avoid this error in the future

Variables to customize

{{server_name}}{{error_message}}{{ai_tool}}{{server_command}}{{config_path}}{{last_working_description}}

Why this prompt works

Including the last working state helps narrow the diagnosis to what changed, dramatically reducing debugging time.

Save this prompt to your library

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