MCP Builder Error Handling

Sub-skill of mcp-builder: Error Handling.

vamseeachanta 80249c1 898 B Updated

File contents

Error Handling

Error Handling

Common Errors

Error Cause Solution
ECONNREFUSED Server not running Start the MCP server process
Tool not found Incorrect tool name Check ListToolsRequestSchema handler
Invalid arguments Schema mismatch Validate against inputSchema
Authentication failed Missing/invalid API key Set environment variable correctly
Timeout Slow response Increase MCP_TIMEOUT or optimize handler

Error Template

try {
  const result = await operation();
  return { content: [{ type: "text", text: JSON.stringify(result) }] };
} catch (error) {
  throw new Error(
    `Operation failed: ${error.message}. ` +
    `Please check your configuration and try again.`
  );
}

vamseeachanta/workspace-hub/tree/main/.agents/skills/_archive/development/mcp-builder/error-handling commit 80249c1526

Frequently asked questions

npx skillmds@latest add vamseeachanta/mcp-builder-error-handling