yera.config.loaders.mcp
MCP config loader.
Symbols
load_global_mcp_config
load_global_mcp_config() → MCPConfigLoad the MCP server connections defined in the global yera.toml.
Unlike load_mcp_config, servers declared by the current project are
left out, so the result lists only the connections setup manages.
Returns
type: MCPConfig
Validated global MCP configuration, or an empty catalogue when no MCP section is configured.
Raises
MCPInvalidConfigError
If a global server declaration is invalid.
load_mcp_config
load_mcp_config() → MCPConfigLoad the available MCP server connections from Yera configuration.
Returns
type: MCPConfig
Validated MCP configuration, or an empty catalogue when no MCP section is configured.
resolve_mcp_servers
resolve_mcp_servers(
config: MCPConfig,
active_profile: Profile,
) → dict[str, MCPServerConfig]Resolve the MCP connections enabled by the active profile.
Parameters
config
type: MCPConfig
Catalogue of available MCP server connections.
active_profile
type: Profile
Profile containing the connection names to enable.
Returns
type: dict[str, MCPServerConfig]
Selected server connections in profile declaration order.