Skip to content

backend

backend

Bridge configuration models.

MCP bridge configuration (MCPServerConfig, BridgeConfig) used by the bridge: job-config field and the marianne.bridge package.

The legacy execution-backend models (BackendConfig, SheetBackendOverride, OllamaConfig, RecursiveLightConfig) were removed when the backend: score syntax was stripped — execution is configured exclusively through the instrument plugin system (#347).

Classes

MCPServerConfig

Bases: BaseModel

Configuration for an MCP server to connect to.

MCP servers provide tools that can be used by the Ollama bridge. Each server is spawned as a subprocess and communicates via stdio.

Example YAML

bridge: mcp_servers: - name: filesystem command: "npx" args: ["-y", "@anthropic/mcp-server-filesystem", "/home/user"]

BridgeConfig

Bases: BaseModel

Configuration for the Marianne-Ollama bridge.

The bridge enables Ollama models to use MCP tools through a proxy service. It provides context optimization and optional hybrid routing to Claude.

Example YAML

bridge: enabled: true mcp_proxy_enabled: true mcp_servers: - name: filesystem command: "npx" args: ["-y", "@anthropic/mcp-server-filesystem", "/home/user"] hybrid_routing_enabled: true complexity_threshold: 0.7