Skip to main content

GitHub MCP Token

PropertyValue
description1Password-backed token loading flow for the GitHub MCP environment variable.
relatedAuthHelpers, AI Readiness, 1Password CLI

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 op CLI
  • it attempts op account list first and falls back to op signin if needed
  • it writes the resolved token into the current shell session environment
  • -Dry previews 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.