[PR #6542] feat: mcp resources #11966

Closed
opened 2026-02-16 18:16:54 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/6542

State: closed
Merged: Yes


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.

https://github.com/user-attachments/assets/1fc9008e-bed1-4256-9bf9-3b17db597db7

I had to create a new endpoint on the server (as we couldn't re-use one like with Command in prompts).

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/6542 **State:** closed **Merged:** Yes --- 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. https://github.com/user-attachments/assets/1fc9008e-bed1-4256-9bf9-3b17db597db7 I had to create a new endpoint on the server (as we couldn't re-use one like with `Command` in prompts).
yindo added the pull-request label 2026-02-16 18:16:54 -05:00
yindo closed this issue 2026-02-16 18:16:54 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11966