Skip to content

app-server: forward MCP resource read _meta#30264

Draft
drewschuster-openai wants to merge 2 commits into
mainfrom
dev/drew/mcp-resource-read-meta
Draft

app-server: forward MCP resource read _meta#30264
drewschuster-openai wants to merge 2 commits into
mainfrom
dev/drew/mcp-resource-read-meta

Conversation

@drewschuster-openai

@drewschuster-openai drewschuster-openai commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Forward caller-provided MCP request metadata through mcpServer/resource/read without interpreting it.

Current state

mcpServer/tool/call can carry MCP _meta, but mcpServer/resource/read only accepts threadId, server, and uri. Resource-read metadata is therefore dropped before the request reaches the MCP server.

This is plumbing only: it enables callers to provide resource-read metadata, but does not itself construct app-routing metadata or fix template URI collisions.

What this PR changes

  • Adds optional _meta to McpResourceReadParams.
  • Forwards _meta through both thread-scoped and threadless resource-read paths.
  • Attaches the metadata to RMCP ReadResourceRequestParams.
  • Regenerates the app-server protocol schemas.
  • Adds coverage confirming that the downstream MCP server receives the supplied metadata.

@drewschuster-openai drewschuster-openai changed the title . app-server: forward MCP resource read _meta Jun 26, 2026
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.

1 participant