Skip to content

fix: register MCP server with --scope user for global availability#70

Merged
matthiastjong merged 1 commit intomainfrom
fix/mcp-scope-user
May 1, 2026
Merged

fix: register MCP server with --scope user for global availability#70
matthiastjong merged 1 commit intomainfrom
fix/mcp-scope-user

Conversation

@matthiastjong
Copy link
Copy Markdown
Owner

Summary

  • Changed claude mcp add from default --scope local to --scope user so the Shellgate MCP server is registered globally in ~/.claude/settings.json instead of only in the current project's .claude.json
  • Added cleanup for all scopes (user, local, project) on re-install to remove stale entries

Test plan

  • Run install script from any project directory
  • Verify MCP server appears in ~/.claude/settings.json (not .claude.json)
  • Confirm Shellgate tools are available in a different project after restart

🤖 Generated with Claude Code

The install script used `claude mcp add` without a scope flag, which
defaults to `--scope local` (project-only). This meant Shellgate was
only available in the project where the install command was run.

Switch to `--scope user` so the MCP server is registered in
~/.claude/settings.json and available across all projects. Also clean
up all scopes on re-install to remove stale entries.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@matthiastjong matthiastjong merged commit fbcf3b2 into main May 1, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant