/** * MCP server setup and tool registration. * * Creates an McpServer with all 6 WHOOP tools registered. * Each tool handler calls the WHOOP API via the provided WhoopClient. */ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import type { WhoopClient } from "./api/client.js"; import type { Telemetry } from "./telemetry/telemetry.js"; import { type PrivacyMode } from "./tools/output-contracts.js"; /** Options for createWhoopServer */ export interface CreateServerOptions { privacyMode?: PrivacyMode; telemetry?: Pick; /** Disable MCP resource registration (set via WHOOP_MCP_DISABLE_RESOURCES=1) */ disableResources?: boolean; /** * Local (stdio) mode only: enables the on-disk race log, annotations and audit log plus the * write tools. Omit for remote transports, where the analytics tools run on WHOOP data alone. */ localPerformance?: { directory?: string; /** Test seam; defaults to the system browser. */ openBrowser?: (url: string) => void; /** Test seam; defaults to the bundled dashboard assets. */ dashboardStaticDir?: string; }; } /** Return type for the configured MCP server. */ export interface WhoopServer { server: McpServer; } /** * Create a configured MCP server with all WHOOP tools and resources registered. * * This is a pure factory — it does not start transports, handle OAuth, * or read environment variables. Connect the returned server to any * transport (stdio, InMemoryTransport, MCP Inspector). * * @param client - WHOOP API client used by tool handlers * @param options - Optional configuration (e.g., disable resources) */ export declare function createWhoopServer(client: WhoopClient, options?: CreateServerOptions): WhoopServer; //# sourceMappingURL=server.d.ts.map