Repository navigation
Expose MCP tool outcomes - #6381
Merged
Merged
Conversation
markstuart-oai
requested review from
a team,
rm-openai and
seratch
as code owners
December 2, 2026 23:34
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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
approved these changes
Dec 2, 2026
jbeckwith-oai
left a comment
Contributor
There was a problem hiding this comment.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_outcomereturns 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.pypassed, 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 testsreported 464 passes and five failures involving a command hook, sandbox file writes, and a subagent. The same five tests failed on unmodifiedv1-alpha. This workspace blocks user namespace mapping.Issue number
None
Checks
.agents/skills/code-change-verification/scripts/run.sh/reviewbefore submitting this PR