Skip to content

docs(mcp): document Claude Code install scopes (local/project/user)#247

Merged
memtomem merged 1 commit intomainfrom
docs/mcp-scopes
Apr 18, 2026
Merged

docs(mcp): document Claude Code install scopes (local/project/user)#247
memtomem merged 1 commit intomainfrom
docs/mcp-scopes

Conversation

@memtomem
Copy link
Copy Markdown
Owner

Summary

  • Adds a scope-comparison table (local / project / user) to the Claude Code MCP setup sections in docs/guides/mcp-clients.md and docs/guides/integrations/claude-code.md, covering storage location, sharing scope, and when to use each.
  • Documents precedence (local > project > user > plugins > Claude.ai connectors) and the workspace-trust prompt for project servers — both missing from the existing docs.
  • Adds a -s local example so readers know the default scope exists and when to prefer it over project or user.

Why

The existing sections only showed -s user commands plus a project-scope .mcp.json block, with no mention of -s local — which is actually the default when -s is omitted. A user with a per-project setup containing private paths/credentials had no documented path; they ended up either committing personal config to a shared .mcp.json or adding it to user scope and affecting every project.

Verification

Test plan

  • Docs-only change — no code paths touched
  • ruff check packages/memtomem/src still passes (no diff in that tree)
  • Render both pages on GitHub after merge and confirm the tables format correctly

The Claude Code sections in `mcp-clients.md` and
`integrations/claude-code.md` only showed `-s user` examples plus a
project-scope `.mcp.json` block, with no mention of `-s local` — the
actual default when `-s` is omitted. Users who wanted a per-project
install with private paths/credentials had no documented path; they
either committed personal config to `.mcp.json` or dropped everything
into user scope.

Add a scope-comparison table (storage location, sharing, when to use)
plus the precedence order (`local > project > user > plugins > Claude.ai
connectors`) so readers can pick the right scope for their situation.
Also call out that `project` servers from `.mcp.json` require
workspace-trust approval on first use — a relevant safety detail when
telling someone to commit a server config to a shared repo.

Scopes and storage paths verified against `claude mcp add --help` and
the live `~/.claude.json` structure (top-level `mcpServers` for user
scope, `projects."<cwd>".mcpServers` for local scope), and cross-checked
against https://code.claude.com/docs/en/mcp-configuration.
@memtomem memtomem merged commit d576134 into main Apr 18, 2026
7 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 18, 2026
@memtomem memtomem deleted the docs/mcp-scopes branch April 20, 2026 14:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants