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

    The MCP Servers category (in @theia/ai-mcp): a collection porting the MCP server surface onto the shared primitives. Servers are the tree children (status dot from MCPServerStatus); the per-server configuration and tool list are rendered as the item detail.

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    agentPluginBridge?: AgentPluginUiBridge
    aiConfigurationService: AiConfigurationService
    iconClass: string = ...

    codicon(...) class shown in the tree, breadcrumb, and cards.

    id: "mcp-servers" = AiConfigurationCategoryId.MCP_SERVERS

    Stable id; used as the tree-node id and in navigation targets.

    kind: "collection" = ...
    label: string = ...

    Localized label shown in the tree and breadcrumb.

    logger: ILogger
    mcpFrontendNotificationService: MCPFrontendNotificationService
    mcpFrontendService: MCPFrontendService
    messageService: MessageService
    oauthCredentialStates: Record<string, boolean> = {}
    onDidChange: Event<void> = ...

    Fire to refresh tree children/count badge, overview, and search index.

    onDidChangeEmitter: Emitter<void> = ...
    order: 700 = AiConfigurationCategoryOrder.MCP_SERVERS

    Ascending sort; defaults to 0. Built-ins use a spaced scale.

    registryBridge?: MCPRegistryUiBridge
    reportedDuplicateIds: Set<string>

    Ids already reported as duplicated, so the warning is logged once rather than on every render.

    serverEditor: MCPServerEditor
    servers: MCPServerDescription[] = []
    settingsRowService: AiSettingsRowService
    toDispose: DisposableCollection = ...

    Accessors

    Methods

    • The items this page can actually address, i.e. one per id. Everything downstream keys on the id — the tree node, the navigation target, the detail lookup and the per-item settings — so an item repeating an id could neither be opened nor configured on its own; it is dropped here and logged once. Representing such a clash properly is a separate concern from this view (it starts where the items are registered).

      Parameters

      Returns AiConfigurationTreeItem[]

    • Parameters

      • label: string
      • value: undefined | string
      • Optionalvariable: string

        the environment variable the value is exported as, when it is one.

      Returns ReactNode

    • Parameters

      • label: string
      • value: string
      • monospace: boolean
      • password: boolean
      • onCommit: (value: string) => void
      • Optionalerror: string

      Returns ReactNode

    • Warns once per id, since the overview re-renders and would otherwise repeat itself indefinitely. console rather than an ILogger: this base class is not injectable, so it has no injection context of its own; subclasses that want their named logger can override this.

      Parameters

      • id: string

      Returns void