Skip to content

Commit c061804

Browse files
Use default scope in examples and clarify --scope flag is optional
Co-authored-by: SamMorrowDrums <[email protected]>
1 parent e335503 commit c061804

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docs/installation-guides/install-claude.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,20 @@ echo -e ".env\n.mcp.json" >> .gitignore
3232
3333
1. Run the following command in the terminal (not in Claude Code CLI):
3434
```bash
35-
claude mcp add-json github '{"type":"http","url":"https://api.githubcopilot.com/mcp","headers":{"Authorization":"Bearer YOUR_GITHUB_PAT"}}' --scope user
35+
claude mcp add-json github '{"type":"http","url":"https://api.githubcopilot.com/mcp","headers":{"Authorization":"Bearer YOUR_GITHUB_PAT"}}'
3636
```
3737

3838
With an environment variable:
3939
```bash
40-
claude mcp add-json github '{"type":"http","url":"https://api.githubcopilot.com/mcp","headers":{"Authorization":"Bearer '"$(grep GITHUB_PAT .env | cut -d '=' -f2)"'"}}' --scope user
40+
claude mcp add-json github '{"type":"http","url":"https://api.githubcopilot.com/mcp","headers":{"Authorization":"Bearer '"$(grep GITHUB_PAT .env | cut -d '=' -f2)"'"}}'
4141
```
4242

43-
> **About the `--scope` flag**: This specifies where the configuration is stored. Options:
43+
> **About the `--scope` flag** (optional): Use this to specify where the configuration is stored:
4444
> - `local` (default): Available only to you in the current project (was called `project` in older versions)
4545
> - `project`: Shared with everyone in the project via `.mcp.json` file
4646
> - `user`: Available to you across all projects (was called `global` in older versions)
47+
>
48+
> Example: Add `--scope user` to the end of the command to make it available across all projects.
4749
4850
2. Restart Claude Code
4951
3. Run `claude mcp list` to see if the GitHub server is configured

0 commit comments

Comments
 (0)