claude-code-settings: serverName pattern rejects the documented plugin: and claude.ai connector names
Maintainers usually reply within 1 day
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 exampleplugin: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
deniedMcpServerssection 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
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing 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.
More from SchemaStore/schemastore
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
SchemaStore/schemastore#6712 ·
Maintainers usually reply within 1 day
-
claude-code-settings: add `permissions.blockReadsOutsideWorkingDirectories`Possibly taken @Solaris-star claimed this 46 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
SchemaStore/schemastore#6429 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
SchemaStore/schemastore#6351 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
SchemaStore/schemastore#6019 · 4 comments ·
Maintainers usually reply within 1 day
-
claude-code-settings.json: Missing MultiEdit and Skill tools in permissions patternMay be free again A pull request for this issue was closed without being merged. OpenBug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
SchemaStore/schemastore#5210 ·
Maintainers usually reply within 1 day
All issues in SchemaStore/schemastore
Similar issues
-
marketing
Difficulty 2/5 Half a day Newbie friendliness 70/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Fei2411/DeepSeek-Bot#2090 ·
-
area: ui good first issue javascript priority: medium refactor
Difficulty 1/5 Under an hour Newbie friendliness 78/100
fukubie/StockLlama#49 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
sunososobro-hub/cloudball#350 · 2 comments ·
Maintainers usually reply within 1 day
-
wpvc
Difficulty 2/5 1-3 hours Newbie friendliness 60/100
10up/embed-block-figma#101 ·