import { CancellationToken } from "@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation"; import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event"; import { IMarkdownString } from "@codingame/monaco-vscode-api/vscode/vs/base/common/htmlContent"; import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle"; import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri"; import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service"; import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service"; import { IEditorOptions } from "@codingame/monaco-vscode-api/vscode/vs/platform/editor/common/editor"; import { IFileService } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.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 { IGalleryMcpServer, IQueryOptions, IInstallableMcpServer, IGalleryMcpServerConfiguration } from "@codingame/monaco-vscode-api/vscode/vs/platform/mcp/common/mcpManagement"; import { IAllowedMcpServersService } from "@codingame/monaco-vscode-api/vscode/vs/platform/mcp/common/mcpManagement.service"; import { IMcpGalleryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/mcp/common/mcpManagement.service"; import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service"; import { IMcpServerConfiguration } from "@codingame/monaco-vscode-api/vscode/vs/platform/mcp/common/mcpPlatformTypes"; import { IProductService } from "@codingame/monaco-vscode-api/vscode/vs/platform/product/common/productService.service"; import { IUriIdentityService } from "@codingame/monaco-vscode-api/vscode/vs/platform/uriIdentity/common/uriIdentity.service"; import { IURLService } from "@codingame/monaco-vscode-api/vscode/vs/platform/url/common/url.service"; import { IUserDataProfilesService } from "@codingame/monaco-vscode-api/vscode/vs/platform/userDataProfile/common/userDataProfile.service"; import { IWorkspaceContextService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service"; import { IWorkbenchContribution } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions"; import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service"; import { IWorkbenchEnvironmentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service"; import { IWorkbenchLocalMcpServer, IWorkbencMcpServerInstallOptions } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/mcp/common/mcpWorkbenchManagementService"; import { IWorkbenchMcpManagementService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/mcp/common/mcpWorkbenchManagementService.service"; import { IRemoteAgentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/remote/common/remoteAgentService.service"; import { IMcpConfigPath, IWorkbenchMcpServer, McpServerInstallState, McpServerEnablementStatus } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/mcp/common/mcpTypes"; import { IMcpWorkbenchService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/mcp/common/mcpTypes.service"; import { IMcpService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/mcp/common/mcpTypes.service"; import { IMcpGalleryManifestService } from "@codingame/monaco-vscode-api/vscode/vs/platform/mcp/common/mcpGalleryManifest.service"; import { IIterativePager } from "@codingame/monaco-vscode-api/vscode/vs/base/common/paging"; import { IExtensionsWorkbenchService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/extensions/common/extensions.service"; interface IMcpServerStateProvider { (mcpWorkbenchServer: McpWorkbenchServer): T; } declare class McpWorkbenchServer implements IWorkbenchMcpServer { private installStateProvider; private runtimeStateProvider; local: IWorkbenchLocalMcpServer | undefined; gallery: IGalleryMcpServer | undefined; readonly installable: IInstallableMcpServer | undefined; private readonly mcpGalleryService; private readonly fileService; constructor(installStateProvider: IMcpServerStateProvider, runtimeStateProvider: IMcpServerStateProvider, local: IWorkbenchLocalMcpServer | undefined, gallery: IGalleryMcpServer | undefined, installable: IInstallableMcpServer | undefined, mcpGalleryService: IMcpGalleryService, fileService: IFileService); get id(): string; get name(): string; get label(): string; get icon(): { readonly dark: string; readonly light: string; } | undefined; get installState(): McpServerInstallState; get codicon(): string | undefined; get publisherDisplayName(): string | undefined; get publisherUrl(): string | undefined; get description(): string; get starsCount(): number; get license(): string | undefined; get repository(): string | undefined; get config(): IMcpServerConfiguration | undefined; get runtimeStatus(): McpServerEnablementStatus | undefined; get readmeUrl(): URI | undefined; getReadme(token: CancellationToken): Promise; getManifest(token: CancellationToken): Promise; } export declare class McpWorkbenchService extends Disposable implements IMcpWorkbenchService { private readonly mcpGalleryService; private readonly mcpManagementService; private readonly editorService; private readonly userDataProfilesService; private readonly uriIdentityService; private readonly workspaceService; private readonly environmentService; private readonly labelService; private readonly productService; private readonly remoteAgentService; private readonly configurationService; private readonly instantiationService; private readonly telemetryService; private readonly logService; private readonly extensionsWorkbenchService; private readonly allowedMcpServersService; private readonly mcpService; _serviceBrand: undefined; private installing; private uninstalling; private _local; get local(): readonly McpWorkbenchServer[]; private readonly _onChange; readonly onChange: Event; private readonly _onReset; readonly onReset: Event; constructor(mcpGalleryManifestService: IMcpGalleryManifestService, mcpGalleryService: IMcpGalleryService, mcpManagementService: IWorkbenchMcpManagementService, editorService: IEditorService, userDataProfilesService: IUserDataProfilesService, uriIdentityService: IUriIdentityService, workspaceService: IWorkspaceContextService, environmentService: IWorkbenchEnvironmentService, labelService: ILabelService, productService: IProductService, remoteAgentService: IRemoteAgentService, configurationService: IConfigurationService, instantiationService: IInstantiationService, telemetryService: ITelemetryService, logService: ILogService, extensionsWorkbenchService: IExtensionsWorkbenchService, allowedMcpServersService: IAllowedMcpServersService, mcpService: IMcpService, urlService: IURLService); private onDidChangeProfile; private areSameMcpServers; private onDidUninstallMcpServer; private onDidInstallMcpServers; private onDidUpdateMcpServers; private fromGallery; private syncInstalledMcpServers; private syncInstalledMcpServersWithGallery; queryGallery(options?: IQueryOptions, token?: CancellationToken): Promise>; queryLocal(): Promise; private addServer; private sort; getEnabledLocalMcpServers(): IWorkbenchLocalMcpServer[]; canInstall(mcpServer: IWorkbenchMcpServer): true | IMarkdownString; install(server: IWorkbenchMcpServer, installOptions?: IWorkbencMcpServerInstallOptions): Promise; uninstall(server: IWorkbenchMcpServer): Promise; private doInstall; private waitAndGetInstalledMcpServer; getMcpConfigPath(localMcpServer: IWorkbenchLocalMcpServer): IMcpConfigPath | undefined; getMcpConfigPath(mcpResource: URI): Promise; private getUserMcpConfigPath; private getRemoteMcpConfigPath; private getWorkspaceMcpConfigPath; handleURL(uri: URI): Promise; private handleMcpInstallUri; private handleMcpServerUrl; private handleMcpServerByName; openSearch(searchValue: string, preserveFoucs?: boolean): Promise; open(extension: IWorkbenchMcpServer, options?: IEditorOptions): Promise; private getInstallState; private getRuntimeStatus; private getEnablementStatus; } export declare class MCPContextsInitialisation extends Disposable implements IWorkbenchContribution { static ID: string; constructor(mcpWorkbenchService: IMcpWorkbenchService, mcpGalleryManifestService: IMcpGalleryManifestService, contextKeyService: IContextKeyService); } export {};