You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE]: Support MCP Resources (resources/read) in addition to MCP Tools #15535
I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
What to add
OpenCode currently connects to MCP servers and exposes their tools (tools/call) to the AI, but does not implement the resources capability (resources/list, resources/read) defined in the MCP specification.
MCP servers can expose both tools and resources. Resources are identified by URIs and represent readable content — files, documents, or structured data that the AI can fetch on demand. Without resources/read support, the AI cannot access any of these, even when the MCP server explicitly serves them.
Concrete example
An MCP server exposes documentation as resources under a custom URI scheme. Each skill tool returns a summary, but the full reference material (e.g. API references, templates, scripts) lives in sub-resources like:
skill://my-skill/references/some-reference.md
In Cursor (which implements resources/read), the AI can fetch this URI directly through the MCP server. In OpenCode, it cannot — the only fallback is reading the file from the local filesystem, which breaks in remote or containerized environments where the files aren't mounted.
What to change
During MCP server initialization, negotiate the resources capability alongside tools.
Expose a mechanism for the AI to call resources/read with a URI, and return the resource contents (text or blob).
Optionally: expose resources/list so the AI can discover available resources without needing to know URIs in advance.
Benefits
Full MCP spec compliance — resources are a first-class capability in MCP 2025-11-25; supporting them makes OpenCode a complete MCP client.
Richer context for AI — MCP servers often serve supplementary reference material (docs, templates, examples) via resources that tools alone cannot surface.
Environment-agnostic access — resource content comes from the MCP server itself, so it works in remote/containerized setups where the local filesystem isn't available.
Parity with other MCP clients — Cursor already supports this; the gap makes OpenCode a second-class citizen when working with resource-heavy MCP servers.
Reacted by Alireza Davoodi, Stefan Schöffmann, Alexander Rose, carschandler, domenicoCappello, Doug Chasman, George Thomas, Valentin Delaye, Karan Agrawal, Marcel Feix and 9 more
This issue might be a duplicate of existing issues. Please check:
[FEATURE]:model-invoked MCP resources #8928: Requests the same feature — model-invoked MCP resources (resources/read and resources/list) so the AI can access MCP server resources directly, not just tools.
I filed almost the same request and closed it once GitHub told me that it had found this issue. I have already tested it locally and a working implementation can be found here: dev...visusnet:opencode:feat/mcp-resource-tools
In case this feature is accepted, I'd be happy to create a PR.
Reacted by Fei Whang, carschandler, Doug Chasman, Karan Agrawal, 4rcadia and David Fuentes
Adding another vote for this - one of our use cases is exactly the structured documentation in markdown format exposed as resources scenario! Thank you!
Reacted by Doug Chasman, Valentin Delaye, Marcel Feix and 4rcadia
Activity
github-actions commentedon Mar 1, 2026
This issue might be a duplicate of existing issues. Please check:
resources/readandresources/list) so the AI can access MCP server resources directly, not just tools.visusnet commentedon Mar 25, 2026
I filed almost the same request and closed it once GitHub told me that it had found this issue. I have already tested it locally and a working implementation can be found here: dev...visusnet:opencode:feat/mcp-resource-tools
In case this feature is accepted, I'd be happy to create a PR.
feiwhang commentedon Mar 27, 2026
Tested #15535 (comment) locally, @visusnet it works flawless for me.
dchasman commentedon Apr 4, 2026
Adding another vote for this - one of our use cases is exactly the structured documentation in markdown format exposed as resources scenario! Thank you!
feiwhang commentedon Apr 4, 2026
Providing Skills via MCP Resources are becoming more common. https://gofastmcp.com/servers/providers/skills
chrismo80 commentedon May 21, 2026
Just wanted to test resources in opencode and recognized, that the LLM cannot see them. =(