{"record":{"id":"11aba46d9cb8b34a","repo":"different-ai/openwork","slug":"mcp-request-timeout","errorCode":"MCP_REQUEST_TIMEOUT","errorMessage":"MCP_REQUEST_TIMEOUT","messagePattern":"MCP_REQUEST_TIMEOUT","errorType":"error_code","errorClass":null,"httpStatus":null,"severity":"error","filePath":"ee/apps/den-api/src/capability-sources/external-mcp-diagnostics.ts","lineNumber":1235,"sourceCode":"\n  const code = errorCode(error)\n  if (code) {\n    const classified = classifyByCode(code)\n    if (classified) return classified\n  }\n\n  const providerAuthorization = providerAuthorizationRequired(error)\n  if (providerAuthorization) {\n    return providerAuthorizationClassification(providerAuthorization.connectUrl)\n  }\n\n  const numericCode = numericErrorCode(error)\n  if (numericCode === -32001) {\n    if (!localRequestTimeout(error)) return providerDeclaredErrorClassification()\n    return {\n      phase: fallbackPhase,\n      category: \"request_timeout\",\n      code: \"MCP_REQUEST_TIMEOUT\",\n      retryable: true,\n      actionOwner: \"provider_admin\",\n      operatorAction: \"Check provider latency and retry after the current MCP request can complete within its bounded timeout.\",\n    }\n  }\n  if (numericCode === -32602 && fallbackPhase === \"MCP_TOOL_EXECUTION\") {\n    return {\n      phase: \"MCP_TOOL_EXECUTION\",\n      category: \"mcp_tool_input_invalid\",\n      code: \"MCP_INVALID_PARAMS\",\n      retryable: false,\n      actionOwner: \"openwork\",\n      operatorAction: \"Correct the tool arguments using the latest advertised input schema; do not retry the same arguments unchanged.\",\n    }\n  }\n  if (numericCode !== undefined) return providerDeclaredErrorClassification()\n\n  const name = errorName(error)","sourceCodeStart":1217,"sourceCodeEnd":1253,"githubUrl":"https://github.com/different-ai/openwork/blob/2b7df46e8ae1517d64c896c7793d2d52ec845669/ee/apps/den-api/src/capability-sources/external-mcp-diagnostics.ts#L1217-L1253","documentation":"Error \"MCP_REQUEST_TIMEOUT\" thrown in different-ai/openwork.","triggerScenarios":"Thrown at ee/apps/den-api/src/capability-sources/external-mcp-diagnostics.ts:1235 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"}