UNPKG

agentfootprint

Version:

The explainable agent framework — backtrack a wrong answer to the exact context that caused it (evidence, not guesses). Built on footprintjs.

36 lines • 2.21 kB
/** * MCP — Model Context Protocol, both directions. `mcpClient` connects to * someone else's MCP server and registers its tools on your Agent; * `mcpServe` exposes your own tools AS an MCP server so any MCP client * can call them. */ export { mcpClient } from './mcpClient.js'; export { mcpServe } from './mcpServe.js'; // The declaration bag both directions speak (9.71.0) — one namespaced `_meta` // key, and the shape a non-agentfootprint server writes to be understood. export { MCP_TOOL_EXTRAS_KEY } from './toolExtras.js'; export { mockMcpClient } from './mockMcpClient.js'; export { gatewayTransport, GatewayAuthorizationRequiredError, } from './gatewayTransport.js'; // The 429 handling `mcpClient({ transport })` applies for you — public since // 9.81.0 so the `connection` arm, which builds no transport of its own, can // apply the SAME implementation instead of silently going without it. export { retryingFetch } from './throttleRetry.js'; // A call under 'app-authorized' that a connection cannot honour is refused // before it is sent, with a typed reason. export { McpReplayUnavailableError } from './replayUnavailable.js'; // A tool list that could not be read to its end (past 100 requests, or a cursor // sent twice) is refused with this error and a typed reason, never cut short. export { McpToolListIncompleteError } from './toolList.js'; // A tool whose list the SDK no longer holds, and whose output this connection // cannot check — no JSON Schema validator reachable — is refused, never answered // unchecked. export { McpOutputUncheckedError } from './callChecks.js'; // Ending a client's remote session: a feature-detected capability, never a // required member of `McpClient` (`close()` stays local). export { canTerminate } from './terminate.js'; // A client per conversation, for one server: bounded, ended remotely, and its // tool definitions per client incarnation unless the app declares sharing. export { mcpClientPool } from './pool/mcpClientPool.js'; export { MCP_POOL_DEFAULTS, MAX_DEFINITION_ENTRIES, MAX_SHARED_TOOLS, } from './pool/options.js'; export { McpPoolRefusedError, PoolFullError, } from './pool/errors.js'; //# sourceMappingURL=index.js.map