minecraft-rcon-mcp: Instructions file for Claude Code

CLAUDE.md

minecraft-rcon-mcp CLAUDE.md is an instructions file for Claude Code from scotteratigan/minecraft-rcon-mcp. It costs 1,008 tokens per session, scanned A, original, MIT.

Developer instructions for minecraft-rcon-mcp, an MCP server that lets an AI assistant send commands to a Minecraft server through RCON, a remote command interface. It also explains how to build reusable scripts and task-specific recipes.

In plain words
What is it for?
Use it when developing or extending Minecraft server-control scripts, combining small utilities into recipes, or checking the package’s authoring rules.
Why use it?
It keeps server-specific details out of the shared package and gives contributors clear boundaries for writing maintainable scripts. Environment variables and arguments provide deployment-specific settings.

Instructions file for Claude Code

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

This is scotteratigan/minecraft-rcon-mcp's own configuration. It tells Claude Code how to work on minecraft-rcon-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 minecraft-rcon-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to scotteratigan/minecraft-rcon-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/scotteratigan/minecraft-rcon-mcp/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/scotteratigan/minecraft-rcon-mcp

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 minecraft-rcon-mcp CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/scotteratigan/minecraft-rcon-mcp/claude-md/github.svg)](https://agentmods.dev/instructions/scotteratigan/minecraft-rcon-mcp/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/scotteratigan/minecraft-rcon-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/scotteratigan/minecraft-rcon-mcp/claude-md/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 minecraft-rcon-mcp CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/scotteratigan/minecraft-rcon-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/scotteratigan/minecraft-rcon-mcp/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,008 This file is loaded in full into every session.
When invoked 1,008 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.01008 $0.01008
Opus 5 $0.00504 $0.00504
Sonnet 5 $0.00202 $0.00202
Haiku 4.5 $0.00101 $0.00101

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

Security

Grade A, and why

minecraft-rcon-mcp 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 11d 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 · 73 lines

How it starts

The opening of the file, as written. The whole thing — 73 lines — stays where its author put it; the contents beside it link to each section on GitHub.

minecraft-rcon-mcp — agent guide

This package is a server-agnostic MCP server (RCON tool + in-game AI chat) plus a toolbox of scripts. Nothing here may hardcode knowledge of a particular server, world, player, or save location — that all comes from environment variables / arguments so the package stays reusable. Deployment-specific facts live in the consumer (server) repo, never here.

For how to run things and the full env-var reference, see README.md.

How to write a script

The goal is a toolbox of small, orthogonal primitives that compose efficiently, plus a few recipes that show how to combine them. Before writing a new script, decide which layer it belongs to:

  • Primitivesrc/minecraft_rcon_mcp/scripts/. Does one general thing, reusable across many tasks (e.g. count_entities, find_block_entities, check_chunk_generated). No task-specific logic, no version-coupled constants.
  • Recipesrc/minecraft_rcon_mcp/recipes/. A specific task composed from primitives (e.g. reset_trial_spawners = find_block_entities + rcon). May be coupled to a Minecraft version's mechanics — say so in the docstring.

Prefer composition over new scripts. If a task is just two or three primitive calls, record it as a recipe in agent_memory/capabilities.md (capability memory) rather than adding a file. Only add a recipe module when it carries real logic worth keeping (parsing, thresholds, multi-step orchestration).

Authoring checklist

  1. Server-agnostic. No hardcoded worlds, players, coordinates, or paths.
    • RCON: RCON_HOST / RCON_PORT / RCON_PASSWORD (use scripts.rcon.RconClient).
    • World save files: resolve via scripts._world.resolve_world_dir() (reads WORLD_DIR or a --world-dir arg). The world path cannot be derived over RCON.
    • Dimension: take --dimension (default overworld) and resolve region dirs with scripts._world.region_dir(world_dir, dimension) — it handles vanilla (DIM-1/DIM1) and data-driven (dimensions/<ns>/<name>/) layouts plus aliases. Never hardcode a single dimension.
  2. Reuse the shared helpers — don't reimplement RCON, region/NBT parsing, or entity counting:
    • scripts.rconRconClient, run.
    • scripts._worldresolve_world_dir, region_dir.
    • scripts.count_entitiescount_entities(rc, selector, at=...), parse_count.
    • scripts.find_block_entitiesscan_block_entities(...) for region scans.
  3. Module + importable API. Make it runnable as python -m minecraft_rcon_mcp.<scripts|recipes>.<name> and expose a plain function (not just a CLI) so the MCP server and other scripts can call it directly. This is what will let the in-game agent run scripts later (roadmap).
  4. Version coupling lives in recipes, flagged in the docstring (e.g. "gates verified against 26.1 bytecode; may drift across versions").
  5. Quality gates (all must pass — see README → Development):
    • ruff format + ruff check (line length 100).
    • ty check (annotate enough that it passes; guard __doc__ as (__doc__ or "")).
    • pytest — add tests for pure logic (parsers, path resolution, selector building) using fakes; don't require a live server.
    • Add any new dependency to pyproject.toml.
  6. Docstring with a one-line purpose and copy-pasteable usage examples (use neutral placeholders like /path/to/world, Steve — never this deployment's real world/player names).

Read the full file on GitHub · 73 lines

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. 11d ago First seen · 73 lines · 1,008 tokens per session scan A c1e15ccc84f7

Subscribe to this mod's changes

minecraft-rcon-mcp CLAUDE.md is an instructions file published in the GitHub repository scotteratigan/minecraft-rcon-mcp (0 stars, last pushed 2mo ago), licensed MIT. It adds 1,008 tokens to every session, about $0.0050 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.

Related

Other instructions, from other repositories

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,126 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens