Repository navigation
feat: add code-mode MCP API files - #88763
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed May 31, 2026, 4:22 PM ET / 20:22 UTC. Summary PR surface: Source +189, Tests +111, Docs +3, Config +2, Other +717. Total +1022 across 18 files. Reproducibility: not applicable. for a feature PR. Current main lacks the new Review metrics: 2 noteworthy metrics.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Land the virtual API-file design only after redacted deterministic/live Docker proof is attached and maintainers accept the new live lane and Do we have a high-confidence way to reproduce the issue? Not applicable for a feature PR. Current main lacks the new Is this the best way to solve the issue? Yes, with a proof and owner-approval caveat: deriving virtual declaration files from the existing MCP namespace model is a maintainable fit that avoids putting MCP schemas in the model-visible tool list. The merge should still wait for captured after-fix proof and maintainer acceptance of the live lane and global name. AGENTS.md: found and applied where relevant. Codex review notes: model gpt-5.5, reasoning high; reviewed against b0679d1f13da. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +189, Tests +111, Docs +3, Config +2, Other +717. Total +1022 across 18 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
8454628 to
f9045f7
Compare
|
Land-ready proof for head 576c83e. Summary:
Verification:
Docker behavior proof:
GitHub checks: exact head is clean, 140 successful, 0 pending, 0 failing. |
Summary
API.list()/API.read()declaration files for code-mode MCP namespaces (mcp/index.d.ts,mcp/<server>.d.ts)MCP.<server>.<tool>()in code mode while keeping MCP tools hidden from the model-visible tool list$api()/tools.searchpollutionVerification
node scripts/run-vitest.mjs src/agents/runtime-plan/tools.test.ts src/agents/code-mode.test.ts test/scripts/docker-e2e-plan.test.ts src/agents/embedded-agent-runner/run/attempt-tool-construction-plan.test.ts -- --reporter=dotpnpm check:test-typesbash -n scripts/e2e/mcp-code-mode-gateway-docker.sh scripts/e2e/mcp-code-mode-gateway-live-docker.sh && node --check scripts/e2e/mock-openai-server.mjspnpm test:docker:mcp-code-mode-gatewaypnpm test:docker:live-mcp-code-mode-gateway.agents/skills/autoreview/scripts/autoreview --mode local --prompt 'Review only the MCP code-mode/API-file/docker-e2e/runtime-plan changes. Ignore unrelated pre-existing dirty packages/*/dist files in this checkout. The prior finding about exec/wait allowlists was addressed by removing the MCP allowlist bypass; confirm no remaining actionable issues.'