Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@paoloricciuti
Copy link
Contributor

A last-minute change from @rekram1-node in #5767 was to add an (MCP) tag to the name of the prompt if it was an MCP one. Quite a nice addition to be fair. However, that broke the functionality because now the prompt has a space, meaning the (MCP) part is considered an argument by the parser and the name is not matched.

This PR fixes it by adding an mcp property to the Command object so that we can still display the (MCP) tag but then when it's added to the prompt only the uninterrupted name is there which mean the substitution will work fine.

One possible change could be to have a general tag property instead of the specific mcp one so that if we want to add more tags in the future we can for example display /my-command (CUSTOMTAG)...but it might be surperflous.

@rekram1-node rekram1-node merged commit 5249f04 into anomalyco:dev Dec 31, 2025
2 checks passed
burgercrisis pushed a commit to burgercrisis/opencode that referenced this pull request Dec 31, 2025
dl-alexandre pushed a commit to dl-alexandre/opencode that referenced this pull request Jan 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants