"""Custom exceptions for FastMCP."""
from mcp import McpError # noqa: F401
class FastMCPError(Exception):
"""Base error for FastMCP."""
class ValidationError(FastMCPError):
"""Error in validating parameters or return values."""
class ResourceError(FastMCPError):
"""Error in resource operations."""
class ToolError(FastMCPError):
"""Error in tool operations."""
class PromptError(FastMCPError):
"""Error in prompt operations."""
class InvalidSignature(Exception):
"""Invalid signature for use with FastMCP."""
class ClientError(Exception):
"""Error in client operations."""
class NotFoundError(Exception):
"""Object not found."""
class DisabledError(Exception):
"""Object is disabled."""
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/asachs01/propublica-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server