Skip to content

Configuration ​

Game system properties ​

Set these as JVM arguments on the client or server run, for example:

groovy
// Fabric:   loom { runs { client { vmArg('-Dmctest.port=25600') } } }
// NeoForge: neoForge { runs { client { systemProperty('mctest.port', '25600') } } }
PropertyDefaultSideMeaning
mctest.port25599clientPort of the client control API
mctest.serverPort25598serverPort of the dedicated-server control API
mctest.logBuffer10000bothLog lines kept for mc_logs
mctest.pauseOnLostFocusfalseclienttrue keeps vanilla's pause menu when the window loses focus
mctest.mouseWarpfalseclienttrue lets the game capture and warp the OS cursor as in vanilla
mctest.tutorialfalseclienttrue keeps the tutorial hint toasts
mctest.onlineModefalseservertrue keeps authentication and signed chat as server.properties says
mctest.whitelistfalseservertrue keeps the whitelist on at startup
mctest.autoOptrueserverfalse stops opping players when they join

The control APIs always bind to 127.0.0.1.

MCP server environment ​

VariableDefaultMeaning
MCTEST_PORT25599Port of the client control API
MCTEST_SERVER_PORT25598Port of the dedicated-server control API
bash
claude mcp add mctest --scope user -e MCTEST_PORT=25600 -- npx -y mctest-mcp

Released under the MIT License.