MCP · MCP0003
Keep MCP tool names short and plain
Report MCP tool names longer than 64 characters or with characters outside A-Z, a-z, 0-9, `_`, `-`, and `.`.
Run this rule
pnpm vite-doctor . --rules mcp/tools/valid-name
Why it matters
MCP limits tool names to ASCII letters, digits, _, -, and ., and up to 128 characters. Anthropic's Connectors Directory is stricter and rejects names longer than 64 characters. Clients that turn tools into model function calls can't reliably use a name with spaces or other characters. h3-mcp (okmcp), and nitro-mcp-toolkit on top of it, answer the whole tools/list with HTTP 500 when any name breaks the MCP format, so one bad name hides every tool on the server.
Recommended fix
Rename the tool to at most 64 characters, using only letters, digits, _, -, and ..
Useful links
Example
Use a plain tool name
Before
defineTool({ name: 'list order suggestions', handler })
After
defineTool({ name: 'list_order_suggestions', handler })