claude-code-settings: serverName pattern rejects the documented plugin: and claude.ai connector names

Open Beginner friendly
#6,430 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@PandaHUN777 is already working on this.

Since Sep 30, 2026.

  • #6433 by @PandaHUN777 — open

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
90/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
json
Domain
tooling

Research direction

Open src/schemas/json/claude-code-settings.json and inspect the serverName definitions under allowedMcpServers and deniedMcpServers. Validate the provided reproduction with ajv before and after the schema change; done means plugin names with colons and claude.ai connector names with spaces and dots are accepted while empty names remain invalid.

Written by the indexing model from the issue text.

Description

The claude-code-settings.json schema constrains serverName in allowedMcpServers and deniedMcpServers to ^[a-zA-Z0-9_-]+$. Claude Code's own MCP documentation names two valid server names that pattern rejects, so a correct settings file fails validation.

Names the pattern rejects

From https://code.claude.com/docs/en/mcp:

  • A plugin-provided server registers under the scoped name plugin:<plugin-name>:<server-name>, for example plugin:my-plugin:database-tools. The docs say to "use that name where a configured server name is expected". Colons are outside the character class.
  • The deniedMcpServers section documents blocking a claude.ai connector by name with "claude.ai Slack". Both the space and the dot are outside the character class.

Reproduction

{
  "deniedMcpServers": [{ "serverName": "plugin:slack:slack" }]
}
ajv validate -s claude-code-settings.json -d settings.json --all-errors --strict=false
must match pattern "^[a-zA-Z0-9_-]+$"
must have required property 'serverCommand'
must NOT have additional properties
must have required property 'serverUrl'
must NOT have additional properties
must match a schema in anyOf

Claude Code itself accepts the file and applies the deny.

Suggested fix

Relax the pattern on serverName in both allowedMcpServers and deniedMcpServers, either by dropping the keyword or by widening it to admit :, . and spaces (minLength: 1 would still catch the empty string).

Source: https://github.com/SchemaStore/schemastore/blob/master/src/schemas/json/claude-code-settings.json

Dominant language
JavaScript
Stars
3.9k
Forks
2.4k
Avg merge
12h 34m
Merged PRs (30d)
134

Getting set up

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.

More from SchemaStore/schemastore

All issues in SchemaStore/schemastore

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.