-
Notifications
You must be signed in to change notification settings - Fork 6.5k
feat: mcp resources #6542
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: mcp resources #6542
Conversation
|
@paoloricciuti @rekram1-node , tested this works great so far. this and prompts completes the loop on mcp servers. |
|
Uhm, just realized there might be a problem in case an MCP server exposes a resource as |
|
Done! 😄 |
|
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 |
Uh that's interesting and very cool! Let me know if I can do something. |
|
/review |
|
lgtm |
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).