← ClaudeAtlas

mcp-addlisted

Install an MCP server template from dotforge into a project or global Claude Code config with a single command.
luiseiman/dotforge · ★ 7 · AI & Automation · score 73
Install: claude install-skill luiseiman/dotforge
# MCP Add Install a dotforge MCP server template into the current project's or global Claude Code configuration. ## Input parsing From `$ARGUMENTS` (format: `mcp add <server> [--global]`): - Extract `<server>`: the word after `mcp add` — one of `github`, `postgres`, `supabase`, `redis`, `slack` - Detect `--global` flag: if present, target `~/.claude/settings.json`; otherwise target `.claude/settings.json` ## Step 0: Validate 1. Verify the server template exists: `$DOTFORGE_DIR/mcp/<server>/` - If directory not found: ``` ✗ Unknown server '{{server}}'. Available: github, postgres, supabase, redis, slack Usage: /forge mcp add <server> [--global] ``` Stop. 2. Determine target settings path: - `--global` → `~/.claude/settings.json` - default → `.claude/settings.json` - If target doesn't exist and not `--global`: warn "No settings.json found. Run `/forge bootstrap` first, or use `--global` to install globally." Stop. - If target doesn't exist and `--global`: create `~/.claude/settings.json` with `{"permissions": {"allow": [], "deny": []}, "mcpServers": {}}`. ## Step 1: Load template files Read all three template files: - `$DOTFORGE_DIR/mcp/<server>/config.json` - `$DOTFORGE_DIR/mcp/<server>/permissions.json` - `$DOTFORGE_DIR/mcp/<server>/rules.md` From `config.json`: - **Server key**: the non-metadata top-level key (e.g., `"github"`, `"postgres"`) - **Server config block**: the value of that key (the object with `type`, `comman