/farty-bobo:add-mcp-serverfrom farty-bobo
Add an MCP server to the current project by creating or updating a project-level .mcp.json, .env, and .gitignore
Ships in farty-bobo. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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:
command + args) or HTTP/SSE (url).Locate the project root using git rev-parse --show-toplevel. Use that directory for all file operations. Check whether a .mcp.json already exists there — if so, read it to merge additions without clobbering existing servers.
Check whether a .env file 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 .env if 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.json using ${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.json is safe to commit because it only contains ${VAR_NAME} references, never literal secrets. Ensure .env is 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 /mcp command only lists servers, it does not reload them.
After restarting, the user should run /mcp to 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.
What SKILL.md sets; muted values are Claude Code's defaults
sonnetOther plugins' skills for the same job
31 skills in this plugin
/address-pr-commentsUsed to read PR comments on github and act on them. Takes an optional PR URL or number; without one, uses the open PR for the current branch./audit-securityUse when reviewing code for security vulnerabilities, implementing authentication/authorization, handling user input, or discussing web application security. Covers OWASP Top 10:2025, ASVS 5.0, and Agentic AI security (2026)./buildUsed to build and execute an approved implementation plan by spinning up agents/code-reviewCode review a pull request or a set of related PRs created by someone else. Reads diffs, comments inline, and posts a consolidated review summary.npx claudepluginhub luney-industries/farty-bobo --plugin farty-bobo