{"record":{"id":"c1456c15b39433ef","repo":"openclaw/openclaw","slug":"codex-restricted-tool-surface-mcp-attestation-foun","errorCode":null,"errorMessage":"Codex restricted-tool-surface MCP attestation found unexpected server ${status.name}","messagePattern":"Codex restricted-tool-surface MCP attestation found unexpected server (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"extensions/codex/src/app-server/thread-requests.ts","lineNumber":596,"sourceCode":"  const response = await client.request(\n    \"mcpServerStatus/list\",\n    { threadId, detail: \"toolsAndAuthOnly\" },\n    { signal },\n  );\n  if (!isJsonObject(response) || !Array.isArray(response.data)) {\n    throw new Error(\n      \"Codex mcpServerStatus/list returned an invalid restricted-tool-surface attestation\",\n    );\n  }\n  const observedDisabledServerNames = new Set<string>();\n  for (const status of response.data) {\n    if (!isJsonObject(status) || typeof status.name !== \"string\" || !isJsonObject(status.tools)) {\n      throw new Error(\n        \"Codex mcpServerStatus/list returned an invalid restricted-tool-surface server\",\n      );\n    }\n    if (!expectedDisabledServerNames.has(status.name)) {\n      throw new Error(\n        `Codex restricted-tool-surface MCP attestation found unexpected server ${status.name}`,\n      );\n    }\n    if (observedDisabledServerNames.has(status.name)) {\n      throw new Error(\n        `Codex restricted-tool-surface MCP attestation returned duplicate server ${status.name}`,\n      );\n    }\n    observedDisabledServerNames.add(status.name);\n    if (!Object.hasOwn(status, \"serverInfo\")) {\n      throw new Error(\n        `Codex restricted-tool-surface MCP attestation returned malformed server ${status.name}`,\n      );\n    }\n    if (status.serverInfo !== null) {\n      throw new Error(\n        `Codex restricted-tool-surface MCP attestation found active server ${status.name}`,\n      );","sourceCodeStart":578,"sourceCodeEnd":614,"githubUrl":"https://github.com/openclaw/openclaw/blob/01804a75319da4b69c9ab98ceaa30477e22b8c0b/extensions/codex/src/app-server/thread-requests.ts#L578-L614","documentation":"Error \"Codex restricted-tool-surface MCP attestation found unexpected server ${status.name}\" thrown in openclaw/openclaw.","triggerScenarios":"Thrown at extensions/codex/src/app-server/thread-requests.ts:596 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":"01804a75319da4b69c9ab98ceaa30477e22b8c0b","analyzedAt":"2026-08-12T04:37:58.197Z","schemaVersion":2},"datasetVersion":"2026-08-13T14:17:21.547Z"}