Skip to content

Commit f1d8bbf

Browse files
committed
update gemini cli docs
1 parent eff8c07 commit f1d8bbf

File tree

1 file changed

+8
-16
lines changed

1 file changed

+8
-16
lines changed

docs/installation-guides/install-gemini-cli.md

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ For security, avoid hardcoding your token. Create or update `~/.gemini/.env` (wh
1414

1515
```bash
1616
# ~/.gemini/.env
17-
GITHUB_PAT=your_token_here
17+
GITHUB_MCP_PAT=your_token_here
1818
```
1919

2020
</details>
@@ -32,21 +32,13 @@ After securely storing your PAT, you can add the GitHub MCP server configuration
3232
3333
### Method 1: Remote Server (Recommended)
3434

35-
The simplest way is to use GitHub's hosted MCP server:
35+
The simplest way is to use GitHub's hosted MCP server via our gemini extension.
36+
37+
`gemini extensions install https://github.com/github/github-mcp-server`
38+
39+
> [!NOTE]
40+
> You will still need to have a personal access token with the appropriate scopes called `GITHUB_MCP_PAT` in your environment.
3641
37-
```json
38-
// ~/.gemini/settings.json
39-
{
40-
"mcpServers": {
41-
"github": {
42-
"httpUrl": "https://api.githubcopilot.com/mcp/",
43-
"headers": {
44-
"Authorization": "Bearer $GITHUB_PAT"
45-
}
46-
}
47-
}
48-
}
49-
```
5042

5143
### Method 2: Local Docker
5244

@@ -88,7 +80,7 @@ Then, replacing `/path/to/binary` with the actual path to your binary, configure
8880
"command": "/path/to/binary",
8981
"args": ["stdio"],
9082
"env": {
91-
"GITHUB_PERSONAL_ACCESS_TOKEN": "$GITHUB_PAT"
83+
"GITHUB_PERSONAL_ACCESS_TOKEN": "$GITHUB_MCP_PAT"
9284
}
9385
}
9486
}

0 commit comments

Comments
 (0)