Add mcp server
Add an MCP server to the current project by creating or updating a project-level .mcp.json, .env, and .gitignoreFrom its SKILL.md
npx -y skills add Luney-Industries/farty-bobo --skill add-mcp-serverAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 4 stars4 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
2.5 KB, as published. Nobody here has run it
Add MCP Server to Current Project
Use this skill when the user wants to add an MCP server that should only be available in a specific repo or project — not globally.
-
Before touching any files, collect all required information upfront:
- Which MCP server(s) to add (ask if not specified).
- Server type: command-based (
command+args) or HTTP/SSE (url). - All required env vars (API tokens, secrets, etc.) and their values — ask the user for any that aren't already defined (see step 3).
-
Locate the project root using
git rev-parse --show-toplevel. Use that directory for all file operations. Check whether a.mcp.jsonalready exists there — if so, read it to merge additions without clobbering existing servers. -
Check whether a
.envfile exists at the project root. If it does, read it to identify which required env vars are already defined. Only ask the user for values that are genuinely missing. Do not read.envif it's blocked by permissions — just ask the user instead. -
For any missing env var values collected in step 1: add them to
.env(creating it if needed). -
Write or update
.mcp.jsonusing${VAR_NAME}syntax to reference env vars — Claude Code expands these at runtime. Never hardcode secret values.Command-based server:
{ "mcpServers": { "<server-name>": { "command": "<executable>", "args": ["<arg1>", "<arg2>"], "env": { "API_TOKEN": "${API_TOKEN}" } } } }HTTP/SSE server:
{ "mcpServers": { "<server-name>": { "url": "https://example.com/mcp", "headers": { "Authorization": "Bearer ${API_TOKEN}" } } } } -
.mcp.jsonis safe to commit because it only contains${VAR_NAME}references, never literal secrets. Ensure.envis in.gitignore— check and add it if missing, then let the user know. -
Tell the user to restart their Claude Code session for the new server to take effect. A full restart is required — the
/mcpcommand only lists servers, it does not reload them. -
After restarting, the user should run
/mcpto confirm the server appears in the list. If it doesn't show up, check for typos in the server name, verify the command is installed, and confirm all env vars are set correctly in.env.