Base MCP error carrying a JSON-RPC error code.
| 4 | |
| 5 | |
| 6 | class MCPError(Exception): |
| 7 | """Base MCP error carrying a JSON-RPC error code.""" |
| 8 | |
| 9 | code = -32603 |
| 10 | |
| 11 | def __init__(self, message: str): |
| 12 | super().__init__(message) |
| 13 | |
| 14 | |
| 15 | class ToolNotFoundError(MCPError): |
no outgoing calls
no test coverage detected
searching dependent graphs…