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
Bug: MCP resource @mention dispatches local file read instead of resources/read RPC #17543
Configure an MCP server that exposes resources (e.g. resource://promptd/git-status.sh)
In an opencode session, type @git-status.sh — the resource autocompletes correctly
Send the message
Expected behavior:
opencode sends a resources/read request to the MCP server with uri: "resource://promptd/git-status.sh". The server handles it and returns the content.
Actual behavior:
opencode constructs a file:// URL using the resource filename resolved against the current working directory (e.g. file:///Users/blink/Code/promptd/git-status.sh) and attempts to read it with its local file read tool. The file doesn't exist at that path, so it fails:
→ Read git-status.sh
Error: File not found: /Users/blink/Code/promptd/git-status.sh
Plugins
none
OpenCode version
1.2.26
Steps to reproduce
Configure an MCP server that exposes resources (e.g. resource://promptd/git-status.sh)
In an opencode session, type @git-status.sh — the resource autocompletes correctly
My problem is currently that it only consumes resources starting with http, https or data. I naively tried to switch to data, hoping it will read them like Cursor or Claude does, but it ends in the error:
Failed to download data://a/b: Error: failed to fetch the data URL
Activity
bkosm commentedon Apr 15, 2026
My problem is currently that it only consumes resources starting with
http,httpsordata. I naively tried to switch todata, hoping it will read them like Cursor or Claude does, but it ends in the error:The server is implemented with https://github.com/modelcontextprotocol/go-sdk