Skip to content

Commit a610990

Browse files
committed
docs(codex): include PAT binding in install guide
1 parent 926d049 commit a610990

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+
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.
28+
2729
<details>
2830
<summary><b>Storing Your PAT Securely</b></summary>
2931
<br>

0 commit comments

Comments
 (0)