Skip to main content
Glama

Grok Codex

버전 0.2.0 · OpenAI Codex Desktop / GUI용 플러그인 + MCP stdio leaf.

xAI Grok를 Codex에서 직접 호출합니다. 오케스트레이션 플러그인의 leaf로 쓰기 좋게 얇게 만들었습니다.

비공식 프로젝트. Grok / xAI 상표는 xAI 소유입니다.
Hermes가 아닙니다. hermes-agent에서 xAI 엔드포인트·헤더·Responses 아이디어만 참고. docs/SOURCE_MAP.md

빠른 시작

codex plugin marketplace add "/path/to/Grok Codex"
codex plugin add grok-codex@grok-codex

python3 scripts/grok_codex_consent.py grant --i-understand-and-consent
export XAI_API_KEY=xai-...

python3 scripts/grok_codex_doctor.py

Related MCP server: grok-build-mcp

구독 로그인 (SuperGrok / X Premium+)

기본 인증은 xAI device-code OAuth (Hermes xai-oauth와 동일 패턴).

python3 scripts/grok_codex_consent.py grant --i-understand-and-consent
python3 scripts/grok_codex_login.py interactive
# 브라우저에서 accounts.x.ai 승인
python3 scripts/grok_codex_login.py status

MCP: grok_codex_login_start → 브라우저 승인 → grok_codex_login_complete

API 키 강제: GROK_CODEX_AUTH_MODE=api_key + XAI_API_KEY

MCP 도구

Tool

역할

grok_codex_consent_status

동의 상태

grok_codex_provider_status

API 키 준비 여부

grok_codex_chat

Chat Completions (기본) 또는 Responses

grok_codex_list_models

모델 목록

grok_codex_doctor

로컬 진단

grok_codex_chat 옵션:

  • api_mode: chat (기본) | responses

  • session_id: 대화 친화 캐시용 (x-grok-conv-id)

환경 변수

변수

의미

XAI_API_KEY

xAI API 키

XAI_BASE_URL

기본 https://api.x.ai/v1

GROK_CODEX_USER_CONSENT=1

프로세스 단위 동의

GROK_CODEX_MODEL

기본 모델

GROK_CODEX_API_MODE

chat 또는 responses

GROK_CODEX_CONFIG_DIR

설정 디렉터리

개발

python3 -m venv .venv
.venv/bin/pip install -e '.[dev]'
.venv/bin/pytest

라이선스

MIT — LICENSE. NOTICE.md.

Available Tools

9 tools
grok_codex_chatC

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

ParametersJSON Schema
NameRequiredDescriptionDefault
modelNo
promptNo
systemNo
messagesNo
max_tokensNo
temperatureNo
timeout_secNo

TDQS

C2.6/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description must disclose behavioral traits. It only mentions auth preference (prefers SuperGrok OAuth, falls back to XAI_API_KEY). No information about rate limits, streaming, error handling, or output format.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise: two short sentences with no wasted words. However, it could be slightly more structured to improve scanability.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 7 parameters, no schema descriptions, no output schema, and the presence of auth-related siblings, the description is insufficient. It fails to explain key aspects like the model parameter or message format.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description should add meaning to parameters. It does not describe any parameter (model, prompt, system, messages, max_tokens, temperature, timeout_sec), leaving the agent without guidance.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states 'Chat with Grok' which clearly indicates the verb and resource. It distinguishes from sibling tools that are auth/consent/status related, but does not explicitly differentiate from potential other chat tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to use this tool versus alternatives. The only context is the auth preference, but no explicit when/when-not or comparison to siblings.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

grok_codex_doctorB

Quick local diagnosis: consent, credentials, default model.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

B3.2/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description must fully disclose behavior. It only says 'diagnosis' but does not clarify if it modifies state, requires authentication, or what side effects occur. It assumes a read-only check but leaves behavior ambiguous.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Description is very concise (5 words) but lacks structure. It front-loads 'Quick local diagnosis' but omits details like output format or usage hints. Could be clearer and more organized within the same length.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description does not explain what the tool returns (e.g., status strings, summary object). With no output schema, the agent lacks information to interpret results. Given sibling tools that return specific statuses, completeness is low.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

No parameters are defined, so schema coverage is 100%. Description need not add parameter info. The baseline for zero parameters is 4, and the description does not detract from this.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description clearly states the tool performs a quick local diagnosis covering consent, credentials, and default model. This distinguishes it from sibling tools like grok_codex_consent_status (single check) and grok_codex_list_models (listing models), as it aggregates multiple checks in one call.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No explicit guidance on when to use this tool versus alternatives. It does not mention when to prefer this over individual status checks or how it differs from them in terms of context or use case.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

grok_codex_list_modelsA

List curated (and optionally live) models.

ParametersJSON Schema
NameRequiredDescriptionDefault
probeNo

TDQS

A3.5/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description must fully convey behavioral traits. It only states the basic function without disclosing side effects, authentication needs, rate limits, or whether the operation is read-only. For a listing tool, this is minimal disclosure.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single concise sentence that front-loads the tool's purpose. No extraneous information is included, and every word earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity (one parameter, no output schema), the description covers the primary purpose and hints at parameter usage. However, it lacks details about the output format (e.g., what fields are returned for each model) and does not confirm whether the operation is read-only. These gaps reduce completeness.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema has 0% description coverage, so the description must compensate. It hints that the 'probe' parameter may relate to 'live models', but does not explicitly map the parameter name to its effect. This adds some meaning but leaves ambiguity about the parameter's exact semantics.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's function: 'List curated (and optionally live) models.' It uses a specific verb ('list') and resource ('models'), and distinguishes between two types of models. Sibling tools are unrelated to listing models, so there is no ambiguity.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides a hint about when to use the probe parameter ('optionally live models'), but does not offer explicit guidance on when to use this tool versus alternatives, nor does it specify when not to use it. Since siblings are all distinct, usage context is implied but not fully articulated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

