Skip to content

ToolBridgeConfig

🛈 DocStrings

Configuration for the ToolBridge.

Source code in src/llmling_models/tool_bridge.py
@dataclass
class ToolBridgeConfig:
    """Configuration for the ToolBridge."""

    host: str = "127.0.0.1"
    """Host to bind the HTTP server to."""

    port: int = 0
    """Port to bind to (0 = auto-select available port)."""

    transport: MCPTransport = "sse"
    """Transport protocol: 'sse' or 'streamable-http'."""

    server_name: str = "pydantic-ai-tools"
    """Name for the MCP server."""

host class-attribute instance-attribute

host: str = '127.0.0.1'

Host to bind the HTTP server to.

port class-attribute instance-attribute

port: int = 0

Port to bind to (0 = auto-select available port).

server_name class-attribute instance-attribute

server_name: str = 'pydantic-ai-tools'

Name for the MCP server.

transport class-attribute instance-attribute

transport: MCPTransport = 'sse'

Transport protocol: 'sse' or 'streamable-http'.

:fa-brands-github: Show source on GitHub