create-mcp
Skill4 starsChanged 7 months agoMITView on GitHub
Add a new MCP server to all AI tool configs. Use when user says "add MCP server", "new MCP server", "create MCP", "add tool to MCP", or wants to register a new MCP server across Claude Code, Codex, Cursor, and OpenCode.
- Reads credentials
1 other project uses a version of this.
Adopted by
Most recently taken up by
- davekilleen/Dextheir own version, first seen Aug 31, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- davekilleen/Dex★ 492same name
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 repository61 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/ai-workspace-projections.mdcCursor rule
- .cursor/rules/mcp-tool-configs.mdcCursor rule
- .cursor/rules/node-typescript.mdcCursor rule
- .cursor/rules/runstore-listruns-cache.mdcCursor rule
- .cursor/rules/worker-posture.mdcCursor rule
- .cursor/rules/worker-safety.mdcCursor rule
- await-pr-checksSkill
- commitSkill
- create-agentSkill
- create-issueSkill
- create-planSkill
- create-prSkill
- create-ruleSkill
- create-skillSkill
- create-test-planSkill
- implement-planSkill
- load-contextSkill
- mergeprepSkill
- orchestrate-create-planSkill
- orchestrate-create-test-planSkill
- orchestrate-implement-planSkill
- orchestrate-resolve-pr-commentsSkill
- orchestrate-reviewSkill
- publish-releaseSkill
- resolve-conflictsSkill
- resolve-issue-commentsSkill
- resolve-pr-commentsSkill
- resolve-review-findingsSkill
- review-prSkill
- reviewSkill
- run-test-planSkill
- setup-worktreeSkill
- update-contextSkill
- await-pr-checksSkill
- commitSkill
- create-agentSkill
- create-issueSkill
- create-mcpSkill
- create-planSkill
- create-prSkill
- create-ruleSkill
- create-skillSkill
- create-test-planSkill
- implement-planSkill
- load-contextSkill
- orchestrate-create-planSkill
- orchestrate-create-test-planSkill
- orchestrate-implement-planSkill
- orchestrate-resolve-pr-commentsSkill
- orchestrate-reviewSkill
- publish-releaseSkill
- resolve-conflictsSkill
- resolve-issue-commentsSkill
- resolve-pr-commentsSkill
- review-prSkill
- reviewSkill
- run-test-planSkill
- setup-worktreeSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. About 0 are common, 5 are distinctive, and 11 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
11
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Add a new MCP server to all AI tool config files, keeping the cross-tool inventory in sync.
- Distinctive: line 10
If the project documents its own MCP architecture and credential conventions, read that documentation first.
- Very specific: line 31
Add the server entry under mcpServers.
- Very specific: line 34
Use ${VAR:-default} for env var substitution with defaults
- Very specific: line 35
Use ${VAR:-} (empty default) for credential-driven activation
- Very specific: line 51
If the child command would be raw npx, invoke node scripts/run-npx-mcp.mjs ...
- Very specific: line 52
Add [mcp_servers.<name>.tools.<tool>] sections with approval_mode = "approve" if tools need gating
- Very specific: line 54
Only keep static non-secret values in repo env tables.
- Very specific: line 63
If the child command would be raw npx, invoke node scripts/run-npx-mcp.mjs ...
- Very specific: line 64
Only keep static non-secret values in the Cursor env block
- Very specific: line 65
Do not reintroduce repo-local .cursor/mcp.env
- Very specific: line 78
Only keep static non-secret values in the OpenCode environment block
- Distinctive: line 84
If the project maintains an MCP inventory doc, update it:
- Distinctive: line 92
If the server requires credentials:
- Distinctive: line 94
Document required env vars per tool config in whatever the project's MCP docs are
- Very specific: line 114
Docker Desktop networking: use host.docker.internal (not localhost) for host ports accessed from Docker containers on macOS/Windows
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Add MCP Server
Add a new MCP server to all AI tool config files, keeping the cross-tool inventory in sync.
If the project documents its own MCP architecture and credential conventions, read that documentation first.
Instructions
Step 1: Gather Server Details
Determine the following from the user's request or by asking (one round max):
- Name -- kebab-case server identifier (e.g.,
my-tool-local,my-tool-stg) - Tier -- 1 (third-party image), 2 (custom CLI wrapper, if the project ships one), or custom (Node.js/uv script)
- Environment -- Local or Staging (staging names should include a tenant or environment identifier)
- Transport -- stdio (Docker/Node/uv command) or HTTP (url + headers)
- Access mode -- read-only or read-write
- Docker image or command -- what runs the server
- Environment variables -- which env vars are needed, which are secrets
- Guardrails (Tier 2 only) -- allowed patterns, blocked patterns, strip args, prepend args
Step 2: Add to .mcp.json (Claude Code -- the reference config)
This is the authoritative definition. All other configs are ports of this.
Add the server entry under mcpServers. Include a _comment field describing tier, environment, access mode, and prerequisites.
Key conventions:
- Use
${VAR:-default}for env var substitution with defaults - Use
${VAR:-}(empty default) for credential-driven activation - Docker servers use
"type": "stdio","command": "docker","args": ["run", "-i", "--rm", ...] - Pass env vars to Docker with
-e VAR_NAMEin args + matchingenvblock - Shared repo configs should use
node scripts/run-npx-mcp.mjs ...instead of rawnpx ...for stdio servers launched via npm shims - HTTP servers use
"type": "stdio"withnode scripts/run-npx-mcp.mjs -y mcp-remote ...proxy (not direct HTTP)
See references/config-formats.md for the exact template.
Step 3: Add to .codex/config.toml (Codex)
Translate the Claude config to TOML format:
commandandargsare TOML key/value pairsenvbecomes[mcp_servers.<name>.env]table- JSON arrays in env values need careful TOML string escaping
- HTTP servers use
url+http_headers(nonpx mcp-remotewrapper) - Secret-bearing stdio servers should use
scripts/mcp-secret-bridge.mjsso repo config can map canonical user-level secret names into the child env names expected by the server - If the child command would be raw
npx, invokenode scripts/run-npx-mcp.mjs ...instead so native Windows works from the shared config - Add
[mcp_servers.<name>.tools.<tool>]sections withapproval_mode = "approve"if tools need gating
Only keep static non-secret values in repo env tables. The bridge handles secret remapping and any user-level secrets file the project uses as fallback.
See references/config-formats.md for the exact template.
Step 4: Add to .cursor/mcp.json (Cursor)
Translate the Claude config to Cursor format:
- Same JSON structure as Claude but no
typefield, no_comment - Secret-bearing stdio servers should use
scripts/mcp-secret-bridge.mjs - If the child command would be raw
npx, invokenode scripts/run-npx-mcp.mjs ...instead - Only keep static non-secret values in the Cursor
envblock - Do not reintroduce repo-local
.cursor/mcp.env
See references/config-formats.md for the exact template.
Step 5: Add to opencode.json (OpenCode)
Translate the Claude config to OpenCode format:
commandis a single array:["docker", "run", "-i", "--rm", ...](command + args combined)environmentreplacesenvtype: "local"for stdio,type: "remote"for HTTP- HTTP servers use
url+headersdirectly (no proxy) - Secret-bearing stdio servers should use
scripts/mcp-secret-bridge.mjs - If the child command would be raw
npx, invokenode scripts/run-npx-mcp.mjs ...instead - Only keep static non-secret values in the OpenCode
environmentblock
See references/config-formats.md for the exact template.
Step 6: Update Documentation
If the project maintains an MCP inventory doc, update it:
- Server Inventory table -- add a row with server name, tier, environment, access mode, prerequisites, and description
- Cross-Tool Server Mapping table -- add a row showing which tools have the server (use checkmark or
--) - Environment Variables Reference table -- add rows for any new env vars with description and which server uses them
Step 7: Update Credential Examples
If the server requires credentials:
- Document required env vars per tool config in whatever the project's MCP docs are
- Canonical bootstrap template -- if the project uses a shared secret-bootstrap script, add the canonical variable there
- OpenCode / Cursor / Codex bridge -- ensure the canonical variable is covered by the bridge profile and any config examples when relevant
Step 8: Verify
- Confirm server name follows the project's naming conventions (e.g., includes a tenant/environment identifier for staging)
- Confirm all 4 config files are syntactically valid (no trailing commas in JSON, valid TOML)
- Confirm the server entry is consistent across all configs (same Docker args, same env vars)
- For Tier 2 servers, confirm guardrail mode is correct (open, allowlist-only, or blocklist-only -- never both)
Critical Rules
.mcp.jsonis the reference config -- define the server there first, then port to other formats- Never use both allowed and blocked patterns on the same Tier 2 server -- pick one mode
- Staging servers include a tenant/environment ID in the name (e.g.,
stg-tenant-region, not barestaging) - Canonical secret names live outside the repo -- preserve user-level canonical names rather than rewriting them per server
- Cursor secret-bearing stdio servers should use the bridge -- do not add
.cursor/mcp.envback or rely on launch-env-only secret wiring - OpenCode secret-bearing stdio servers should use the bridge -- do not add
.opencode/secrets/*requirements back or rely on launch-env-only secret wiring - Codex secret-bearing stdio servers should use the bridge -- do not reintroduce repo-specific secret tables in
~/.codex/config.toml - Docker Desktop networking: use
host.docker.internal(notlocalhost) for host ports accessed from Docker containers on macOS/Windows
Checklist
- Server added to
.mcp.jsonwith_comment, correct transport, env vars - Server added to
.codex/config.tomlwith TOML-translated config - Server added to
.cursor/mcp.json(or documented why skipped) - Server added to
opencode.jsonwith OpenCode-format translation - Project's secret-bootstrap script updated (if a new canonical secret is needed)
- Project's MCP inventory doc updated (if maintained)
- Cross-Tool Server Mapping updated
- Environment Variables Reference updated (if new vars)
- Credential examples updated in all tool sections
Reference
references/config-formats.md-- per-tool config templates.mcp.json-- Claude Code reference config (authoritative).codex/config.toml-- Codex config.cursor/mcp.json-- Cursor configopencode.json-- OpenCode config
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.

