Skip to main content

resq_mcp.core.errors

Structured error handling for ResQ MCP tools. Provides consistent, AI-client-friendly error responses with actionable context. Inspired by Archon MCP server error handling patterns.

annotations

json

Any

MCPErrorFormatter Objects

Formats errors consistently for MCP AI clients.

MCPErrorFormatter.format_error

Format a structured error response as JSON.

MCPErrorFormatter.from_exception

Format error from a Python exception.