Repository navigation
Conversation
sanchitrk
force-pushed
the
claude/cod-114-stacked-pr-92a28d
branch
from
October 14, 2026 19:30
f3014f3 to
b02d026
Compare
sanchitrk
force-pushed
the
claude/mcp-resources
branch
from
October 14, 2026 19:30
a67866b to
60888b5
Compare
…e host - list_mcp_resources, list_mcp_resource_templates and read_mcp_resource reach every enabled server with resources, through the same request path as tool calls (reconnect, expired-session recovery, sign-in). Listings page per server or cover every page; MCP App resources are left out. - Results keep the start and end of text over 20 KB and save the full text; binary resources are saved, text-typed blobs shown as text, and resource links name read_mcp_resource. - Saved files go to the host temp directory (mode 0600), since MCP runs on the host whatever sandbox a session uses. - Docs: an MCP page under Customize. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Listing every server's resources or templates uses the SDK's own pagination and its limits, so a server repeating a cursor cannot keep a listing running. - A cursor goes back to the server exactly as it was given; only server names and URIs are trimmed. - Tests remove the files they save, and read saved paths between the message's own delimiters. - Docs: which servers a message waits for, exposure changes keep a server running, and where server logs go. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sanchitrk
force-pushed
the
claude/mcp-resources
branch
from
October 15, 2026 03:49
60888b5 to
29d2570
Compare
4 tasks done
This branch has not been deployed
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
Stacked on #80. Adds MCP resources and Pi's handling of results the model isn't shown in full. Everything stays on the host: MCP runs in the harness process and never touches a session's sandbox, local or remote.
Resource tools (
src/mcp/resources.ts)list_mcp_resources,list_mcp_resource_templatesandread_mcp_resource, named and shaped like the tools other agents use, so models trained on them use them unchanged.server, one page is listed andcursorcontinues it. Without one, every page of every server is listed, and servers that fail go intoerrors.ui://,profile=mcp-app) and icons are left out of listings.Result content (
src/mcp/content.ts)text/*, JSON, XML) are shown as text.read_mcp_resourcewhen the server's resources can be read.Saved files (
src/mcp/output.ts)codework-mcp-*, mode 0600, created exclusively, never into a sandbox.One request path (
src/mcp/mcp.ts)Docs
customize/mcp: where servers run (always on your machine),mcp.json, project overrides, exposure, resources, connections.Review fixes (Codex peer review)
tools()does. A server repeating a cursor can't keep a listing running." page-2 "to prove it.Test plan
test/mcp.session.test.tsgains a third exchange, through the full harness against a real stdio server. It covers:cwdcursor, with theui://resource left outtest/mcp.client.test.ts: artifact updated for saved binaries and Pi-style resource linksvp checkandvp run typecheck🤖 Generated with Claude Code