export { loadMcpConfig, autoDetectMcpConfig, type McpConfig, type McpServerConfig, } from "./config.js"; export { McpClientManager, buildMcpToolName, parseMcpToolName, MCP_TOOL_PREFIX, type McpTool, type McpToolCallOptions, type McpToolAuthorizationResolver, type McpClientManagerOptions, } from "./manager.js"; export { listRemoteServers, addRemoteServer, addOAuthRemoteServer, addFirstPartyRemoteServer, isFirstPartyRemoteEndpointTrusted, removeRemoteServer, validateRemoteUrl, normalizeServerName, mergedConfigKey, parseMergedKey, hashEmail, toHttpServerConfig, toHttpServerConfigAsync, materializeHeaders, type RemoteMcpScope, type StoredRemoteMcpServer, } from "./remote-store.js"; export { findConnectedMcpServersForProvider, type ConnectedMcpProviderResult, type ConnectedMcpProviderServer, } from "./provider-connections.js"; export { finishMcpOAuthAuthorization, getMcpOAuthAccessToken, readMcpOAuthCredentials, saveMcpOAuthCredentials, startMcpOAuthAuthorization, type McpOAuthCallbackResult, type McpOAuthCredentialBundle, type McpOAuthDiscoveryState, type McpOAuthProviderOptions, type McpOAuthStartResult, } from "./oauth-client.js"; export { readMcpOAuthFlowCookiePayload, type McpOAuthFlowCookieReadResult, } from "./oauth-flow-cookie.js"; export { areBuiltinMcpCapabilitiesSupported, BUILTIN_MCP_CAPABILITIES, getBuiltinMcpCapability, isBuiltinMcpCapabilityAvailable, listSupportedBuiltinMcpCapabilities, normalizeBuiltinMcpCapabilityIds, toBuiltinMcpServerConfig, type BuiltinMcpCapability, type BuiltinMcpCapabilityId, } from "./builtin-capabilities.js"; export { builtinMcpCapabilitiesSettingsKey, listEnabledBuiltinMcpCapabilities, setEnabledBuiltinMcpCapabilities, setBuiltinMcpCapabilityEnabled, type StoredBuiltinMcpCapabilities, } from "./builtin-store.js"; export { mountMcpServersRoutes, buildMergedConfig, builtinMergedConfigKey, McpConfigUnreadableError, type ClientBuiltinCapability, } from "./routes.js"; export { mountMcpHubRoutes, listHubServers, getHubStatus, isHubServeEnabled, isHubConsumeEnabled, type HubServerRecord, type HubServersResponse, } from "./hub-routes.js"; export { fetchHubServers } from "./hub-client.js"; export { isMcpToolAllowedForRequest } from "./visibility.js"; export { callMcpTool, listVisibleMcpTools, McpAppApiError, type AppMcpTool, type CallMcpToolOptions, type ListVisibleMcpToolsOptions, } from "./app-api.js"; export { classifyMcpToolCall, evaluateMcpToolCallPolicy, type McpToolCallClassification, type McpToolEffect, type McpToolFamily, type McpToolInvocationPolicy, type McpToolPolicyDecision, } from "./tool-policy.js"; export { configureScreenMemory, queryScreenMemoryForAgent, queryScreenMemoryContext, readScreenMemoryStatus, type ScreenMemoryConfig, type ScreenMemoryAgentQueryResult, type ScreenMemoryContextItem, type ScreenMemoryCoverageGap, type ScreenMemoryEvidenceItem, type ScreenMemoryEvidenceSourceType, type ScreenMemoryQueryResult, type ScreenMemoryRetrievalCoverage, type ScreenMemorySegmentReference, type ScreenMemoryStatus, type ScreenMemoryTimeRange, type ScreenMemoryTruncation, } from "./screen-memory-local.js"; export { MCP_ACTION_RESULT_MARKER, isMcpActionResult, type AgentMcpAppPayload, type AgentMcpAppResourceContent, type McpActionResult, } from "./app-result.js"; import { type ActionAuthorize } from "../action.js"; import type { EngineToolResultImagePart } from "../agent/engine/types.js"; import type { ActionEntry } from "../agent/production-agent.js"; import type { McpClientManager, McpTool } from "./manager.js"; import { type McpToolInvocationPolicy } from "./tool-policy.js"; export interface McpActionEntryResolution extends Partial> { /** Authorization checked on every invocation immediately before the remote call. */ authorize?: ActionAuthorize>; } export interface McpActionEntryOptions { invocationPolicy?: McpToolInvocationPolicy; toolNames?: readonly string[]; resolveActionEntry?: (tool: McpTool) => McpActionEntryResolution | undefined; } export declare function mcpToolsToActionEntries(manager: McpClientManager, options?: McpActionEntryOptions): Record; export declare function syncMcpActionEntries(manager: McpClientManager, target: Record, options?: McpActionEntryOptions): void; export declare function isVisibleToMcpApp(tool: McpTool): boolean; export declare function flattenMcpToolResult(result: unknown, options?: { preferStructuredContent?: boolean; }): string; export declare function extractMcpToolResultImages(result: unknown): EngineToolResultImagePart[];