From 3072449c9453b6292a04abbd67e9de77e7b7f955 Mon Sep 17 00:00:00 2001 From: Codeman maintainer Date: Tue, 13 Oct 2026 17:44:25 +0200 Subject: [PATCH] docs(mcp): forward CODEMAN_MUX and CODEMAN_SESSION_ID in the Codex config (#615 merge-time fix) Codex starts stdio MCP servers with a minimal environment, so `codeman mcp` under the documented Codex config never learned the session it runs in: the self-protection and the children rule did not apply. Both Codex TOML snippets now forward the two variables with `env_vars`. Co-Authored-By: Claude Opus 5.5 (1M context) --- README.md | 1 + docs/wiki/Driving-Codeman-From-An-Agent.md | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index 769e2566..9a89c508 100644 --- a/README.md +++ b/README.md @@ -989,6 +989,7 @@ claude mcp add codeman -e CODEMAN_API_URL=https://127.0.0.1:3000 -- codeman mcp command = "codeman" args = ["mcp"] env = { CODEMAN_API_URL = "https://127.0.0.1:3000" } +env_vars = ["CODEMAN_MUX", "CODEMAN_SESSION_ID"] # Codex passes MCP servers a minimal env; these let it know the Codeman session it runs in tool_timeout_sec = 120 ``` diff --git a/docs/wiki/Driving-Codeman-From-An-Agent.md b/docs/wiki/Driving-Codeman-From-An-Agent.md index 428043bd..4d62f05b 100644 --- a/docs/wiki/Driving-Codeman-From-An-Agent.md +++ b/docs/wiki/Driving-Codeman-From-An-Agent.md @@ -129,6 +129,7 @@ claude mcp add codeman -e CODEMAN_API_URL=https://127.0.0.1:3000 -- codeman mcp command = "codeman" args = ["mcp"] env = { CODEMAN_API_URL = "https://127.0.0.1:3000" } +env_vars = ["CODEMAN_MUX", "CODEMAN_SESSION_ID"] # Codex passes MCP servers a minimal env; these let it know the Codeman session it runs in tool_timeout_sec = 120 ```