{"record":{"id":"9accf8333d1bb15b","repo":"different-ai/openwork","slug":"mcp-catalog-cursor-size-limit-9accf8","errorCode":"MCP_CATALOG_CURSOR_SIZE_LIMIT","errorMessage":"MCP_CATALOG_CURSOR_SIZE_LIMIT","messagePattern":"MCP_CATALOG_CURSOR_SIZE_LIMIT","errorType":"error_code","errorClass":"EnterpriseMcpCatalogError","httpStatus":null,"severity":"error","filePath":"packages/enterprise-mcp-client/src/tool-catalog.ts","lineNumber":107,"sourceCode":"    const result = await input.listPage(cursor, input.requestOptions)\n    for (const tool of result.tools) {\n      if (tools.length >= ENTERPRISE_MCP_TOOL_ITEM_LIMIT) {\n        throw new EnterpriseMcpCatalogError(\"MCP_CATALOG_ITEM_LIMIT\")\n      }\n      if (names.has(tool.name)) throw new EnterpriseMcpCatalogError(\"MCP_CATALOG_DUPLICATE_TOOL\")\n      assertTool(tool)\n      const toolBytes = serializedBytes(tool)\n      if (catalogBytes + toolBytes > ENTERPRISE_MCP_CATALOG_LIMIT_BYTES) {\n        throw new EnterpriseMcpCatalogError(\"MCP_CATALOG_BYTE_LIMIT\")\n      }\n      catalogBytes += toolBytes\n      names.add(tool.name)\n      tools.push(tool)\n    }\n\n    if (!result.nextCursor) return tools\n    if (serializedBytes(result.nextCursor) > ENTERPRISE_MCP_CURSOR_LIMIT_BYTES) {\n      throw new EnterpriseMcpCatalogError(\"MCP_CATALOG_CURSOR_SIZE_LIMIT\")\n    }\n    if (cursors.has(result.nextCursor)) throw new EnterpriseMcpCatalogError(\"MCP_CATALOG_CURSOR_LOOP\")\n    cursors.add(result.nextCursor)\n    cursor = result.nextCursor\n  }\n\n  throw new EnterpriseMcpCatalogError(\"MCP_CATALOG_PAGE_LIMIT\")\n}\n","sourceCodeStart":89,"sourceCodeEnd":116,"githubUrl":"https://github.com/different-ai/openwork/blob/2b7df46e8ae1517d64c896c7793d2d52ec845669/packages/enterprise-mcp-client/src/tool-catalog.ts#L89-L116","documentation":"Error \"MCP_CATALOG_CURSOR_SIZE_LIMIT\" thrown in different-ai/openwork.","triggerScenarios":"Thrown at packages/enterprise-mcp-client/src/tool-catalog.ts:107 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2b7df46e8ae1517d64c896c7793d2d52ec845669","analyzedAt":"2026-09-01T07:59:23.713Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}