Merged
Conversation
|
@paoloricciuti @rekram1-node , tested this works great so far. this and prompts completes the loop on mcp servers. |
Contributor
Author
|
Uhm, just realized there might be a problem in case an MCP server exposes a resource as |
Contributor
Author
|
Done! 😄 |
Collaborator
|
im gonna make a generic experimental endpoint so plugins can do this kinda thing too, and then merge those changes into here and integrate it |
Contributor
Author
Uh that's interesting and very cool! Let me know if I can do something. |
Collaborator
|
/review |
Contributor
|
lgtm |
1 task
github-actions bot
pushed a commit
to yuguorui/opencode
that referenced
this pull request
Jan 18, 2026
triklozoid
pushed a commit
to triklozoid/opencode
that referenced
this pull request
Feb 2, 2026
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.
Closes #806
This adds the ability to add MCP resources in the opencode prompt. It works just like files, when you do
@it shows you the list of resources and you can select them...the resource is only fetched once the prompt is actually sent.Here's an example of the behaviour.
Screen.Recording.2025-12-31.at.19.52.09.mov
I had to create a new endpoint on the server (as we couldn't re-use one like with
Commandin prompts).