Skip to content

Expose MCP tool outcomes - #6381

Merged
markstuart-oai merged 1 commit into
v1-alphafrom
codex/v1-tool-outcomes
Dec 3, 2026
Merged

markstuart-oai merged 1 commit into
v1-alphafrom
codex/v1-tool-outcomes

Conversation

@markstuart-oai

Copy link
Copy Markdown
Contributor

Summary

This pull request lets applications distinguish callback success from an MCP tool's reported error status. The application identifies the MCP call, and mcp_tool_outcome returns its call ID and statuses without retaining output content or metadata. Missing or malformed status information remains unknown.

Test plan

All 66 isolated tests in test_mcp_tools.py passed, covering scripted success and error envelopes, denials, and callback exceptions.

The full verification script ran on all five changes together. Formatting, lint, mypy for Linux and Windows, and Pyright passed. All 285 focused tests passed.

make tests reported 464 passes and five failures involving a command hook, sandbox file writes, and a subagent. The same five tests failed on unmodified v1-alpha. This workspace blocks user namespace mapping.

Issue number

None

Checks

  • I've added new tests, if relevant
  • I've run .agents/skills/code-change-verification/scripts/run.sh
  • I've confirmed all verification steps pass
  • If using Codex, I've run /review before submitting this PR

@markstuart-oai
markstuart-oai requested review from a team, rm-openai and seratch as code owners December 2, 2026 23:34
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-02T23:36:02.720459Z 3f5c38b PR opened
🔒 Security Review ✅ Completed 2026-12-02T23:36:53.189888Z 3f5c38b PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@jbeckwith-oai jbeckwith-oai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No actionable findings. Reviewed the MCP envelope contract, tri-state outcome handling, callback failures, malformed payloads, and content-free outcome reporting.

Comprehensive static review with independent review. No candidate code or tests were run locally. Hosted CI has no failures observed; some checks are still running.

@markstuart-oai
markstuart-oai merged commit a30fc76 into v1-alpha Dec 3, 2026
24 checks passed
@markstuart-oai
markstuart-oai deleted the codex/v1-tool-outcomes branch December 3, 2026 00:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants