Skip to content

Tool names that do not match ^[a-zA-Z0-9_-]{1,128}$ will break Claude Code #56

@asw101

Description

@asw101

Tool names such as local:time-server/time.get-current-time will break Claude Code with the following error:

API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"tools.15.custom.name: String should match pattern '^[a-zA-Z0-9_-]{1,128}$'"}}

This won't just break Wassette but it also stops Claude Code from running any commands until the MCP server is removed completely. There are outstanding issues for this and it also affects other MCP servers, but does not affect other clients such as Gemini CLI.

I suggest we handle this on our end to avoid serving Claude Code an MCP tool with the special characters.

+@Mossaka

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions