Skip to content

fix(core): drop tool name and namespace length caps - #53586

Merged
rekram1-node merged 1 commit into
v2from
drop-tool-name-caps
Oct 6, 2026
Merged

rekram1-node merged 1 commit into
v2from
drop-tool-name-caps

Conversation

@opencode-agent

@opencode-agent opencode-agent Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

Fixes #53400

Tool registration capped normalized tool names at 128 characters and each namespace segment at 64. MCP server names become namespaces without shortening, so a server name over 64 characters had every tool skipped while the server still reported connected.

This drops both length caps. The character-class check and the non-empty requirement (including empty dotted namespace segments) stay in place.

Removed the tests that only asserted the length caps.

Verification (packages/core): bun test test/tool-registry.test.ts test/mcp.test.ts, bun typecheck.

Requested by: @rekram1-node (Aiden Cline via Slack)

@rekram1-node
rekram1-node merged commit c2f8785 into v2 Oct 6, 2026
10 of 11 checks passed
@rekram1-node
rekram1-node deleted the drop-tool-name-caps branch October 6, 2026 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant