Repository navigation
anet 2.2.14 — codex-sdk commhub MCP injection (#245 P0)
anet 2.2.14 — codex-sdk commhub MCP injection (#245 P0)
Companion to agent-node 2.4.11 (same #245 codex-sdk MCP fix, see https://github.com/sleep2agi/agent-network/releases/tag/v2.4.11). Both upgrade together.
🌟 Highlight (#245 codex-sdk MCP injection — agent-network side)
ensureMcpJson runtime gate widened from claude-code-cli only to claude-code-cli OR codex-sdk. For codex-sdk, the function still:
- refreshes
.anet/node-server.jsfrom the npm package (the bun stdio commhub MCP server that exposes the full 8-tool set); - self-heals
@modelcontextprotocol/sdkin.anet/node_modulesif it goes missing / partial; - writes
.anet/.env(COMMHUB_URL,COMMHUB_TOKEN);
… but skips the .mcp.json write for codex-sdk — codex CLI doesn't read cwd .mcp.json; writing it would be a silent no-op + a debugging trap.
The companion fix in agent-node 2.4.11 adds CODEX_CONFIG.mcp_servers.commhub = { command: "bun", args: [<cwd>/.anet/node-server.js] } so codex's subprocess MCP discovery finds the freshly-refreshed .anet/node-server.js. The codex CLI subprocess inherits COMMHUB_ALIAS / COMMHUB_TOKEN / COMMHUB_URL from this agent-node parent process — per-node identity, no ~/.codex/config.toml mutation.
Live-verified on TMCode 副责人 codex-sdk node:
- ✅
commhub_send_taskcallable; the node sent a tracked task ("codex MCP verify alive") that 通信龙 acked - ✅
commhub_get_all_statusreturns the node's correct alias (TMCode副责人, not the stalecodex-硅谷)
🐛 Bugs fixed
- #245 — codex-sdk nodes had no commhub MCP injection. The earlier global
[mcp_servers.commhub-proxy]in~/.codex/config.tomlwas a limited 4-tool proxy withoutsend_task/get_all_statusand with a hard-coded global alias. New nodes default to codex-sdk runtime and inherited that broken proxy. Net result: "新成员都用不了 send_task." Fixed by wideningensureMcpJsonruntime gate + companionCODEX_CONFIG.mcp_servers.commhubinjection in agent-node 2.4.11.
📦 Install (new users)
npm i -g @sleep2agi/agent-network@latest
anet --version # should print: anet v2.2.14anet hub start lazy-fetches commhub-server@0.8.5 (PINNED, unchanged). First anet node start lazy-fetches agent-node@2.4.11 (latest).
🔄 Upgrade (existing users)
# narrow: just the CLI
npm i -g @sleep2agi/agent-network@latest
# or pair with agent-node@2.4.11 for the full codex-sdk MCP fix (recommended):
npm i -g @sleep2agi/agent-network@latest @sleep2agi/agent-node@latest
# restart any codex-sdk node so the new MCP injection takes effect:
cd <node-workdir> && anet node stop <alias> && anet node start <alias>anet upgrade alone is enough — no node restart required since the agent-network change is ensureMcpJson-internal and idempotent.
📦 Components shipped
| Package | latest |
|---|---|
@sleep2agi/agent-network |
2.2.14 ⬆ (from 2.2.13) |
@sleep2agi/agent-node |
2.4.11 (companion — see v2.4.11 release) |
@sleep2agi/commhub-server |
0.8.5 (unchanged) |
PINNED_SERVER_VERSION = "0.8.5" unchanged.
🙏 Credits
- #245 codex-sdk audit + double-package fix + release ops: 通信工程马
- Diagnostic snapshot + live verification (3 铁证): TMCode 负责人
- Original "新成员都用不了 send_task" retro: Vincent
- Coordination + ship-blocker gating + final accept verdict: 通信龙
Full Changelog: v2.2.13...v2.2.14