원클릭으로
mcp-add
Install an MCP server template from dotforge into a project or global Claude Code config with a single command.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Install an MCP server template from dotforge into a project or global Claude Code config with a single command.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Audits the Claude Code configuration of a project against the dotforge template. Generates a report with score and gaps.
Sync all GitHub-backed git repos on this machine with origin. Pulls behind repos, pushes ahead repos, reports dirty/non-main/conflict cases for Claude to resolve.
Generate a Claude Code plugin package from the current project's dotforge configuration, ready for marketplace submission.
Fetch official Anthropic/Claude Code docs, detect changes relevant to dotforge, report deltas.
Process the practices inbox, evaluate, incorporate into dotforge, and suggest propagation to projects.
Restore a project's .claude/ directory to the dotforge template from scratch, with backup and rollback option.
| name | mcp-add |
| description | Install an MCP server template from dotforge into a project or global Claude Code config with a single command. |
Install a dotforge MCP server template into the current project's or global Claude Code configuration.
From $ARGUMENTS (format: mcp add <server> [--global]):
<server>: the word after mcp add — one of github, postgres, supabase, redis, slack--global flag: if present, target ~/.claude/settings.json; otherwise target .claude/settings.jsonVerify the server template exists: $DOTFORGE_DIR/mcp/<server>/
✗ Unknown server '{{server}}'.
Available: github, postgres, supabase, redis, slack
Usage: /forge mcp add <server> [--global]
Stop.Determine target settings path:
--global → ~/.claude/settings.json.claude/settings.json--global: warn "No settings.json found. Run /forge bootstrap first, or use --global to install globally." Stop.--global: create ~/.claude/settings.json with {"permissions": {"allow": [], "deny": []}, "mcpServers": {}}.Read all three template files:
$DOTFORGE_DIR/mcp/<server>/config.json$DOTFORGE_DIR/mcp/<server>/permissions.json$DOTFORGE_DIR/mcp/<server>/rules.mdFrom config.json:
"github", "postgres")type, command, args, env)_install string — contains required env vars and instructions_ (metadata)From permissions.json:
allow array value (or [] if absent)deny array value (or [] if absent)_Read the target settings.json.
Check if the server is already configured:
mcpServers.<server> key exists in settings, ORpermissions.allowIf already configured:
⚠ {{server}} MCP is already configured in {{target}}.
Options:
[u] Update — replace mcpServers.{{server}}, add missing permissions (does not remove existing ones)
[q] Quit — make no changes
What would you like to do? [u/Q]
u → continue with update flow (Step 3)Q or anything else → stop══════════════════════════════════════════
MCP Add: {{SERVER}} → {{target path}}
══════════════════════════════════════════
mcpServers.{{server}}:
{{pretty-print the server config block, replacing env var values like "${GITHUB_TOKEN}"
with the literal placeholder strings — do not expand env vars}}
New permissions:
allow (+{{N}} new): {{list entries not already in target settings}}
deny (+{{N}} new): {{list entries not already in target settings}}
(Existing permissions are not modified)
Rules:
$DOTFORGE_DIR/mcp/{{server}}/rules.md
→ {{rules destination}}
Required environment variables:
{{_install text from config.json}}
Proceed? [Y/n]
If all permissions are already present, show "Permissions: no changes (already configured)". If no new denies to add, omit that line.
Only proceed if user confirms (Y, y, Enter, or "yes").
Read target settings.json as JSON.
Set settings["mcpServers"]["{{server}}"] = the server config block.
If mcpServers key doesn't exist in settings, create it.
Allow list:
allow[]: add to settings.permissions.allow only if not already presentDeny list:
deny[]: add to settings.permissions.deny only if not already presentIf settings.permissions doesn't exist, create it with {"allow": [], "deny": []}.
Write the modified settings.json with 2-space indentation. Preserve all other existing keys (hooks, autoMemoryEnabled, env, etc.) exactly as they were.
Determine rules destination:
.claude/rules/mcp-{{server}}.md~/.claude/rules/mcp-{{server}}.mdCopy $DOTFORGE_DIR/mcp/{{server}}/rules.md to the destination.
If the file already exists: overwrite — it's a managed template file. Any project-specific
customizations should live in a separate rule file, not in mcp-{{server}}.md.
Create the destination directory if it doesn't exist.
✓ {{SERVER}} MCP configured
Updated files:
{{target settings.json}} — mcpServers.{{server}} added
{{rules destination}} — behavior rules copied
{{"+N permissions" if any were added, else "permissions: no changes"}}
Next step:
{{_install text from config.json}}
Restart Claude Code to activate the MCP server.
If global install: Add: "Installed globally — active in all projects."
If project-only install: Add: "Installed in the current project. For global use: /forge mcp add {{server}} --global"