Skip to content

Commit 001f5e3

Browse files
RossTarrantSamMorrowDrums
authored andcommitted
docs: clarify auth in Codex CLI instructions
1 parent d661abf commit 001f5e3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

docs/installation-guides/install-codex.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ bearer_token_env_var = "GITHUB_PAT_TOKEN"
2121
You can also add it via the Codex CLI:
2222

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

27+
The `--bearer-token-env-var` option is required for PAT-authenticated access to the hosted GitHub MCP server.
28+
2729
<details>
2830
<summary><b>Storing Your PAT Securely</b></summary>
2931
<br>

0 commit comments

Comments
 (0)