GrokMCP: Instructions file for Claude Code

CLAUDE.md

GrokMCP CLAUDE.md is an instructions file for Claude Code from AceDataCloud/GrokMCP. It costs 443 tokens per session, scanned A, original, MIT.

Project-specific instructions for developing GrokMCP, an MCP server that connects assistants to Grok Imagine video generation through the AceDataCloud API.

In plain words
What is it for?
Use them when adding or updating video-generation tools, task-status handling, API types, tests, or synchronization with the OpenAPI specification.
Why use it?
They document the project structure, API endpoints, data types, and documentation-sync rules so changes stay aligned with the API.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md.

This is AceDataCloud/GrokMCP's own configuration. It tells Claude Code how to work on GrokMCP itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything GrokMCP configures →

Reuse

Borrowing it

Nothing to install: this file belongs to AceDataCloud/GrokMCP. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/AceDataCloud/GrokMCP/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/AceDataCloud/GrokMCP

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for GrokMCP CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/acedatacloud/grokmcp/claude-md.svg)](https://agentmods.dev/instructions/acedatacloud/grokmcp/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/acedatacloud/grokmcp/claude-md"><img src="https://agentmods.dev/badge/instructions/acedatacloud/grokmcp/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 443 This file is loaded in full into every session.
When invoked 443 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00443 $0.00443
Opus 5 $0.00221 $0.00221
Sonnet 5 $0.00089 $0.00089
Haiku 4.5 $0.00044 $0.00044

Measured 7d ago against content hash e5895b545a4e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

GrokMCP CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 47 lines

What it actually says

GrokMCP

MCP (Model Context Protocol) server for Grok Imagine AI video generation via AceDataCloud API.

Project Structure

core/
  config.py     — Settings dataclass (API token, base URL)
  server.py     — FastMCP server singleton
  client.py     — httpx async HTTP client
  types.py      — Literal types (GrokVideoModel, etc.)
  exceptions.py — Error classes (GrokAuthError, GrokAPIError, GrokTimeoutError)
  utils.py      — Formatting helpers
tools/
  video_tools.py   — generate video from text or image
  task_tools.py    — query task status, batch query
  info_tools.py    — list models, actions, prompt guide
prompts/           — LLM guidance prompts
tests/             — pytest-asyncio + respx tests

API Endpoints

  • POST /grok/videos — text-to-video and image-to-video generation
  • POST /grok/tasks — query task status (async polling)

Sync from Docs

When invoked by the sync workflow, the Docs repo is checked out at _docs/. Your job:

  1. Source of truth_docs/openapi/grok.json is the OpenAPI spec for the Grok video API.
  2. Compare models — The Literal types in core/types.py must match the spec's model enum. Add/remove as needed.
  3. Compare parameters — Each @mcp.tool() function's parameters should match the corresponding OpenAPI endpoint.
  4. Update defaults — If a new model becomes the recommended default, update the default in core/types.py.
  5. Update README — Keep the model table and feature list current.
  6. Add tests — For new tools or parameters, add test cases in tests/.
  7. PR title — Use format: sync: <description> [auto-sync]

Development

pip install -e ".[dev]"
pytest --cov=core --cov=tools
ruff check .
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 47 lines · 443 tokens per session scan A e5895b545a4e

Subscribe to this mod's changes

GrokMCP CLAUDE.md is an instructions file published in the GitHub repository AceDataCloud/GrokMCP (1 stars, last pushed 10d ago), licensed MIT. It adds 443 tokens to every session, about $0.0022 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.