CoolerProYT

MC Test — Testing skill for Claude Code

Testing community

A dev-only Minecraft client mod plus an MCP server, so Claude Code can drive a running Minecraft client the way Playwright drives a browser: open worlds, click GUIs, press keys, walk, mine, place, cra.

How to install MC Test

This entry records only its repository, not the path inside it, so there is no exact command to give. Open CoolerProYT/MC-Test and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What MC Test does

A dev-only Minecraft client mod plus an MCP server, so Claude Code can drive a running Minecraft client the way Playwright drives a browser: open worlds, click GUIs, press keys, walk, mine, place, craft, fight, run commands, inspect blocks, entities and inventories, read logs and take screenshots. The main use is testing your own mods.

Alternatives in Testing

  • Regen API — Regenerate the OpenAPI spec and web API client after server API changes 2.5k ★
  • Spec Driven Development — Drive Kandev feature work through spec, plan, independent tasks, implementation, QA, and verification 697 ★
  • N9e Config Driven E2e — Maintain config-driven Nightingale E2E tests that convert JSON config data into UI-readable normalized values 301 ★

README

MCTest

A **dev-only** Minecraft client mod (Fabric + NeoForge, Minecraft 1.21.1, 26.1.2, 26.2 and 26.3; Fabric + Forge for 1.20.1) plus an **MCP server**, so Claude Code (or any coding agent, or your own scripts) can drive a running Minecraft client the way Playwright drives a browser: open worlds, click GUIs, press keys, walk, mine, place, craft, fight, run commands, inspect blocks, entities and inventories, read logs and take screenshots. The main use is testing your own mods.

**Documentation: https://mctest.coolerpromc.com/**

Claude Code ──stdio/MCP──▶ mcp/ (Node) ──WebSocket JSON-RPC──▶ MCTest mod in your dev client (127.0.0.1:25599)
  • Loopback only. The control servers bind to 127.0.0.1. On the client, MCTest drives the game; on a dedicated server (optional, see Testing on a dedicated server) it exposes the server side.
  • Never ship it. Add it to your mod as a dev-runtime dependency (see below). It is not bundled into your jar or published POM.
  • Everything runs through vanilla code paths: input goes through Minecraft's own mouse/keyboard handlers and key mappings, and interactions go through MultiPlayerGameMode, so the server validates them as for a real player.

1. Use MCTest in your mod

Where to get it

MCTest is published to `https://maven.coolerpromc.com/releases/` as `com.coolerpromc.mctest:mctest--:`, for Minecraft 1.20.1, 1.21.1, 26.1.2, 26.2 and 26.3. 1.20.1 is for Fabric and Forge. The snippets below use that repository. If you're changing MCTest itself, run `./gradlew publishToMavenLocal` and use `mavenLocal()` instead to pick up your local build.

Latest releases, updated automatically from the Maven repository. Pick the row for your Minecraft version:

Minecraft Fabric NeoForge
26.3 mctest-fabric-26.3:26.3.0.3 mctest-neoforge-26.3:26.3.0.3
26.2 `mctest-fabric-26.2:26.