Skip to content
Kitbay
MCP server

TDD-MCP

Runs locallyUpdated on Nov 16, 20269GitHub starsCan change dataNo API key needed

A local MCP server that holds a coding agent to the test-driven development cycle by making it write code files through the server.

What it does

A local MCP server that holds a coding agent to the test-driven development cycle by making it write code files through the server. A session moves through plan, red, green and refactor phases, and test or production files are locked or unlocked by phase: the agent must first submit a plan giving each test's arrange, act and assert, may add only one failing test at a time, and can only start the next cycle once every changed production line and branch is covered. Writes the current phase does not allow are refused or reverted with a note on how to proceed. It supports Python with pytest and TypeScript with vitest.

Capabilities

  • Lock or unlock test and production files by TDD phase
  • Require a test plan with arrange, act and assert for each test
  • Allow only one new failing test per cycle
  • Require branch coverage of changed lines before the next cycle
  • Run tests and coverage for Python or TypeScript projects