* fix: do not add MCP tool with invalid names as native tools - Filter out MCP tools with names >= 64 characters to avoid provider API rejection - Reduce nanoid length from default (21) to 5 characters for server UIDs Provider APIs reject tool registration when tool names exceed 64 characters. This change prevents registration errors by skipping tools with long names and generating shorter UIDs to minimize the constructed name length (uid + identifier + tool name). * Add Changeset * Update src/services/mcp/McpHub.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update src/core/prompts/system-prompt/registry/ClineToolSet.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
119 B
119 B
claude-dev
| claude-dev |
|---|
| patch |
Skip MCP tool with invalid name (e.g. name too long) when native tool calling is enabled.