import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; import { PhototologyClient } from '@phototology/sdk'; /** * Register all MCP tools on the server. * * Creates a singleton PhototologyClient for connection reuse, and wraps tool * registration so every invocation emits one `mcp_tool_called` telemetry event * (fire-and-forget; skipped under PHOTOTOLOGY_MCP_NO_TELEMETRY, DO_NOT_TRACK or * NODE_ENV=test, see shouldSkip in ../phone-home). The event carries the * tool name, ok/duration, an error code on failure (including local failures * that never reach the API), and analyze enrichment: the visibility the * route-based `api_request` events can't provide. * * Returns the client so `registerResources` reads through the same instance * (one connection pool, one user agent). */ /** * Total time one SDK call may take, across attempts and backoffs: just under * an MCP client's default 60 s request timeout. At the SDK default of 90 s a * dead API surfaced as the client's own timeout instead of a tool error; much * lower would fail real work, since a full-analysis call on one photo can run * 20 to 30 s on the model side. */ export declare const MCP_CLIENT_MAX_ELAPSED_MS = 55000; /** The longest a tool waits for a rate-limit reset before returning RATE_LIMITED. */ export declare const MCP_CLIENT_MAX_RATE_LIMIT_WAIT_MS = 10000; export declare function registerTools(server: McpServer, apiKey: string, userAgent?: string): PhototologyClient; //# sourceMappingURL=index.d.ts.map