Repository navigation
feat: expose native MCP resource pages and reads - #5597
Merged
markstuart-oai merged 2 commits intoNov 7, 2026
Merged
Conversation
markstuart-oai
requested review from
a team,
rm-openai and
seratch
as code owners
November 7, 2026 21:23
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. |
markstuart-oai
force-pushed
the
mark/req573-mcp-resources-python
branch
from
November 7, 2026 22:10
84173f0 to
8230593
Compare
markstuart-oai
force-pushed
the
mark/req573-mcp-resources-python
branch
from
November 7, 2026 22:37
8230593 to
8d46f1f
Compare
dpiet-oai
approved these changes
Nov 7, 2026
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 adds the missing native Session APIs for MCP resource pages and URI reads:
list_mcp_resources,list_mcp_resource_templates, andread_mcp_resource. Each list call returns one page and its cursor. Typed results preserve text, blobs and metadata; callers decide whether to include resource contents in a prompt.The methods reuse native MCP connections and the existing ownership of idle operations. Resource-only servers can use
tools=[]; access starts only the requested server. Missing resource capability returns an empty page. Saved resource-only selections resolve against current declarations without granting tools. Cancellation and close join pending native work.A patch to the pinned native codec preserves fractional resource annotation priorities. Valid replies with those values previously decoded as the wrong result type. Native pins stay fixed. The generated API snapshot includes the additive resource methods and types.
Test plan
Issue number
None linked.
Checks
AGENTS.md, including.agents/skills/code-change-verification/scripts/run.shwhen requiredAGENTS.md