{"record":{"id":"9c10714d42341664","repo":"different-ai/openwork","slug":"mcp-resource-result-limit","errorCode":"MCP_RESOURCE_RESULT_LIMIT","errorMessage":"MCP_RESOURCE_RESULT_LIMIT","messagePattern":"MCP_RESOURCE_RESULT_LIMIT","errorType":"error_code","errorClass":"EnterpriseMcpCatalogError","httpStatus":null,"severity":"error","filePath":"packages/enterprise-mcp-client/src/resource-catalog.ts","lineNumber":102,"sourceCode":"  })\n}\n\nexport function collectEnterpriseMcpResourceTemplates(input: {\n  listPage: (cursor: string | undefined, options: RequestOptions) => Promise<ResourceTemplatePage>\n  requestOptions: RequestOptions\n}) {\n  return collectPages({\n    requestOptions: input.requestOptions,\n    listPage: async (cursor, options) => {\n      const result = await input.listPage(cursor, options)\n      return { items: result.resourceTemplates, nextCursor: result.nextCursor }\n    },\n  })\n}\n\nexport function assertEnterpriseMcpResourceResult(value: unknown): void {\n  if (serializedBytes(value) > ENTERPRISE_MCP_RESOURCE_RESULT_LIMIT_BYTES) {\n    throw new EnterpriseMcpCatalogError(\"MCP_RESOURCE_RESULT_LIMIT\")\n  }\n}\n","sourceCodeStart":84,"sourceCodeEnd":105,"githubUrl":"https://github.com/different-ai/openwork/blob/2b7df46e8ae1517d64c896c7793d2d52ec845669/packages/enterprise-mcp-client/src/resource-catalog.ts#L84-L105","documentation":"Error \"MCP_RESOURCE_RESULT_LIMIT\" thrown in different-ai/openwork.","triggerScenarios":"Thrown at packages/enterprise-mcp-client/src/resource-catalog.ts:102 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"}