grok_codex_login_completeA

Poll until device authorization completes; saves tokens.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A3.8/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Discloses that it polls and saves tokens (mutation), but no annotations exist; could detail side effects, idempotency, or dependency on prior steps.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Extremely concise single sentence with no wasted words; front-loaded with action and result.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 0-param, no-output-schema tool, description suffices; could mention expected caller flow (e.g., after login_start) but is generally adequate.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

No parameters in schema; description adds meaning by explaining the tool's purpose, meeting the baseline for zero-param tools.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States 'Poll until device authorization completes; saves tokens' which clearly identifies the tool's action (polling) and outcome (saving tokens), distinguishing it from siblings like login_start and login_status.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to use this tool versus alternatives such as login_status or login_start; lacks usage context or prerequisites.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

grok_codex_login_startC

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

ParametersJSON Schema
NameRequiredDescriptionDefault
open_browserNo

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided, so description must fully disclose behavior. Only states it starts OAuth and returns a URL, missing details like side effects (e.g., no session created), user interaction required (visiting URL), or rate limits. Minimal transparency.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One concise sentence, but omits essential details about parameters and OAuth process. Conciseness sacrifices completeness.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given simple schema and no output schema/annotations, description should clarify the OAuth flow steps and parameter. Fails to provide complete context for correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Single parameter 'open_browser' with no description coverage in schema. Description does not explain its meaning or effect, leaving the agent uninformed.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description clearly states the action (start OAuth), resource (xAI device-code), context (SuperGrok/Premium+), and output (verification URL). Distinguishes from siblings like login_complete and login_status.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Implicitly indicates it's the first login step but lacks explicit when to use vs alternatives or prerequisites. Not misleading but could be clearer about the OAuth flow sequence.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

grok_codex_login_statusA

SuperGrok / xAI OAuth login status (no secrets).

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A3.7/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided. Description only adds 'no secrets', but does not disclose what the status response contains, behavior when not logged in, or any prerequisites. Minimal disclosure.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Single sentence, front-loaded, no wasted words. Efficiently conveys purpose and safety note.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Tool is simple with no params or output schema. Description is adequate but could be improved by indicating the return format (e.g., boolean) or example response.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

No parameters exist (schema coverage 100%), so description does not need to add param info. Baseline 4 applies; description is adequate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description clearly states it returns login status for SuperGrok/xAI OAuth, with a note about no secrets. Differentiates from sibling tools like login_start, login_complete, logout by being a status check.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No explicit when-to-use or when-not-to-use guidance. Usage is implied by the name and sibling context but lacks explicit direction.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

grok_codex_logoutA

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

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden. It discloses the destructive action (deleting tokens) and the important limitation (does not revoke on xAI). This is transparent for a simple tool, though it could mention potential state changes or prerequisites.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single sentence that conveys essential information without any wasted words. It is front-loaded with the action and resource.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no parameters, no output schema, and no annotations, the description is complete for a logout tool. It clearly states what the tool does and its key limitation, leaving no critical gaps for an agent to resolve.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has zero parameters and is fully covered. According to guidelines, baseline is 4 when no params. The description adds relevant context about the tool's effect beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ('Delete') and resource ('local SuperGrok OAuth tokens'), and clarifies the scope (local only, not revoking on xAI). This clearly distinguishes it from the sibling tools like grok_codex_login_start or grok_codex_login_status.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description does not explicitly state when to use this tool or compare it to alternatives. While the purpose is clear, there is no guidance on appropriate contexts or exclusions beyond the implied 'when logging out.'

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

grok_codex_provider_statusB

Check credentials and readiness without exposing secrets.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

B3.2/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description bears full responsibility. It only discloses that secrets are not exposed, but lacks details on side effects, permissions, rate limits, or return behavior. A more thorough description of what 'readiness' entails would improve transparency.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely concise—a single phrase—with no wasted words. It is front-loaded and efficiently conveys the core purpose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given there are no parameters or output schema, the description is functionally complete but lacks detail about the expected response. An agent would benefit from knowing what 'credentials and readiness' status looks like (e.g., 'returns a JSON object with status fields'). A score of 3 is appropriate as a minimum viable description with clear gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

There are zero parameters, and schema coverage is trivially 100%. According to the guidelines, baseline with 0 params is 4. The description adds no parameter information, but none is needed.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb 'check' and target 'credentials and readiness', and hints at safety ('without exposing secrets'). It is sufficiently specific to distinguish from other tools like grok_codex_doctor or grok_codex_login_status, though no explicit sibling differentiation is made.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives, nor does it mention any prerequisites or conditions. This is a significant gap for an agent deciding among multiple sibling tools.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 9 tool updatesv0.2.0
    • First observedgrok_codex_chat
    • First observedgrok_codex_consent_status
    • First observedgrok_codex_doctor
    • First observedgrok_codex_list_models
    • First observedgrok_codex_login_complete
    • First observedgrok_codex_login_start
    • First observedgrok_codex_login_status
    • First observedgrok_codex_logout
    • First observedgrok_codex_provider_status

TDQS

A3.6/5.0
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

ActivitySlowing
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

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