diff --git a/web/src/lib/mcp/server.ts b/web/src/lib/mcp/server.ts index abbe55f..b0b5a3c 100644 --- a/web/src/lib/mcp/server.ts +++ b/web/src/lib/mcp/server.ts @@ -23,10 +23,10 @@ const SERVER_VERSION = '1.0.0'; export const MCP_MAX_BODY_BYTES = 256 * 1024; // Largest number of array elements and object keys in the arguments of one -// tool call, counted by the SDK before the schema is read: zod validates every -// element of an array before its length, so `.max()` alone does not bound a -// hostile array (GHSA-46jr-4wx8-v453). The largest legitimate call holds -// fewer than 30. +// tool call, counted by the SDK before the schema is read. The SDK sets no +// limit of its own (GHSA-46jr-4wx8-v453), and zod validates every element of +// an array before its length, so `.max()` alone does not bound a hostile +// array. The largest legitimate call holds fewer than 30. const MAX_TOOL_INPUT_ELEMENTS = 64; // Whom a tool call speaks for. `tokenId` is null for a caller that has no