Skip to content

mcp_servers

MCP server configuration definitions.

This module defines configuration objects used to describe individual MCP servers. It currently provides MCPServerConfig, a dataclass for specifying transport type, connection details, launch command information, descriptive metadata, and the Python executable used for stdio-based server startup.

MCPServerConfig dataclass

Configuration for an individual MCP server.

Attributes:

Name Type Description
transport str

Transport method ('streamable-http' or 'stdio')

url Optional[str]

URL for streamable-http transport

command Optional[str]

Command to launch server for stdio transport

description Optional[str]

Human-readable description of the server

python_executable str

Path to Python executable (used for stdio transport).

Source code in src/mada/core/config/mcp_servers.py
@dataclass
class MCPServerConfig:
    """
    Configuration for an individual MCP server.

    Attributes:
        transport (str): Transport method ('streamable-http' or 'stdio')
        url (Optional[str]): URL for streamable-http transport
        command (Optional[str]): Command to launch server for stdio transport
        description (Optional[str]): Human-readable description of the server
        python_executable (str): Path to Python executable (used for stdio transport).
    """

    transport: str
    url: Optional[str] = None
    command: Optional[str] = None
    description: Optional[str] = ""
    python_executable: str = sys.executable