Skip to content
Open
Changes from all 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
4 changes: 3 additions & 1 deletion docs/installation-guides/install-codex.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ bearer_token_env_var = "GITHUB_PAT_TOKEN"
You can also add it via the Codex CLI:

```cli
codex mcp add github --url https://api.githubcopilot.com/mcp/
codex mcp add github --url https://api.githubcopilot.com/mcp/ --bearer-token-env-var GITHUB_PAT_TOKEN
```

Using `codex mcp add ... --url ...` without `--bearer-token-env-var` only stores the remote server URL. For the hosted GitHub MCP server, you also need to bind a PAT environment variable so Codex can send the `Authorization` header.

<details>
<summary><b>Storing Your PAT Securely</b></summary>
<br>
Expand Down