import type { McpWorkspaceConnectionAuth } from "./workspace-connection-servers.js"; export interface McpStdioServerConfig { type?: "stdio"; command: string; args?: string[]; env?: Record; cwd?: string; description?: string; } export interface McpOAuthAccessRefresh { identity: string; refresh: () => Promise; } export interface McpHttpServerConfig { type: "http"; url: string; headers?: Record; oauthAccessRefresh?: McpOAuthAccessRefresh; /** Internal failure marker for a server whose saved settings could not be materialized. */ configurationError?: Error; firstParty?: boolean; firstPartyAppId?: string; firstPartyOrgId?: string; description?: string; /** * Authenticate each request with this owner's workspace connection instead * of stored headers. Holds identifiers only; the token is never stored here. */ workspaceConnection?: McpWorkspaceConnectionAuth; } export type McpServerConfig = McpStdioServerConfig | McpHttpServerConfig; export interface McpConfig { servers: Record; source?: string; } export interface DesktopChildComputerMcpServer { id: string; config: McpHttpServerConfig; } export declare function loadMcpConfig(startDir?: string): McpConfig | null; export declare function resolveDesktopChildComputerMcpServer(existingServers: Record, environment?: NodeJS.ProcessEnv): DesktopChildComputerMcpServer | null; export declare function autoDetectMcpConfig(): McpConfig | null;