Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
XAI_API_KEYNoxAI API key for authentication
XAI_BASE_URLNoBase URL for xAI APIhttps://api.x.ai/v1
GROK_CODEX_MODELNoDefault model to use
GROK_CODEX_API_MODENoAPI mode: 'chat' or 'responses'
GROK_CODEX_AUTH_MODENoForce authentication mode (e.g., 'api_key')
GROK_CODEX_CONFIG_DIRNoConfiguration directory
GROK_CODEX_USER_CONSENTNoSet to '1' to grant user consent at process level

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
grok_codex_consent_statusA

Read explicit-consent state. Cannot grant consent.

grok_codex_provider_statusB

Check credentials and readiness without exposing secrets.

grok_codex_chatC

Chat with Grok. Prefers SuperGrok OAuth; falls back to XAI_API_KEY.

grok_codex_list_modelsA

List curated (and optionally live) models.

grok_codex_login_statusA

SuperGrok / xAI OAuth login status (no secrets).

grok_codex_login_startC

Start xAI device-code OAuth (SuperGrok / Premium+). Returns verification URL.

grok_codex_login_completeA

Poll until device authorization completes; saves tokens.

grok_codex_logoutA

Delete local SuperGrok OAuth tokens (does not revoke on xAI).

grok_codex_doctorB

Quick local diagnosis: consent, credentials, default model.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Meapri/grok-codex'

If you have feedback or need assistance with the MCP directory API, please join our Discord server