ZubeidHendricks

construct-factory

Community ZubeidHendricks
Updated

Factory for generating Construct 3 games via an MCP server over the .c3proj project-folder format

construct-factory

A factory for generating Construct 3 games programmatically, exposed to Claude (or any MCP client) as an MCP server.

Construct 3 has no public remote-editor API. The automation surface this project targets is the project-folder save format: a Construct 3 project saved as a folder of JSON files (project.c3proj + layouts/, eventSheets/, objectTypes/, …). We read/write those files directly — no browser required. The human only opens the folder in Construct 3 to preview/export/publish.

Layout

packages/
  c3-format/     Read/write/validate the .c3proj project-folder format (the schema layer)
  c3-builder/    High-level authoring API: createGame, addLayout, addObject, addEvent, …
  mcp-server/    Thin MCP server exposing c3-builder operations as tools
  factory-core/  Shared genre templates + scaffolds (the "factory" layer)
games/           One folder per generated game
reference/       Real Construct 3 project folders used to reverse-engineer the schema
verify/          Validation harness (does the output parse / round-trip cleanly?)

Templates

Two kinds:

  • Builder templates (blank, hello-text) — assembled from scratch via c3-builder against the reverse-engineered schema.js.
  • Clone templates — stamped out by a full-fidelity folder clone of a verified real project in reference/, so every byte (images, animations, particles, effects, timelines, event logic) is preserved and guaranteed to open in Construct:
    • kenney-platformer — Kenney's CC0 tile platformer (Player + Platform behavior, Tilemap, coins, enemies).
    • cave-boy — Scirra's Cave Bridge template (animated player, parallax vegetation, particles, area lighting, Tween/Timeline).
generateGame({ rootDir: "games", name: "Cave Boy Adventure", template: "cave-boy" });

The format layer round-trips these real projects losslessly (read → write to a new folder is byte-identical, verified in verify/).

Building from scratch

The c3-builder API also assembles projects without a reference. Sprites emitreal PNG files per animation frame (pass images, or get a generated solidplaceholder) and link them through imageSpriteId, so built-from-scratchsprites actually render:

const g = Game.create({ rootDir: "games", name: "Scratch Platformer" });
g.addLayout({ name: "Level1", makeFirst: true });
g.addSprite({ name: "Player", width: 24, height: 24, originY: 1,
  animName: "Walk", isLooping: true, behaviors: ["Platform", "solid"],
  images: ["player-walk-000.png", "player-walk-001.png"] });
g.placeInstance({ layout: "Level1", object: "Player", x: 100, y: 200 });
await g.save();

Editing a cloned project

list_level, move_instance, duplicate_instance, list_assets andreplace_image customize a cloned reference game by editing its real instanceJSON and swapping art — no schema guesswork.

⚠️ Status

The hand-written field shapes in packages/c3-format/src/schema.js arereverse-engineered; sprites, animations, behaviors and instances are verifiedagainst the reference/ projects, but exotic features (effects, families,timelines, particles) are only guaranteed via the clone path, which copiesground truth verbatim. When in doubt, clone.

Quick start

npm install
npm run smoke      # generate a tiny game into games/ and round-trip it
npm run verify     # validate a project folder
npm run mcp        # start the MCP server on stdio

Wiring into Claude Code

claude mcp add construct-factory -- node /Users/zubeidhendricks/construct-factory/packages/mcp-server/src/index.js

MCP Server · Populars

MCP Server · New

    umutkeltek

    healthsave-observatory

    Self-hosted health-data observatory: sync Apple Health, early wearable plugins, and Garmin/Samsung imports into a canonical TimescaleDB record; view baseline-linked findings and query a private API. Docker-ready, local-first, default-deny egress.

    Community umutkeltek
    atilaahmettaner

    TradingMCP: Market Data & Technical Analysis for AI Assistants

    MCP server for market analysis in AI assistants: screeners, multi-timeframe technical analysis, backtests and sentiment for crypto, stocks, forex and futures. 39 tools. Self-host free, or use the hosted version, TradingMCP.

    Community atilaahmettaner
    lifan-builds

    Faster Mac Use (fmu)

    Background-first, multi-cursor browser and native macOS computer-use engine for AI agents

    Community lifan-builds
    agent360dev

    Agent360 Browser MCP

    The browser tool that can stop and ask you. A 2FA code, a CAPTCHA, a choice only you can make: it asks on your screen, then carries on in the same signed-in Chrome. 41 tools, MCP clients that run local servers, MIT.

    Community agent360dev
    robinAKL

    Agent Room

    Put Claude Code, Cursor, Codex, Gemini & Antigravity in one room — real-time multi-agent AI collaboration over MCP for distributed dev, code review, PR handoff & frontend↔backend integration. Free, self-hostable, MCP-native.

    Community robinAKL