We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/GittyBurstein/mermaid-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
errors.py•714 B
"""Project-specific exception hierarchy.
Defines semantic exceptions used throughout the server to communicate
validation, access, external service and not-found conditions.
"""
from __future__ import annotations
class MCPDiagramError(Exception):
"""Base error for the diagram server."""
class ValidationError(MCPDiagramError):
"""Raised when user input is invalid."""
class AccessDeniedError(MCPDiagramError):
"""Raised when an operation tries to access data outside allowed scope."""
class ExternalServiceError(MCPDiagramError):
"""Raised when an external service (GitHub/Kroki) fails."""
class NotFoundError(MCPDiagramError):
"""Raised when a requested resource is not found."""