1jehuang / 1jehuang/jcode

No space characters in the MCP server names

Open
#895 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug needs-info priority: high regression triage: unclear
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.