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
Validated global MCP configuration, or an empty catalogue when no MCP section is configured.
Raises
If a global server declaration is invalid.
load_mcp_config
load_mcp_config() → MCPConfigLoad the available MCP server connections from Yera configuration.
Returns
Validated MCP configuration, or an empty catalogue when no MCP section is configured.
Raises
If a server declaration is invalid.
resolve_mcp_servers
resolve_mcp_servers(
config: MCPConfig,
active_profile: Profile,
) → dict[str, MCPServerConfig]Resolve the MCP connections enabled by the active profile.
Parameters
Catalogue of available MCP server connections.
Profile containing the connection names to enable.
Returns
Selected server connections in profile declaration order.
Raises
If the profile names a server that is absent from the catalogue.