opencode icon indicating copy to clipboard operation
opencode copied to clipboard

feat: mcp prompts as slash commands (alternative)

Open paoloricciuti opened this issue 7 months ago • 5 comments

Alternative to #5451

This is far less complex and contains most of the changes into the Command namespace (and obviously the MCP but just to add the functions to fetch).

I've also changed the name to be /mcp.mcpservername.promptname(arg,arg2,arg3) to show the arguments

paoloricciuti avatar Dec 18 '25 23:12 paoloricciuti

@rekram1-node can we push this or #5451 through?

kziemski avatar Dec 27 '25 21:12 kziemski

gonna get this one in today me thinks

rekram1-node avatar Dec 29 '25 17:12 rekram1-node

foiled by formatting

kziemski avatar Dec 29 '25 20:12 kziemski

@rekram1-node let me know if I need to fix something to bring it up to speed or it you are doing it locally

paoloricciuti avatar Dec 29 '25 20:12 paoloricciuti

it;s good im going to do a tweak so that slash commands have muted "hints" so you can see in the tui if you should pass 1 or more args for it

rekram1-node avatar Dec 30 '25 05:12 rekram1-node

I added a hints concept but i dont have the time to do a frontend implementation rn, I wanna make muted text hints like

/command [arg1] [arg2]

rekram1-node avatar Dec 31 '25 06:12 rekram1-node