{"record":{"id":"82b17a54d1ad0562","repo":"openai/codex","slug":"workload-identity-is-not-supported-by-codex-mcp-s","errorCode":null,"errorMessage":"workload identity is not supported by `codex mcp-server`","messagePattern":"workload identity is not supported by `codex mcp-server`","errorType":"validation","errorClass":"std::io::Error","httpStatus":null,"severity":"error","filePath":"codex-rs/mcp-server/src/lib.rs","lineNumber":213,"sourceCode":"                }\n                Err(e) => error!(\"Failed to serialize JSON-RPC message: {e}\"),\n            }\n        }\n\n        info!(\"stdout writer exited (channel closed)\");\n    });\n\n    // Wait for all tasks to finish.  The typical exit path is the stdin reader\n    // hitting EOF which, once it drops `incoming_tx`, propagates shutdown to\n    // the processor and then to the stdout task.\n    let _ = tokio::join!(stdin_reader_handle, processor_handle, stdout_writer_handle);\n\n    Ok(())\n}\n\nfn reject_workload_identity(workload_identity_selected: bool) -> IoResult<()> {\n    if workload_identity_selected {\n        return Err(std::io::Error::new(\n            ErrorKind::Unsupported,\n            \"workload identity is not supported by `codex mcp-server`\",\n        ));\n    }\n    Ok(())\n}\n\n#[cfg(test)]\n#[path = \"workload_identity_tests.rs\"]\nmod workload_identity_tests;\n\n#[cfg(test)]\nmod tests {\n    use super::*;\n    use codex_config::types::OtelExporterKind;\n    use codex_core::config::ConfigBuilder;\n    use pretty_assertions::assert_eq;\n    use std::collections::HashMap;","sourceCodeStart":195,"sourceCodeEnd":231,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/mcp-server/src/lib.rs#L195-L231","documentation":"Error \"workload identity is not supported by `codex mcp-server`\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/mcp-server/src/lib.rs:213 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":"339751715c64496cb86246bfb3935f40e309dd3d","analyzedAt":"2026-08-25T05:35:09.876Z","schemaVersion":2},"datasetVersion":"2026-08-25T06:17:31.827Z"}