From claude-rudder
Teaches Claude the correct syntax for all Claude Code 'claude mcp add' command variants, covering HTTP, SSE, and stdio transports, scope options, authentication patterns, and command generation rules for MCP server installation.
npx claudepluginhub danielrosehill/claude-code-plugins --plugin claude-rudderThis skill uses the workspace's default tool permissions.
This skill provides Claude with complete, authoritative knowledge of how to construct valid `claude mcp add` commands for Claude Code.
Mandates invoking relevant skills via tools before any response in coding sessions. Covers access, priorities, and adaptations for Claude Code, Copilot CLI, Gemini CLI.
Share bugs, ideas, or general feedback.
This skill provides Claude with complete, authoritative knowledge of how to construct valid claude mcp add commands for Claude Code.
claude mcp add --transport http <name> <url>
claude mcp add --transport sse <name> <url>
claude mcp add --transport stdio <name> [--env KEY=value ...] -- <command> [args...]
The -- separator is mandatory. --env flags and --scope must appear before --.
--scope [local|project|user] — configuration scope (default: local)--header "<key>: <value>" — HTTP/SSE only, repeatable--env <KEY>=<value> — set environment variable, repeatable; for stdio must precede --| Scope | Where stored | Who sees it |
|---|---|---|
local | User settings, per-project | Only the current user, current project |
project | .mcp.json in repo root | Everyone who clones the repo |
user | User settings, global | Only the current user, all projects |
Precedence (highest to lowest): local → project → user → enterprise
OAuth — add the server URL, then run /mcp inside Claude Code to authenticate.
API Key via env — --env API_KEY=value; use placeholder names like YOUR_API_KEY when the actual value is unknown.
Bearer token via header — --header "Authorization: Bearer <token>" for HTTP/SSE.
my-api.npx, node, or a local binary.--env flags must come before --.claude mcp add command; note that the user must authenticate afterwards with /mcp.YOUR_AIRTABLE_API_KEY) so the user knows exactly what to replace.--scope unless the user specifies a preference (default is local).npx commands require a cmd /c prefix after --.claude mcp list # list configured servers
claude mcp get <name> # show details
claude mcp remove <name> # delete a server
claude mcp add-json <name> '<json>' # add from JSON blob
claude mcp add-from-claude-desktop # import from Claude Desktop (macOS/WSL)
claude mcp reset-project-choices # reset .mcp.json approval state
HTTP:
{ "type": "http", "url": "https://...", "headers": { "Authorization": "Bearer token" } }
Stdio:
{ "type": "stdio", "command": "/path/to/bin", "args": ["--flag"], "env": { "KEY": "value" } }
${VAR} — value of environment variable VAR${VAR:-default} — VAR if set, otherwise "default"Supported in: command, args, env, url, headers
MCP_TIMEOUT=<ms> — server startup timeout (e.g. 10000 for 10 s)MAX_MCP_OUTPUT_TOKENS=<n> — max output tokens per response (default 25 000; warning at 10 000)