bug: Prefix Mismatch in MCP Tool Identification #1603

Closed
opened 2026-02-16 17:31:44 -05:00 by yindo · 1 comment
Owner

Originally created by @arsham on GitHub (Sep 4, 2025).

Originally assigned to: @rekram1-node on GitHub.

The internal prompt instructions for the language model specify that all MCP-provided tools should be prefixed with mcp__ to ensure they are prioritised. However, the tool registration process allows for a different prefix, such as arsham-mcp_, which is used in my current setup. An example is arsham-mcp_convert_time, one of my own mcp tools.

I am not sure if this is a bug or I am misreading something, but it seems that the tool should have been registered with mcp__arsham-mcp_convert_time instead.

Originally created by @arsham on GitHub (Sep 4, 2025). Originally assigned to: @rekram1-node on GitHub. The [internal prompt instructions](https://github.com/sst/opencode/blob/d440ba32abbab72d11a532811b1e6646b5aae7da/packages/opencode/src/tool/webfetch.txt) for the language model specify that all MCP-provided tools should be prefixed with `mcp__` to ensure they are prioritised. However, the tool registration process allows for a different prefix, such as `arsham-mcp_`, which is used in my current setup. An example is `arsham-mcp_convert_time`, one of my own mcp tools. I am not sure if this is a bug or I am misreading something, but it seems that the tool should have been registered with `mcp__arsham-mcp_convert_time` instead.
yindo closed this issue 2026-02-16 17:31:44 -05:00
Author
Owner

@rekram1-node commented on GitHub (Sep 4, 2025):

that looks like a mistake to me going to confirm w/ Dax

@rekram1-node commented on GitHub (Sep 4, 2025): that looks like a mistake to me going to confirm w/ Dax
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1603