Skip to content

Commit 75c42b7

Browse files
committed
Readd remote manual steps
1 parent a10eb79 commit 75c42b7

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

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

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,25 @@ The simplest way is to use GitHub's hosted MCP server via our gemini extension.
3939
> [!NOTE]
4040
> You will still need to have a personal access token with the appropriate scopes called `GITHUB_MCP_PAT` in your environment.
4141
42+
### Method 2: Manual Remote Server
4243

43-
### Method 2: Local Docker
44+
You can also connect to the hosted MCP server directly. After securely storing your PAT, configure Gemini CLI with:
45+
46+
```json
47+
// ~/.gemini/settings.json
48+
{
49+
"mcpServers": {
50+
"github": {
51+
"httpUrl": "https://api.githubcopilot.com/mcp/",
52+
"headers": {
53+
"Authorization": "Bearer $GITHUB_MCP_PAT"
54+
}
55+
}
56+
}
57+
}
58+
```
59+
60+
### Method 3: Local Docker
4461

4562
With docker running, you can run the GitHub MCP server in a container:
4663

@@ -66,7 +83,7 @@ With docker running, you can run the GitHub MCP server in a container:
6683
}
6784
```
6885

69-
### Method 3: Binary
86+
### Method 4: Binary
7087

7188
You can download the latest binary release from the [GitHub releases page](https://github.com/github/github-mcp-server/releases) or build it from source by running `go build -o github-mcp-server ./cmd/github-mcp-server`.
7289

0 commit comments

Comments
 (0)