Theia API Documentation v1.73.0
    Preparing search index...

    Optional integration point exposed by @theia/ai-registry so that AI-related widgets (e.g. the MCP configuration view in @theia/ai-ide) can surface registry affordances without taking a hard dependency on the registry package.

    If no registry implementation is bound, consumers should treat this as absent and hide all registry-specific affordances.

    interface MCPRegistryUiBridge {
        onDidChange: Event<void>;
        getInstallEntry(serverId: string): undefined | MCPInstallEntry;
        hasServer(serverId: string): boolean;
        openRegistry(serverId?: string): Promise<void>;
        ready(): Promise<void>;
    }

    Implemented by

    Index

    Properties

    onDidChange: Event<void>

    Fires when the cached set of registry server IDs changes (e.g. after a refresh).

    Methods

    • Resolve the registry entry for serverId into a self-contained install payload (key, config, version, configHash, display metadata). Returns undefined when the registry has no approval for the given id. Used by the install-mcp URL handler to drive the install flow purely from the registry.

      Parameters

      • serverId: string

      Returns undefined | MCPInstallEntry

    • Resolves once the bridge has completed its initial registry fetch. Consumers (e.g. the install-mcp URL handler) await this before relying on hasServer / getInstallEntry so cold-start clicks don't get a false miss.

      Returns Promise<void>