- Gcore API token with permissions for the operations to perform
- uv package manager installed
Step 1. Install Codex
- Windows
- macOS/Linux
Step 2. Sign in
Sign in through the browser.Step 3. Add Gcore MCP Server
The Codex configuration stores the variable name, not the token. SetGCORE_API_KEY in the shell that starts Codex. Enter the token at the prompt so the shell history does not store it. macOS uses Zsh, and Linux uses Bash. On both, the prompt hides the token. When a secret manager already exports GCORE_API_KEY, skip the prompt.
- Windows
- macOS
- Linux
- Windows
- macOS/Linux
GCORE_TOOLS unset so the server stays in dynamic mode. Codex then receives six tools that reach every operation. Setting GCORE_TOOLS without GCORE_MCP_MODE selects direct mode. A value that matches nothing exits with status 2. Pattern rules are in Tool filtering.
Step 4. Verify the configuration
List the servers saved in the Codex configuration. This command does not start Gcore MCP Server or run an operation.gcore appears as enabled. The Auth column says Unsupported because this server does not have its own sign-in. It reads GCORE_API_KEY from the environment. The command masks the key.
When
gcore is missing, confirm that uv --version runs and that GCORE_API_KEY is set in the same shell. A Codex process started earlier does not see a variable exported later.Step 5. Test with a query
Start Codex from that shell and ask:Requests that return “401 Unauthorized” indicate an invalid or expired token. Required roles are in API token permissions.