voicebox icon indicating copy to clipboard operation
voicebox copied to clipboard

MCP tool names contain "." which violates Claude Desktop's name pattern ^[a-zA-Z0-9_-]{1,64}$

Open deliteknisyen opened this issue 5 months ago • 2 comments

Summary

The Voicebox MCP server exposes tool names that use a dot (.) as a namespace separator (e.g. voicebox.speak). Claude Desktop rejects these because tool names must match the pattern ^[a-zA-Z0-9_-]{1,64}$, which does not allow .. As a result, connecting to the Voicebox MCP server breaks the entire tool list with the following error:

tools.87.FrontendRemoteMcpToolDefinition.name: String should match pattern '^[a-zA-Z0-9_-]{1,64}$'

Affected tool names

All four exposed tools are affected:

  • voicebox.speak
  • voicebox.transcribe
  • voicebox.list_captures
  • voicebox.list_profiles

Steps to reproduce

  1. Run Voicebox v0.5.0 (CUDA backend) with the MCP server mounted at /mcp.
  2. Add it as a remote MCP server in Claude Desktop.
  3. Claude Desktop fetches the tool list and rejects it because the names contain ..
  4. With Voicebox enabled, the whole tool list fails validation; disabling Voicebox makes the error disappear.

Expected behavior

Tool names should match ^[a-zA-Z0-9_-]{1,64}$. Using an underscore (or hyphen) as the namespace separator would fix this, e.g. voicebox_speak, voicebox_transcribe, voicebox_list_captures, voicebox_list_profiles.

Environment

  • Voicebox v0.5.0 (PyTorch / CUDA backend)
  • OS: Windows 11 (AMD64)
  • Python 3.12.10
  • GPU: NVIDIA GeForce RTX 3060
  • MCP transport: StreamableHTTP, mounted at /mcp
  • Client: Claude Desktop

Notes

Verified the tool names directly via a tools/list call against the MCP endpoint; all returned names use the voicebox.<tool> dot format. The MCP spec / Claude's validator restricts tool names to letters, digits, underscore and hyphen, so the dot is the root cause.

deliteknisyen avatar Jun 23 '26 13:06 deliteknisyen

Can confirm this also reproduces on macOS, not just Windows.

  • Voicebox v0.5.0 (Apple Silicon build, MLX backend)
  • OS: macOS 26.6 (arm64)
  • MCP transport: StreamableHTTP, mounted at /mcp
  • Client: Claude Desktop

Same four tool names (voicebox.speak, voicebox.transcribe, voicebox.list_captures, voicebox.list_profiles) get excluded from the tool list with the naming-pattern error. Worth noting Claude Code (CLI) connects to the same MCP endpoint without issue — it appears to sanitize/prefix tool names client-side — so this is specific to clients that validate strictly against ^[a-zA-Z0-9_-]{1,64}$, like Claude Desktop.

Krustin avatar Aug 07 '26 19:08 Krustin

For anyone else blocked on this while waiting for #808 (or a maintainer fix) to merge: I wrote up a client-side workaround and posted it on the PR thread here: https://github.com/jamiepine/voicebox/pull/808#issuecomment-5221452128

TL;DR — a small Python stdio proxy sits between Claude Desktop and the bundled voicebox-mcp shim and rewrites tool names bidirectionally (voicebox.speak ↔ voicebox_speak, etc.) on the JSON-RPC stream, so Claude Desktop's ^[a-zA-Z0-9_-]{1,64}$ validator stops rejecting the tool list. Confirmed working on macOS/MLX — tools/list returns clean names and tools/call round-trips correctly. Full script + config snippet in the linked comment. Obviously just a stopgap until the underscore rename in #808 lands.

Krustin avatar Aug 07 '26 19:08 Krustin