angr.mcp.errors

exception angr.mcp.errors.MCPAngrError

Bases: AngrError, ToolError

Base exception for MCP angr server errors.

Also a fastmcp ToolError: FastMCP masks the message of anything else, so a client would otherwise see a generic failure instead of the reason.

exception angr.mcp.errors.ProjectNotFoundError

Bases: MCPAngrError

Raised when a project ID is not found.

exception angr.mcp.errors.CFGNotBuiltError

Bases: MCPAngrError

Raised when CFG is required but not built.

exception angr.mcp.errors.FunctionNotFoundError

Bases: MCPAngrError

Raised when a function cannot be found.

exception angr.mcp.errors.DecompilationError

Bases: MCPAngrError

Raised when decompilation fails.

exception angr.mcp.errors.DecompilationComplexityError

Bases: DecompilationError

Raised when a function is too large for the decompiler’s complexity limits.

The message names the limit and the measured size so the caller can decide whether to raise the limit or skip the function.

exception angr.mcp.errors.InvalidArgumentError

Bases: MCPAngrError, ValueError

Raised when a tool is called with unusable arguments.