import { Disposable, IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle"; import { IObservable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/observable"; import { ConfigurationTarget } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration"; import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service"; import { IDialogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service"; import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation"; import { ILabelService } from "@codingame/monaco-vscode-api/vscode/vs/platform/label/common/label.service"; import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service"; import { INotificationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service"; import { IQuickInputService } from "@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/common/quickInput.service"; import { StorageScope } from "@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage"; import { IWorkspaceFolderData } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace"; import { IWorkspaceTrustRequestService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspaceTrust.service"; import { IWorkspaceTrustManagementService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspaceTrust.service"; import { IConfigurationResolverService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/configurationResolver/common/configurationResolver.service"; import { IResolvedValue } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/configurationResolver/common/configurationResolverExpression"; import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service"; import { IMcpHostDelegate, IMcpResolveConnectionOptions } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/mcp/common/mcpRegistryTypes"; import { IMcpRegistry } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/mcp/common/mcpRegistryTypes.service"; import { IMcpSandboxService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/mcp/common/mcpSandboxService.service"; import { IMcpServerConnection, LazyCollectionState, McpCollectionDefinition, McpDefinitionReference, McpServerDefinition } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/mcp/common/mcpTypes"; export declare class McpRegistry extends Disposable implements IMcpRegistry { private readonly _instantiationService; private readonly _configurationResolverService; private readonly _dialogService; private readonly _notificationService; private readonly _editorService; private readonly _quickInputService; private readonly _labelService; private readonly _logService; private readonly _mcpSandboxService; private readonly _workspaceTrustManagementService; private readonly _workspaceTrustRequestService; readonly _serviceBrand: undefined; private readonly _collections; private readonly _delegates; private readonly _mcpAccessValue; readonly collections: IObservable; private readonly _workspaceStorage; private readonly _profileStorage; private readonly _ongoingLazyActivations; readonly lazyCollectionState: import("@codingame/monaco-vscode-api/vscode/vs/base/common/observable").IObservableWithChange<{ state: LazyCollectionState; collections: McpCollectionDefinition[]; }, void>; get delegates(): IObservable; private readonly _onDidChangeInputs; readonly onDidChangeInputs: import("@codingame/monaco-vscode-api/vscode/vs/base/common/event").Event; constructor(_instantiationService: IInstantiationService, _configurationResolverService: IConfigurationResolverService, _dialogService: IDialogService, _notificationService: INotificationService, _editorService: IEditorService, configurationService: IConfigurationService, _quickInputService: IQuickInputService, _labelService: ILabelService, _logService: ILogService, _mcpSandboxService: IMcpSandboxService, _workspaceTrustManagementService: IWorkspaceTrustManagementService, _workspaceTrustRequestService: IWorkspaceTrustRequestService); registerDelegate(delegate: IMcpHostDelegate): IDisposable; registerCollection(collection: McpCollectionDefinition): IDisposable; getServerDefinition(collectionRef: McpDefinitionReference, definitionRef: McpDefinitionReference): IObservable<{ server: McpServerDefinition | undefined; collection: McpCollectionDefinition | undefined; }>; discoverCollections(): Promise; private _getInputStorage; private _getInputStorageInConfigTarget; clearSavedInputs(scope: StorageScope, inputId?: string): Promise; editSavedInput(inputId: string, folderData: IWorkspaceFolderData | undefined, configSection: string, target: ConfigurationTarget): Promise; setSavedInput(inputId: string, target: ConfigurationTarget, value: string): Promise; getSavedInputs(scope: StorageScope): Promise<{ [id: string]: IResolvedValue; }>; private _checkTrust; private _promptForTrust; /** * Confirms with the user which of the provided definitions should be trusted. * Returns undefined if the user cancelled the flow, or the list of trusted * definition IDs otherwise. */ protected _promptForTrustOpenDialog(definitions: { definition: McpServerDefinition; collection: McpCollectionDefinition; }[]): Promise; private _updateStorageWithExpressionInputs; private _replaceVariablesInLaunch; resolveConnection(opts: IMcpResolveConnectionOptions): Promise; }