import { IJSONSchema } from "../../../../base/common/jsonSchema.js"; import { IMcpCollectionContribution } from "../../../../platform/extensions/common/extensions.js"; import { IExtensionPointDescriptor } from "../../../services/extensions/common/extensionsRegistry.js"; /** * note: `contributedCollectionId` is _not_ the collection ID. The collection * ID is formed by passing the contributed ID through `extensionPrefixedIdentifier` */ export declare const mcpActivationEvent: (contributedCollectionId: string) => string; export declare enum ExternalDiscoverySource { ClaudeDesktop = "claude-desktop", Copilot = "copilot", Windsurf = "windsurf", CursorGlobal = "cursor-global", CursorWorkspace = "cursor-workspace" } export declare const allDiscoverySources: ExternalDiscoverySource[]; /** * Default enablement for each {@link ExternalDiscoverySource}. The Copilot CLI * user configuration is on by default because MCP server migration moves user * servers there; other applications' configurations remain opt-in. */ export declare const defaultDiscoverySourceEnablement: Readonly>; /** * Returns whether a discovery source is enabled by a `chat.mcp.discovery.enabled` * value. The legacy boolean form applies to every source; sources not set in the * object form use {@link defaultDiscoverySourceEnablement}. */ export declare function isDiscoverySourceEnabled(value: unknown, discoverySource: ExternalDiscoverySource): boolean; export declare const discoverySourceLabel: Record; export declare const discoverySourceSettingsLabel: Record; export declare const mcpConfigurationSection = "mcp"; export declare const mcpDiscoverySection = "chat.mcp.discovery.enabled"; export declare const mcpWorkspaceRootConfig = "chat.mcp.workspaceRootConfig.enabled"; export declare const mcpServerSamplingSection = "chat.mcp.serverSampling"; export declare const mcpServerCollisionBehaviorSection = "chat.mcp.collisionBehavior"; /** * Configuration key for the enterprise-managed MCP IdP bag. The setting is * registered with `included: false` so it is hidden from the Settings UI and * settings.json IntelliSense; it is intended to be delivered through enterprise * policy (Windows Group Policy / macOS managed preferences / Linux * `/etc/vscode/policy.json`), with hand-editing of `settings.json` as a * developer escape hatch. */ export declare const mcpEnterpriseManagedAuthIdpSection = "mcp.enterpriseManagedAuth.idp"; /** * Shape of the {@link mcpEnterpriseManagedAuthIdpSection} setting. All fields * are optional so partial configurations (e.g. just the issuer) remain valid. */ export interface IMcpEnterpriseManagedAuthIdpConfig { readonly issuer?: string; readonly clientId?: string; readonly clientSecret?: string; } export declare enum McpCollisionBehavior { Disable = "disable", Suffix = "suffix" } export interface IMcpServerSamplingConfiguration { allowedDuringChat?: boolean; allowedOutsideChat?: boolean; allowedModels?: string[]; } export declare const mcpSchemaExampleServers: { "mcp-server-time": { command: string; args: string[]; env: {}; }; }; export declare const mcpStdioServerSchema: IJSONSchema; export declare const mcpRemoteServerSchema: IJSONSchema; export declare const mcpServerSchema: IJSONSchema; export declare const mcpContributionPoint: IExtensionPointDescriptor;