[PR #5451] feat: mcp prompts as slash commands #11405

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

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

State: closed
Merged: No


Partially addresses #806

This adds every prompt in the mcp servers as a slash command...the slashes are named mcp.[servername].[promptname]

Here's how it looks like using it.

https://github.com/user-attachments/assets/89e4819a-292c-47ab-a446-ad66ab6a526a

I've added a "cache" layer so that prompts are only fetched when an MCP server is connected. The value of the prompt is fetched lazily when the user selects it.

If this get's merged, I'll probably work on resources too.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/5451 **State:** closed **Merged:** No --- Partially addresses #806 This adds every prompt in the mcp servers as a slash command...the slashes are named `mcp.[servername].[promptname]` Here's how it looks like using it. https://github.com/user-attachments/assets/89e4819a-292c-47ab-a446-ad66ab6a526a I've added a "cache" layer so that prompts are only fetched when an MCP server is connected. The value of the prompt is fetched lazily when the user selects it. If this get's merged, I'll probably work on resources too.
yindo added the pull-request label 2026-02-16 18:16:14 -05:00
yindo closed this issue 2026-02-16 18:16:14 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11405