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

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

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

TDQS

A3.6/5.0

Scored across 9 tools

Disambiguation5/5

Each tool has a clearly distinct purpose: chat, auth flow steps, consent check, diagnosis, model listing, and provider status. No overlap in functionality despite some status-oriented tools.

Naming Consistency4/5

All tools share the prefix 'grok_codex_' and mostly follow noun or verb_noun patterns. Minor inconsistency: 'logout' breaks the 'login_*' pattern of the auth group.

Tool Count5/5

9 tools is well-scoped for an AI chat assistant with authentication needs. Each tool earns its place, covering chat, auth lifecycle, status checks, and model listing.

Completeness5/5

The tool set covers the obvious needs: chatting, authentication (start/complete/status/logout), consent management, diagnosis, provider status, and model listing. No dead ends for core workflows.

Maintenance

ActivityStale
ResponsivenessNo issues