Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 9 additions & 17 deletions docs/installation-guides/install-gemini-cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ For security, avoid hardcoding your token. Create or update `~/.gemini/.env` (wh

```bash
# ~/.gemini/.env
GITHUB_PAT=your_token_here
GITHUB_MCP_PAT=your_token_here
```

</details>
Expand All @@ -32,21 +32,13 @@ After securely storing your PAT, you can add the GitHub MCP server configuration

### Method 1: Remote Server (Recommended)

The simplest way is to use GitHub's hosted MCP server:
The simplest way is to use GitHub's hosted MCP server via our gemini extension.

`gemini extensions install https://github.com/github/github-mcp-server`

> [!NOTE]
> You will still need to have a personal access token with the appropriate scopes called `GITHUB_MCP_PAT` in your environment.

```json
// ~/.gemini/settings.json
{
"mcpServers": {
"github": {
"httpUrl": "https://api.githubcopilot.com/mcp/",
"headers": {
"Authorization": "Bearer $GITHUB_PAT"
}
}
}
}
```

### Method 2: Local Docker

Expand All @@ -67,7 +59,7 @@ With docker running, you can run the GitHub MCP server in a container:
"ghcr.io/github/github-mcp-server"
],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "$GITHUB_PAT"
"GITHUB_PERSONAL_ACCESS_TOKEN": "$GITHUB_MCP_PAT"
}
}
}
Expand All @@ -88,7 +80,7 @@ Then, replacing `/path/to/binary` with the actual path to your binary, configure
"command": "/path/to/binary",
"args": ["stdio"],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "$GITHUB_PAT"
"GITHUB_PERSONAL_ACCESS_TOKEN": "$GITHUB_MCP_PAT"
}
}
}
Expand Down
12 changes: 12 additions & 0 deletions gemini-extension.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "github",
"version": "1.0.0",
"mcpServers": {
"github": {
"httpUrl": "https://api.githubcopilot.com/mcp",
"headers": {
"Authorization": "Bearer $GITHUB_MCP_PAT"
}
}
}
}
Loading