/** * MCP client module — symmetric counterpart to `@agent-native/core/mcp` * (the MCP server). Connects to local MCP servers configured in * `mcp.config.json` or the `MCP_SERVERS` env var and exposes their tools * to the agent-chat tool-use loop. */ export { loadMcpConfig, autoDetectMcpConfig, type McpConfig, type McpServerConfig, } from "./config.js"; export { McpClientManager, buildMcpToolName, parseMcpToolName, MCP_TOOL_PREFIX, type McpTool, 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 { finishMcpOAuthAuthorization, getMcpOAuthAccessToken, readMcpOAuthCredentials, saveMcpOAuthCredentials, startMcpOAuthAuthorization, type McpOAuthCallbackResult, type McpOAuthCredentialBundle, type McpOAuthDiscoveryState, type McpOAuthProviderOptions, type McpOAuthStartResult, } from "./oauth-client.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, startMcpConfigRefresh, 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 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 { EngineToolResultImagePart } from "../agent/engine/types.js"; /** * Convert MCP tools into `ActionEntry` values suitable for registration in * the agent's action registry. Each tool is marked `http: false` so it's * never auto-mounted as an HTTP endpoint — MCP tools are agent-only. */ import type { ActionEntry } from "../agent/production-agent.js"; import type { McpClientManager, McpTool } from "./manager.js"; import { type McpToolInvocationPolicy } from "./tool-policy.js"; export interface McpActionEntryOptions { invocationPolicy?: McpToolInvocationPolicy; /** Restrict the generated entries to an explicit background capability set. */ toolNames?: readonly string[]; } export declare function mcpToolsToActionEntries(manager: McpClientManager, options?: McpActionEntryOptions): Record; /** * Mutate a target action dict in place so it matches the current MCP tool set: * - adds new `mcp__*` keys that aren't in target, * - removes `mcp__*` keys that no longer exist in the manager, * - leaves non-MCP keys untouched. * * Used by the agent-chat plugin to keep its `prodActions` / `devActions` * registries in sync after `McpClientManager.reconfigure()` runs. */ export declare function syncMcpActionEntries(manager: McpClientManager, target: Record): void; export declare function isVisibleToMcpApp(tool: McpTool): boolean; export declare function flattenMcpToolResult(result: unknown): string; /** * Extract vision images from a raw MCP tool result so the model can SEE * screenshots/previews returned by external MCP tools instead of only the * `[image: ]` placeholder that `flattenMcpToolResult` leaves in the * text. Shares the per-result caps with `_agentImages` (max count, max base64 * size); over-cap or unsupported images stay placeholder-only. Never throws. */ export declare function extractMcpToolResultImages(result: unknown): EngineToolResultImagePart[]; //# sourceMappingURL=index.d.ts.map