projects / 02 of 07

Terminal TD

A tower defense game playable entirely in your terminal, installable via Homebrew. Features an MCP server so agents can challenge you.

GoTUIMCPSource ↗

What it is

A tower defense game that runs entirely in the terminal. Place towers, survive the waves, keep the base alive. Installable with Homebrew, or as a binary for macOS, Linux and Windows.

How it works

Written in Go on tcell. Enemies route to the base along a flow field, so walls and new paths change where they walk. Maps and waves are plain JSON.

It ships an MCP server, so an agent can play level designer: read the rules, author a map and its waves, validate that every spawn can reach the base, and simulate a run to see whether it's beatable, before you ever play it.

Gallery

v0.2.0's title screen
v0.2.0's title screen
Placing towers on Crossroads
Placing towers on Crossroads
Wave two: nine enemies on the path
Wave two: nine enemies on the path
Up close: towers (T) firing (*) at enemies (M)
Up close: towers (T) firing (*) at enemies (M)