PEP-286: агенты на Codex видят MCP peppa (env сервера, без подтверждений, без приложений аккаунта) #257

Merged
peppa-bot merged 1 commits from task/pep-286 into main 2026-11-25 10:32:21 +00:00
Owner

Story PEP-286. Codex agents on the server (TPTIP-85, TPTIP-88, QLFW-86) had no peppa tools.

  • Codex starts MCP servers with a bare environment, so peppa-mcp got no PEPPA_AGENT_TOKEN/URL/SESSION_ID and could not reach the relay. The launch now passes mcp_servers.peppa.env_vars.
  • peppa tools are approved by default (default_tools_approval_mode="approve"). Without it, codex exec refused the call.
  • features.apps=false: the ChatGPT account's own app «peppa» (remote MCP, needs a fresh sign-in) was being called instead.
  • mock-codex strips the MCP env like the real CLI. The Codex e2e fails without the fix and passes with it.

Checked by hand in the container peppa-s817 (codex-cli 0.171.0): get_task TPTIP-85 returns the story. OpenSpec: 2026-11-25-pep-286-codex-mcp-env.

🤖 Generated with Claude Code

Story PEP-286. Codex agents on the server (TPTIP-85, TPTIP-88, QLFW-86) had no `peppa` tools. - Codex starts MCP servers with a bare environment, so `peppa-mcp` got no `PEPPA_AGENT_TOKEN`/`URL`/`SESSION_ID` and could not reach the relay. The launch now passes `mcp_servers.peppa.env_vars`. - `peppa` tools are approved by default (`default_tools_approval_mode="approve"`). Without it, `codex exec` refused the call. - `features.apps=false`: the ChatGPT account's own app «peppa» (remote MCP, needs a fresh sign-in) was being called instead. - `mock-codex` strips the MCP env like the real CLI. The Codex e2e fails without the fix and passes with it. Checked by hand in the container `peppa-s817` (codex-cli 0.171.0): `get_task TPTIP-85` returns the story. OpenSpec: `2026-11-25-pep-286-codex-mcp-env`. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
peppa-bot added 1 commit 2026-11-25 10:06:19 +00:00
PEP-286: Codex agents get the peppa MCP server's env, tools without approval, no account apps
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 50с
peppa/build build: success за 32с
peppa/test test: success за 1309с
peppa-ci / ci (pull_request) Successful in 24m16s
6a3074f86f
Codex starts MCP servers with a bare environment, so peppa-mcp lacked the
session's PEPPA_* (relay token, URL, session) and exposed no tools; agents
called the ChatGPT account's own «peppa» app, which wanted a fresh sign-in.
mock-codex now strips the MCP env like the real CLI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
peppa-bot merged commit 7948d83649 into main 2026-11-25 10:32:21 +00:00
peppa-bot deleted branch task/pep-286 2026-11-25 10:32:21 +00:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: peppa-bot/peppa#257
No description provided.