Minecraft Debug Mcp minecraft-debug-mcp

Operate and debug the live Minecraft bot through its built-in MCP REPL server.

Use it when work requires starting the bot with `pnpm dev`, connecting to the local MCP endpoint, inspecting cognitive state/logs/history, injecting synthetic chat/events, or running targeted REPL code against the running brain during investigation and development.

Works in Claude, ChatGPT, Codex and more
Our test
8/10✓ Verified
tested Dec 6, 2026
GitHub stars
52k
moeru-ai/airi
Added by
0
members
Updated
Dec 6
commit f28d10e
Content
3 files
no scripts · 9 KB
License
MIT
free to use

What our test found

The skill gives a clear, practical workflow for diagnosing and testing the local bot, including useful safeguards for side-effectful chat injection.

Request we tested it on“Help me diagnose why my local Minecraft bot is not responding to chat, and show me how to verify a test interaction safely.”

Limits spotted

  • The workflow assumes the user has the project and MCP client configured.
  • It does not explain how to distinguish a model-response issue from a connection or executor issue in depth.
View on GitHub ↗
name: minecraft-debug-mcp
description: Operate and debug the live Minecraft bot through its built-in MCP REPL server. Use when work requires starting the bot with `pnpm dev`, connecting to the local MCP endpoint, inspecting cognitive state/logs/history, injecting synthetic chat/events, or running targeted REPL code against the running brain during investigation and development.

Minecraft Debug MCP

Overview

Use this skill to run the local bot and interact with its MCP debug interface safely and quickly.

Quick Start Workflow

  1. Run pnpm dev from /path/to/project/root/integrations/minecraft and keep it running.
  2. Wait for MCP REPL server running at http://localhost:3001 in logs.
  3. Connect MCP client to http://localhost:3001/sse.
  4. Verify readiness with a read-only call:
  5. Read resource brain://state, or
  6. Call tool get_state.
  7. Continue with the smallest tool/action that answers the task.

Execution Rules

  • Start read-only, then escalate to mutation tools only when needed.
  • Prefer get_state, get_last_prompt, and get_logs for diagnostics before execute_repl.
  • Prefer get_llm_trace for structured per-attempt reasoning/content inspection.
  • Keep execute_repl snippets minimal and reversible.
  • Use inject_chat for conversational simulation and inject_event only when specific event-shape testing is required.
  • Treat inject_chat as side-effectful: it can trigger actual in-game bot replies/actions.
  • If MCP connection fails, check that pnpm dev is still running and port 3001 is free.

Tooling Strategy

  • Use get_state to inspect queue/processing state and available tools/actions (skips REPL builtins by default; pass { includeBuiltins: true } to include them).
  • Use get_logs with a small limit first.
  • Use get_last_prompt to inspect latest LLM input.
  • Use execute_repl for deep object inspection or one-off targeted calls on the running brain.
  • Use inject_chat to simulate player chat and verify behavior loop.
  • Use get_llm_trace to assert REPL behavior in automation (for example, detect repeated await skip() on specific events).
  • Use execute_repl("forget_conversation()") to clear conversation memory before prompt-engineering tests.

Read references/mcp-surface.md for exact tool/resource names and argument schemas.

Live-Tested Notes

  • get_state returns available tools/actions and runtime state (skips REPL builtins like skip, use, log by default to reduce noise; pass { includeBuiltins: true } if you need to inspect them).
  • get_last_prompt can return very large payloads; call only when prompt-level debugging is needed.
  • execute_repl returns a structured result where returnValue is stringified; parse mentally as display output, not typed JSON.
  • get_logs(limit=10) is enough to verify whether an injected event reached REPL/executor.
  • get_llm_trace(limit, turnId?) gives structured attempt-level trace data (messages, content, reasoning, usage, duration).
  • get_last_prompt and get_llm_trace are compacted for MCP: system prompt/system-role messages are omitted to reduce token cost.
  • Prefer compact value reads in REPL:
  • query.self() for bot status.
  • query.inventory().has(name, n) / query.inventory().count(name) for checks.
  • query.inventory().summary() for stable aggregated item output.
  • query.snapshot(range?) for one-shot world+inventory capture.
  • forget_conversation() is available as a runtime function in REPL/global context and clears only conversation memory.
  • Current prompt behavior supports two-turn value-first flows: read/query turn returns concrete data first, follow-up turn performs chat/action using that returned value.

Live Testing Workflow

  1. Confirm MCP health:
  2. Call get_state.
  3. Capture baseline inventory:
  4. execute_repl with query.inventory().list().map(i => ({ name: i.name, count: i.count })).
  5. Trigger a task through normal cognition path:
  6. Call inject_chat with a clear instruction (example: "please gather 3 dirt blocks").
  7. Verify execution trace:
  8. Call get_logs(limit=10) and check for:
  9. bot acknowledgement chat
  10. action tool feedback (for example collectBlocks)
  11. REPL result summary
  12. Call get_llm_trace(limit=5) when you need exact model output/reasoning for assertions.
  13. Re-check inventory using the same REPL snippet and compare against baseline.

Use this workflow when validating behavior changes, tool wiring, or regressions in planning/execution loops.