GitHub MCP Token
mac-cli auth load-github-mcp-token loads a token field from a 1Password item into the current session environment.
Current defaults:
- item =
GitHub PAT @mcp - field =
credential - env var =
GITHUB_PAT_TOKEN
Example Usage
mac-cli auth load-github-mcp-token -Dry
mac-cli auth load-github-mcp-token
mac-cli auth load-github-mcp-token -Item 'GitHub PAT @mcp' -Field 'credential' -Env 'GITHUB_PAT_TOKEN'
Current Behavior Notes
- the command requires the
opCLI - it attempts
op account listfirst and falls back toop signinif needed - it writes the resolved token into the current shell session environment
-Drypreviews the action without changing the session
Current Use Case
This command is the normal default hook in the shipped Codex provider profile, so it is the standard way to prepare GITHUB_PAT_TOKEN before AI launch when the default config is being used.