yera.config.schema.mcp
MCP server configuration schemas.
Symbols
MCPConfig
BaseModelConfigured MCP server connections available for profile selection.
Fields
MCP server configurations keyed by their unique names.
MCPNoAuth
BaseModelDeclare that an MCP server requires no authentication.
Fields
Discriminator identifying an unauthenticated MCP connection.
MCPOAuthAuth
BaseModelReference a stored OAuth authorization for an MCP server.
Fields
Discriminator identifying OAuth authentication.
Stable identity of the stored authorization.
Optional predefined OAuth client configuration.
Exact scopes deliberately requested during setup, or
None when a legacy configuration uses profile defaults.
MCPSecretHeadersAuth
BaseModelSend HTTP headers whose values the connection keeps in the secret store.
Fields
Discriminator identifying connection-owned header authentication.
Owner of the header values in Yera's secret store.
Names of the headers sent with every request.
MCPServerConfig
BaseModelConfiguration required to connect to one MCP server.
Fields
Streamable HTTP endpoint exposed by the MCP server.
Whether this server is available to Yera.
Authentication policy used for this server.
Methods
MCPServerConfig.validate_http_url
validate_http_url(
value: str,
) → strRequire a complete HTTP endpoint for streamable MCP transport.
Parameters
Candidate MCP server URL.
Returns
The validated HTTP URL.
MCPStaticHeadersAuth
BaseModelReference credentials supplied as static HTTP headers.
Fields
Discriminator identifying static-header authentication.
Mapping of HTTP header names to credential keys.
require_http_url
require_http_url(
value: str,
) → strRequire a complete HTTP endpoint for streamable MCP transport.
Parameters
The endpoint to check.
Returns
The endpoint, unchanged.
Raises
If the endpoint is not an absolute HTTP or HTTPS URL.