yera.tools.mcp.importer

Import metadata from live MCP servers.

Symbols

def import_mcp_server — Import one live MCP server into the local catalogue.

import_mcp_server

import_mcp_server(
    name: str,
    config: MCPServerConfig,
    catalogue: SQLiteMCPCatalogue,
    probe_authentication: bool = False,
    secret_store: SecretStore | None = None,
    oauth_client_metadata: OAuthClientMetadata | None = None,
    oauth_interaction: OAuthInteraction | None = None,
    http_client: httpx2.AsyncClient | None = None,
) → None

Import one live MCP server into the local catalogue.

Parameters

name
type: str

Configured name of the MCP server.

config
type: MCPServerConfig

Connection configuration for the server.

catalogue
type: SQLiteMCPCatalogue

Open catalogue receiving the discovered metadata.

http_client
type: httpx2.AsyncClient | None = None

Optional caller-owned HTTP client.

probe_authentication
type: bool = False

Whether setup should surface HTTP authentication challenges before configuration is persisted.

secret_store
type: SecretStore | None = None

Optional OAuth secret-store override.

oauth_client_metadata
type: OAuthClientMetadata | None = None

OAuth client metadata used for authorization.

oauth_interaction
type: OAuthInteraction | None = None

Optional interactive OAuth presentation.

Returns

type: None

None.