import { IStringDictionary } from "@codingame/monaco-vscode-api/vscode/vs/base/common/collections"; import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle"; import { Mutable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/types"; import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri"; import { ConfigurationTarget } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration"; import { IFileService } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service"; import { IUriIdentityService } from "@codingame/monaco-vscode-api/vscode/vs/platform/uriIdentity/common/uriIdentity.service"; import { IInstallableMcpServer } from "@codingame/monaco-vscode-api/vscode/vs/platform/mcp/common/mcpManagement"; import { IMcpSandboxConfiguration, IMcpServerConfiguration, IMcpServerVariable } from "@codingame/monaco-vscode-api/vscode/vs/platform/mcp/common/mcpPlatformTypes"; import { IMcpResourceScannerService } from "@codingame/monaco-vscode-api/vscode/vs/platform/mcp/common/mcpResourceScannerService.service"; export interface IScannedMcpServers { servers?: IStringDictionary>; inputs?: IMcpServerVariable[]; sandbox?: IMcpSandboxConfiguration; } export type McpResourceTarget = ConfigurationTarget.USER | ConfigurationTarget.WORKSPACE | ConfigurationTarget.WORKSPACE_FOLDER; export declare class McpResourceScannerService extends Disposable implements IMcpResourceScannerService { private readonly fileService; protected readonly uriIdentityService: IUriIdentityService; readonly _serviceBrand: undefined; private readonly resourcesAccessQueueMap; constructor(fileService: IFileService, uriIdentityService: IUriIdentityService); scanMcpServers(mcpResource: URI, target?: McpResourceTarget): Promise; addMcpServers(servers: IInstallableMcpServer[], mcpResource: URI, target?: McpResourceTarget): Promise; updateSandboxConfig(updateFn: (data: IScannedMcpServers) => IScannedMcpServers, mcpResource: URI, target?: McpResourceTarget): Promise; removeMcpServers(serverNames: string[], mcpResource: URI, target?: McpResourceTarget): Promise; private withProfileMcpServers; private writeScannedMcpServers; private writeScannedMcpServersToWorkspaceFolder; private writeScannedMcpServersToWorkspace; private fromUserMcpServers; private fromWorkspaceFolderMcpServers; private sanitizeServer; private getResourceAccessQueue; }