You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
MCP server name over 64 chars: all its tools are silently dropped, and the server still shows connected #53400
If an MCP server's name is longer than 64 characters (after _ normalization), none of its tools get registered. GET /api/mcp still says connected, and the only sign is one ERROR log line per tool. namespaceError in tool.ts requires each namespace segment to match ^[A-Za-z0-9_-]{1,64}$, but McpTool.namespace (tool/mcp.ts:16) only replaces characters and never shortens the name. #51207 raised tool names to 128 chars, but the namespace limit is still 64.
We hit this through T3 Code, which names its per-thread server t3-code-<threadId> (96+ chars), so the agent gets none of T3's tools.
Suggested fix: shorten long names in McpTool.namespace, for example the first 55 chars + _ + an 8-char hash of the full name. Permission names built from it (McpTool.name) would have to use the same short form. Or at least show the rejection in /api/mcp.
Plugins
none
OpenCode version
2.0.22. The code is the same in 2.0.23 and on v2 @ ef07075.
Steps to reproduce
Project opencode.json, with a 65-char server name and any stdio MCP server (we used a 30-line Python one):
Activity
github-actions commentedon Oct 5, 2026
This issue might be a duplicate of an existing issue. Please check:
rekram1-node commentedon Oct 6, 2026
it names every server w/ 96+ chars? Won't most apis reject that entirely...