MCP · Tools
vite-doctor/mcptoolswarnNo fix
Why it happens
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.
Fix
Rename the tool to at most 64 characters, using only letters, digits, _, -, and ..
Example
Use a plain tool name
Before
defineTool({ name: 'list order suggestions', handler })
After
defineTool({ name: 'list_order_suggestions', handler })
Verify the fix
Run only this rule after editing so the report stays focused on the diagnostic you are closing:
pnpm vite-doctor . --rules mcp/tools/valid-name