> ## Documentation Index
> Fetch the complete documentation index at: https://resq-dependabot-github-actions-github-actions-478e18be3d.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Errors

<a id="resq_mcp.core.errors" />

# 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.

<a id="resq_mcp.core.errors.annotations" />

## annotations

<a id="resq_mcp.core.errors.json" />

## json

<a id="resq_mcp.core.errors.Any" />

## Any

<a id="resq_mcp.core.errors.MCPErrorFormatter" />

## MCPErrorFormatter Objects

```python theme={null}
class MCPErrorFormatter()
```

Formats errors consistently for MCP AI clients.

<a id="resq_mcp.core.errors.MCPErrorFormatter.format_error" />

#### MCPErrorFormatter.format\_error

```python theme={null}
@staticmethod
def format_error(error_type: str,
                 message: str,
                 details: dict[str, Any] | None = None,
                 suggestion: str | None = None,
                 http_status: int | None = None) -> str
```

Format a structured error response as JSON.

<a id="resq_mcp.core.errors.MCPErrorFormatter.from_exception" />

#### MCPErrorFormatter.from\_exception

```python theme={null}
@staticmethod
def from_exception(exception: Exception,
                   operation: str,
                   context: dict[str, Any] | None = None) -> str
```

Format error from a Python exception.
