mcp
Skill1 starsChanged 6 months agoMITView on GitHub
Author, audit, or repair .mcp.json files for Claude Code MCP servers. All transport types (stdio, http, sse, ws), credential handling, scope selection, and settings.json permission links.
- Reads credentials
14 other projects use a version of this.
Adopted by
Most recently taken up by
- iuliandita/skillstheir own version, first seen Sep 24, 2026
- vercel-labs/json-rendertheir own version, first seen Sep 23, 2026
- wangqiqi/cursor-aitheir own version, first seen Sep 23, 2026
- seva8756/agentur-agenttheir own version, first seen Sep 16, 2026
- overmind-core/overmindtheir own version, first seen Sep 15, 2026
- ulises-jeremias/agent-toolkittheir own version, first seen Aug 31, 2026
Used with
Projects with it also use frontend-design.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
VercelSkillfrontend-design
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.
Also in 3 projects that use this
Other versions14 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 14
- vercel-labs/json-render★ 18ksame name
- overmind-core/overmind★ 376same name
- Piebald-AI/splitrail★ 222same name
- martinholovsky/claude-skills-generator★ 47same name
- pinecone-io/gemini-cli-extension★ 23same name
- ulises-jeremias/agent-toolkit★ 18same name
- seva8756/agentur-agent★ 10same name
- iuliandita/skills★ 7same name
- silvioventre/lovable-skills★ 4same name
- wangqiqi/cursor-ai★ 3same name
4 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository26 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- audit-legalSkill
- audit-securitySkill
- echartsSkill
- explainSkill
- file-changelogSkill
- file-claudeSkill
- file-licenseSkill
- file-projectSkill
- file-readmeSkill
- frontendSkill
- hooksSkill
- lean-reviewSkill
- loopSkill
- masterpromptSkill
- mermaidSkill
- new-projectSkill
- outputstyleSkill
- proofreadSkill
- rulesSkill
- settingsSkill
- skillsSkill
- sotaSkill
- subagentsSkill
- tasksSkill
- toonSkill
The file
We split this skill into the rules it gives an agent
11 rules. 0 are common, 4 are distinctive, and 7 are very specific to this project.
0
Common
Most of the 12 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 14
Not for MCP tool permissions — those belong in settings.json.
- Very specific: line 26
Never put credentials, API keys, or tokens as literal values — use ${VAR} expansion or headersHelper.
- Very specific: line 28
Never use sse transport for new configurations — it is deprecated.
- Distinctive: line 30
Never produce partial JSON — always deliver a complete, valid file.
- Very specific: line 32
Always include $schema in produced files.
- Distinctive: line 59
When the same server name appears in multiple scopes, the highest-precedence entry wins — fields are not merged across scopes.
- Very specific: line 83
No automatic reconnect for stdio — local processes are relaunched by the host.
- Very specific: line 132
Never put literal secrets in .mcp.json.
- Distinctive: line 203
Read the target file if it exists.
- Distinctive: line 208
Write the complete updated file.
- Very specific: line 213
Read .mcp.json and, if accessible, settings.json.
“Common” is measured: kept by at least 6 in 10 of the 12 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
MCP JSON
1§ Purpose
Produce valid, complete .mcp.json files for Claude Code MCP server configuration.
Covers transport type selection, credential handling, environment variable expansion,
scope decisions, and the link between server names and settings.json permission rules.
Not for MCP tool permissions — those belong in settings.json; configure them there
when the user asks to allow/deny/ask for MCP tools.
2§ Use when
- User wants to add or configure an MCP server connection.
- User wants to audit an existing
.mcp.jsonfor credentials, stale entries, or invalid fields. - User asks about
.mcp.json, "MCP server config", "connect a tool server", or "how do I add an MCP server". - User has MCP server configuration mixed into
settings.json— extract and redirect.
3§ Hard constraints
- Never put credentials, API keys, or tokens as literal values — use
${VAR}expansion orheadersHelper; committed.mcp.jsonfiles are version-controlled. - Never use
ssetransport for new configurations — it is deprecated; usehttp. - Server name
workspaceis reserved by Claude Code; never use it. - Never produce partial JSON — always deliver a complete, valid file.
- Preserve all existing server entries not in conflict with the request.
- Always include
$schemain produced files. - Credentials that cannot be expressed as environment variables belong in
headersHelper(dynamic) or OAuth config — never inline.
4§ Decision gate
- MCP tool permissions (
allow/deny/askfor MCP tools): that is asettings.jsonpermissions concern. - Hook or lifecycle automation: that is a lifecycle hook.
- Scope unclear: default to
.mcp.jsonproject-level, label[assumed], explain trade-off.
Transport type selection — choose once per server:
| Use case | Transport |
| Local process (npm, Python, Go binary) | stdio |
| Remote API with persistent connection | http |
| Remote API, legacy SSE-only endpoint | sse (deprecated — prefer http) |
| WebSocket endpoint | ws |
Scope selection:
| Who should see this server | File |
| Whole team, version-controlled | .mcp.json (project root) |
| Personal, this project only | ~/.claude.json → projects.<hash>.mcpServers |
| Personal, all projects | ~/.claude.json → mcpServers |
Precedence (highest → lowest): local (personal project) → project → user. When the same server name appears in multiple scopes, the highest-precedence entry wins — fields are not merged across scopes.
5§ Transport type reference
5.1§ stdio (local process)
Required: command (executable), args (array of strings).
Optional: env (object), timeout (ms), alwaysLoad (bool).
{
"mcpServers": {
"filesystem": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "/workspace"],
"env": {
"NODE_ENV": "production"
}
}
}
}No automatic reconnect for stdio — local processes are relaunched by the host.
type field defaults to stdio if omitted, but always include it explicitly.
5.2§ http (remote server — preferred)
Required: type: "http", url (HTTPS).
Optional: headers, headersHelper, timeout, alwaysLoad, oauth.
{
"mcpServers": {
"api-server": {
"type": "http",
"url": "https://mcp.example.com/endpoint",
"headers": {
"Authorization": "Bearer ${API_KEY}"
},
"timeout": 30000
}
}
}Auto-reconnects on transient failures (5xx, timeout) with exponential backoff up to 5 attempts. Auth errors (401/403) and 404 are not retried — they require config changes.
5.3§ sse (deprecated)
Same fields as http. Only use when the remote endpoint supports SSE only and cannot
be upgraded. New configurations must use http.
5.4§ ws (WebSocket)
Required: type: "ws", url (WebSocket URL, wss://).
Optional: headers, headersHelper, timeout, alwaysLoad.
OAuth is not supported for WebSocket — use headers with bearer token expansion.
{
"mcpServers": {
"realtime-server": {
"type": "ws",
"url": "wss://mcp.example.com/socket",
"headers": {
"Authorization": "Bearer ${WS_TOKEN}"
}
}
}
}6§ Credential handling
Never put literal secrets in .mcp.json. Use one of these patterns:
Environment variable expansion (preferred for static tokens):
"headers": { "Authorization": "Bearer ${API_KEY}" }Set the variable in the shell profile, .env (gitignored), or CI/CD secrets manager.
${VAR:-default} syntax provides a fallback when the variable is unset.
Dynamic headers via headersHelper (for short-lived or rotated tokens):
"headersHelper": "/opt/bin/get-mcp-headers.sh"The script receives CLAUDE_CODE_MCP_SERVER_NAME and CLAUDE_CODE_MCP_SERVER_URL as
environment variables. It must print a JSON object of headers to stdout within 10 seconds.
OAuth 2.0 (for servers that support it):
"oauth": {
"clientId": "my-client-id",
"callbackPort": 9876
}Tokens are stored in the system keychain; refresh is automatic. Preferred over static tokens when the server supports the OAuth 2.0 device or PKCE flow.
Available variable expansions in command, args, env, url, headers:
${VAR}— shell environment variable at connection time${VAR:-default}— with fallback${CLAUDE_PROJECT_DIR}— project root directory (use${CLAUDE_PROJECT_DIR:-.}in config to provide a.fallback when expansion is unavailable)
7§ Optional field reference
timeout (integer, milliseconds): per-tool hard execution limit. Ignored if < 1000 ms.
For HTTP/SSE servers, the first-byte budget minimum is always 60 seconds regardless
of this value. Typical override for long-running tools: 600000 (10 min).
alwaysLoad (boolean, default false): exempt this server from tool deferral. When
true, all tools load into context at session start (requires v2.1.121+). Use only
for small, frequently-needed tool sets — large tool lists slow startup.
headersHelper (string): shell command path. Must output {"Header-Name": "value"}
JSON to stdout within 10 seconds. The script receives the server name and URL as env
vars (CLAUDE_CODE_MCP_SERVER_NAME, CLAUDE_CODE_MCP_SERVER_URL).
8§ Relationship to settings.json
.mcp.json controls how servers are configured and who can see them.
settings.json controls which tools Claude can use from those servers.
The server name key in .mcp.json maps directly to permission rules in settings.json:
| .mcp.json key | settings.json permission pattern |
"github" | MCP(github) — all tools from github server |
"filesystem" | MCP(filesystem) — all tools from filesystem server |
Granular tool-level permissions use mcp__<server-name>__<tool-name> syntax in
settings.json. Example: mcp__github__create_issue. Use mcp__github__* for all
tools from a server.
To disable a server without removing its config: add a deny rule in settings.json
for all its tools. There is no disabled field in .mcp.json.
Approval prompt: the first time Claude Code loads a .mcp.json from a project, it
prompts for approval (security check against untrusted repos). Approval is stored per
project. Reset with !claude mcp reset-project-choices if needed.
9§ Workflow
9.1§ Configure (add or change a server)
- Read the target file if it exists; note if a new file will be created.
- Apply the decision gate — confirm
.mcp.jsonis the right artifact. - Determine scope (§4). Label
[assumed]if defaulting. - Select transport type (§5). Refuse
ssefor new servers. - Handle credentials via §6 patterns — flag any literal values as blockers.
- Write the complete updated file. Preserve all existing entries not in conflict.
- State the file path, what changed, and whether companion permission rules in
settings.jsonneed to be added.
9.2§ Audit (review an existing file)
- Read
.mcp.jsonand, if accessible,settings.json. - Flag: literal credentials in
headersorenv;ssetransport (deprecated); server nameworkspace; missing$schema; servers with no matching permission rules insettings.json. - Report by severity: Blocker (credential exposure, invalid config) → Warning (deprecated transport, missing permissions) → Note (style, redundancy).
- Propose fixes; apply only after user confirmation.
10§ Output contract
Must include:
$schemaas the first key in every produced file- Complete file content — never a partial snippet requiring manual merging
- Confirmation: file path, one-line summary of changes
- A follow-up note when companion permission rules in
settings.jsonare needed
Must not include:
- Literal API keys, tokens, or credentials as values
ssetransport for new server entries- Server name
workspace - Comments inside
.jsonfiles (use.jsoncfor annotated templates only) - Partial files requiring manual merging
11§ Associated documents
- [assets/mcp.example.json] — example of a well-structured project
.mcp.jsonwith stdio, http, and credential patterns.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

