faceit-mcp: Command for Claude Code

.cursor/commands/regenerate-tools.md

regenerate-tools is a command for Claude Code, Cursor from sebazai/faceit-mcp. It costs 0 tokens per session (345 once invoked), scanned A, original, MIT.

A command that downloads the FACEIT Data API description, regenerates the project’s tool modules, and checks that the server still exposes them.

In plain words
What is it for?
Use it after the FACEIT API changes or when improving tool names and descriptions. It also summarizes changes in the generated tool files.
Why use it?
It keeps generated code in sync with the API description and catches assembly or tool-count changes after regeneration.

Command for Claude CodeCursor

Written for Cursor and Claude Code: installed under .cursor/, but also a Claude Code command (commands/*.md).

This is sebazai/faceit-mcp's own configuration. It tells Claude Code and Cursor how to work on faceit-mcp 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 faceit-mcp configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python scripts/generate_tools.py.

Reuse

Borrowing it

Nothing to install: this file belongs to sebazai/faceit-mcp. 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/sebazai/faceit-mcp/main/.cursor/commands/regenerate-tools.md
Clone the repo
git clone --depth 1 https://github.com/sebazai/faceit-mcp

Made for: Claude Code, Cursor.

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 regenerate-tools

README.md
[![agentmods](https://agentmods.dev/badge/commands/sebazai/faceit-mcp/regenerate-tools/github.svg)](https://agentmods.dev/commands/sebazai/faceit-mcp/regenerate-tools)
Your own site
<a href="https://agentmods.dev/commands/sebazai/faceit-mcp/regenerate-tools"><img src="https://agentmods.dev/badge/commands/sebazai/faceit-mcp/regenerate-tools/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for regenerate-tools

Your own site · 80×15
<a href="https://agentmods.dev/commands/sebazai/faceit-mcp/regenerate-tools"><img src="https://agentmods.dev/badge/commands/sebazai/faceit-mcp/regenerate-tools.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 345 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00000 $0.00345
Opus 5 $0.00000 $0.00172
Sonnet 5 $0.00000 $0.00069
Haiku 4.5 $0.00000 $0.00034

Measured 8d ago against content hash 3abe549de85f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

regenerate-tools scanned grade A with 1 finding 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 8d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -fsSL https://open.faceit.com/data/v4/docs/swagger.json -o swagger.json
.cursor/commands/regenerate-tools.md · 43 lines

What it actually says

/regenerate-tools

Regenerate the FACEIT MCP tool modules from swagger.json and verify the server still assembles.

When this command is invoked, do the following in order:

  1. Fetch the latest swagger.json from the FACEIT Data API and save it to the repo root (it is gitignored by design):

    curl -fsSL https://open.faceit.com/data/v4/docs/swagger.json -o swagger.json
    

    If the download fails, stop and report the error to the user.

  2. If the user asked for description improvements or renames, edit scripts/generate_tools.py — specifically TAG_HINTS for disambiguation hints and OPERATION_OVERRIDES for renames. Never hand-edit files under src/faceit_mcp/tools/.

  3. Run the generator:

    python scripts/generate_tools.py
    

    Expect output ending with Generated 64 tools across 13 modules. If the count changes, mention it explicitly to the user.

  4. Run the smoke test:

    FACEIT_API_KEY=placeholder python -c "
    import asyncio
    from faceit_mcp.server import mcp
    tools = asyncio.run(mcp.list_tools())
    print(len(tools))
    "
    

    The output must be 64 (or the new expected count).

  5. Summarise the diff under src/faceit_mcp/tools/ — which tool descriptions changed and why. Do not commit unless the user asked you to.

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. 8d ago First seen · 43 lines · 0 tokens per session scan A 3abe549de85f

Subscribe to this mod's changes

regenerate-tools is a command published in the GitHub repository sebazai/faceit-mcp (0 stars, last pushed 4mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 345 tokens. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.