claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[BUG] Plugin resources aren't automatically added to context window (requires manual `readMcpResource` call)

Open pattobrien opened this issue 5 months ago • 2 comments

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Given an MCP server with a Resource with uri "org://docs":

If the MCP server is installed via Plugin, referencing "@plugin:myplugin:mymcp:org://docs" in a prompt doesnt automatically load the resource into the context window, requiring Claude to (sometimes unreliably) read the resource via readMcpResource manually.

When the same MCP server is installed via .mcp.json, referencing the resource via "@mymcp:org://docs" works just fine.

What Should Happen?

It's expected that plugin-installed MCP servers are able to be referenced the same as MCP servers installed via .mcp.json.

Error Messages/Logs


Steps to Reproduce

See above

Claude Model

None

Is this a regression?

No, this never worked

Last Working Version

No response

Claude Code Version

2.0.27

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

VS Code integrated terminal

Additional Information

No response

pattobrien avatar Oct 27 '25 01:10 pattobrien

This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

github-actions[bot] avatar Dec 08 '25 10:12 github-actions[bot]

This issue is still occurring.

pattobrien avatar Dec 08 '25 22:12 pattobrien