From 2359f88ed6990739f1b13e490c909ec3a5e2590c Mon Sep 17 00:00:00 2001 From: RossTarrant Date: Tue, 26 May 2026 09:08:55 +0100 Subject: [PATCH 1/2] docs: clarify auth in Codex CLI instructions --- docs/installation-guides/install-codex.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/installation-guides/install-codex.md b/docs/installation-guides/install-codex.md index 5f92996bc2..1ad3a2122d 100644 --- a/docs/installation-guides/install-codex.md +++ b/docs/installation-guides/install-codex.md @@ -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 ``` +The `--bearer-token-env-var` option is required for PAT-authenticated access to the hosted GitHub MCP server. +
Storing Your PAT Securely
From 7e8add013e2f7c2c8a8320390ae982c745d6657b Mon Sep 17 00:00:00 2001 From: Ross Tarrant Date: Tue, 26 May 2026 09:29:41 +0100 Subject: [PATCH 2/2] Add consistency to code block language Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- docs/installation-guides/install-codex.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/installation-guides/install-codex.md b/docs/installation-guides/install-codex.md index 1ad3a2122d..af24445882 100644 --- a/docs/installation-guides/install-codex.md +++ b/docs/installation-guides/install-codex.md @@ -20,7 +20,7 @@ bearer_token_env_var = "GITHUB_PAT_TOKEN" You can also add it via the Codex CLI: -```cli +```bash codex mcp add github --url https://api.githubcopilot.com/mcp/ --bearer-token-env-var GITHUB_PAT_TOKEN ```