New advertisers: 50% off your first month with code FIRSTMONTHSee slots
akkiruk avatar

craftos-mcp

akkiruk/craftos-mcp

Emulated CC:Tweaked computers, monitors, turtles and rednet for running and testing Lua programs without Minecraft.

tools
23
transport
STDIO
env vars
3
last updated
Nov 20, 2026
View on GitHub

What it does

  • Runs programs with craftos_run and tests with craftos_test (*.test.lua via ccunit), returning terminal and monitor text, PNGs and golden snapshots
  • Drives interactive sessions with craftos_session_create, craftos_type, craftos_key, and craftos_touch_monitor, plus craftos_ui, craftos_act, craftos_expect, and craftos_script
  • Reads and writes workspace files with craftos_read_file, craftos_write_file, and craftos_list_files; no paid API key or browser sign-in is listed
  • Designed for developers writing CC:Tweaked Lua who want deterministic, scriptable tests with a virtual clock, seeded randomness, and simulated worlds

Tools

23 tools

Public tool metadata for what this MCP can expose to an agent.

craftos_infoEngine, ROM and workspace status

Engine, ROM and workspace status

No parameter schema in public metadata yet.

craftos_write_fileWorkspace files (copied to the root of each computer)

Workspace files (copied to the root of each computer)

No parameter schema in public metadata yet.

craftos_read_fileWorkspace files (copied to the root of each computer)

Workspace files (copied to the root of each computer)

No parameter schema in public metadata yet.

craftos_list_filesWorkspace files (copied to the root of each computer)

Workspace files (copied to the root of each computer)

No parameter schema in public metadata yet.

craftos_runRun a program in a fresh computer: terminal and monitor text, PNGs, golden snapshots

Run a program in a fresh computer: terminal and monitor text, PNGs, golden snapshots

No parameter schema in public metadata yet.

craftos_testRun `*.test.lua` files with the `ccunit` harness

Run `*.test.lua` files with the `ccunit` harness

No parameter schema in public metadata yet.

craftos_session_createInteractive computers

Interactive computers

No parameter schema in public metadata yet.

craftos_typeInteractive computers

Interactive computers

No parameter schema in public metadata yet.

craftos_keyInteractive computers

Interactive computers

No parameter schema in public metadata yet.

craftos_touch_monitorInteractive computers

Interactive computers

No parameter schema in public metadata yet.

craftos_uiRead screens as data, act and wait until the program is done, assert

Read screens as data, act and wait until the program is done, assert

No parameter schema in public metadata yet.

craftos_actRead screens as data, act and wait until the program is done, assert

Read screens as data, act and wait until the program is done, assert

No parameter schema in public metadata yet.

craftos_settleRead screens as data, act and wait until the program is done, assert

Read screens as data, act and wait until the program is done, assert

No parameter schema in public metadata yet.

craftos_expectRead screens as data, act and wait until the program is done, assert

Read screens as data, act and wait until the program is done, assert

No parameter schema in public metadata yet.

craftos_scriptRead screens as data, act and wait until the program is done, assert

Read screens as data, act and wait until the program is done, assert

No parameter schema in public metadata yet.

craftos_network_createSeveral computers with modems

Several computers with modems

No parameter schema in public metadata yet.

craftos_network_updateSeveral computers with modems

Several computers with modems

No parameter schema in public metadata yet.

craftos_sim_commandChange and read the simulated world during a session

Change and read the simulated world during a session

No parameter schema in public metadata yet.

craftos_sim_stateChange and read the simulated world during a session

Change and read the simulated world during a session

No parameter schema in public metadata yet.

craftos_seedDeterminism, the virtual clock, what the program saw, pictures

Determinism, the virtual clock, what the program saw, pictures

No parameter schema in public metadata yet.

craftos_advanceDeterminism, the virtual clock, what the program saw, pictures

Determinism, the virtual clock, what the program saw, pictures

No parameter schema in public metadata yet.

craftos_traceDeterminism, the virtual clock, what the program saw, pictures

Determinism, the virtual clock, what the program saw, pictures

No parameter schema in public metadata yet.

craftos_screenshotDeterminism, the virtual clock, what the program saw, pictures

Determinism, the virtual clock, what the program saw, pictures

No parameter schema in public metadata yet.

Configuration

CRAFTOS_WORKSPACE

Folder with your Lua project, copied onto every emulated computer (default: the current folder).

CRAFTOS_ADDONS

Mods to simulate besides CC:Tweaked: all, none, or ids separated by commas such as create,mekanism (vhcctweaks is opt-in: all,vhcctweaks).

CRAFTOS_VERSION

Minecraft version new computers start on: 1.21.1 (CC:Tweaked 1.121.0, the default), 1.20.1 (CC:Tweaked 1.121.0) or 1.18.2 (CC:Tweaked 1.101.3).

Readme

craftos-mcp

Run and test your ComputerCraft programs without starting Minecraft. craftos-mcp is a CC:Tweaked emulator for people who write CC Lua: computers, monitors you can tap, turtles that dig and build in a block world, rednet between several computers, and blocks from Create, Mekanism, Advanced Peripherals and more. Pause the clock, jump a day ahead, save the whole world and put it back. Write tests for your programs and run them with one command. It works by hand, like CraftOS-PC, and an AI coding agent can drive it too (below).

A turtle builds a small tower in the app's 3D view

The ROM is built from the real CC:Tweaked jar, and the engine passes 1189 of 1190 of CC:Tweaked's own tests at 1.101.3 (and 1361 of 1362 at 1.121.0). 58 of the community's libraries, programs and operating systems, from Basalt and Pine3D to Opus, LevelOS and Phoenix, install and run in it as they do in the game: the list. How exact is it says, area by area, what was measured in game and what was written from source.


View the full README on GitHub

Details

Repository
github.com/akkiruk/craftos-mcp
Website
github.com/Akkiruk/craftos-mcp
Categories
Game Development, Testing & QA
Package
craftos-mcp
Transport
STDIO
Registry
MCP registry, active

Similar to craftos-mcp

More Game Development