No space characters in the MCP server names
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 19.9k
- Forks
- 2.3k
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 30
Description
I have upgraded from version 0.64.2 to 0.75.2 and the jcode stopped working because MCP servers I am using have space characters in the MCP server names. I am getting the following error - for Claude:
Anthropic API error (400 Bad Request): {"type":"error","error":{"type":"invalid_request_error","message":"tools.18.custom.name: String should match pattern '^[a-zA-Z0-9_-]{1,128}$'"},"request_id":"req_011CdvqDUDfL7Xm5G
Similar error I am getting for the OpenAI models.
In the version 0.64.2 the jcode worked properly.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the failure with an MCP server name containing spaces and trace how server names become tool names for Claude and OpenAI requests. Confirm the expected naming behavior from version 0.64.2, then verify that upgraded versions accept these servers without the reported invalid-name error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- api, cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100