import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import type { ToolContext } from "./context.ts"; /** * Cap on array elements plus object members in one tools/call `arguments` * (GHSA-46jr-4wx8-v453). The SDK counts them before validation and * has no limit unless one is set, so an object with tens of thousands of keys * inside the 64KB body cap could exhaust memory. The one array input is * `reimbursements` on preview_payroll and run_payroll: at most 10 lines of 5 * members, so the widest call (run_payroll, about 22 members plus 10 + 50 for * a full set of lines) stays near 85, and 256 refuses nothing real. A test * sends the largest valid run_payroll call through the real server to hold * that. Raise this if an input grows past it. */ export declare const MAX_TOOL_INPUT_ELEMENTS = 256; /** A fresh server and credential closure for each hosted request. */ export declare function createNannyKeeperServer(version: string, context?: ToolContext): McpServer;