craft
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.

OpenCode Craft Anything is a native OpenCode implementation of the Craft Anything workflow: a deterministic engine captures the original, an OpenCode agent builds a new project, an automated check measures how close the result is, and the agent refines it.
It is not a fork of storytold/craft-anything and does not include its Rust engine. It is a compact, self-contained alternative for people who work inside OpenCode:
No Claude Code required. The builder is your own OpenCode, with the model and provider you already use.
Study and comparison without an LLM. Playwright captures screenshots, text, geometry, palette and fonts; scoring combines pixels, text and layout.
Three ways to use it.
/craftin the OpenCode TUI,craft_*MCP tools for any agent, and thecraft-opencodeCLI for headless runs.Clean room or Deep. Clean room uses only what a visitor can see. Deep reads a local target's structure and strings (and can use REA for code-level inspection).
The CLI currently prints Italian messages. The agent and the workflow respond in the language you use.
What it does
Study | Captures up to 5 same-origin pages at 1440, 834 and 390 px: screenshots, visible text, headings, navigation, landmark geometry, computed styles, palette, fonts and console errors. For local files/folders in Deep mode: format, hashes, sections, imports/exports, strings, manifests and source inventory. |
Build | The |
Check | Serves the build (static or a declared dev server), captures the same pages and widths, and scores visual similarity, text and layout. Writes |
Refine | Below the threshold, the engine hands the agent a prioritized mismatch brief. The agent fixes the build and calls |
Related MCP server: Human Taste Engine
Features
Deterministic website capture with Playwright using system Microsoft Edge or Google Chrome.
Responsive evidence at three widths, with full-page desktop screenshots.
Text, heading, navigation, palette, font and landmark extraction.
Screenshot diff images and per-width scores.
Text similarity, vocabulary coverage, sequence similarity and layout/style scoring.
Local target profiling for PE, ELF, Mach-O, ZIP/APK/JAR/ASAR, .NET, Electron and source trees.
Clean-room and Deep modes.
Project tracking:
craft.json, steps, rounds, best score and notes.Optional deep code inspection through the REA MCP server already present in OpenCode.
Windows installer with embedded Python, post-install setup wizard and clean uninstaller.
English/Italian README and a local HTML dashboard.
How it works
┌──────────────┐ ┌──────────────────┐ ┌───────────────┐
target ───▶ │ STUDY │ ───▶ │ BUILD │ ───▶ │ CHECK │
(URL/file) │ Playwright │ │ OpenCode agent │ │ screenshots │
│ + analysis │ │ (your model) │ │ + text │
└──────────────┘ └──────────────────┘ │ + layout │
│ │ └───────┬───────┘
▼ ▼ │
capture/ + study.md app/ checks/round-N/
│
┌────────────────────────┘
▼
score + mismatches
│
┌────────┴────────┐
▼ ▼
below threshold above threshold
│ │
refine readyStudy — captured evidence is saved under
capture/and summarized inevidence/study.md.Build —
opencode run --standalone --auto --agent craftbuilds inapp/.Check — the engine serves the build, recaptures it, compares it with the original and writes a report.
Refine — the builder receives the report and fixes the highest-impact differences.
The builder can call craft_check itself during a run; the loop does not depend on an external orchestrator.
Requirements
OpenCode 2.x (
opencode --version). Theopencode-ai1.x package is not supported.Python 3.10+ for a source install. The Windows installer bundles Python 3.12.
Microsoft Edge or Google Chrome for captures. If neither is installed, Playwright can install Chromium.
A working OpenCode model. If you do not choose one, OpenCode uses its configured default.
Install
Windows installer (recommended)
Download the latest installer from Releases:
CraftAnythingOpenCode-Setup-0.1.0.exeWhat it does:
Installs per user in
%LOCALAPPDATA%\Programs\Craft Anything OpenCode— no administrator rights.Bundles Python 3.12.10, Playwright and Pillow.
Optionally adds
craft-opencodeto the user PATH.Creates Start Menu shortcuts: Craft, Configure OpenCode, README, Projects folder and Uninstall.
Opens a post-install wizard to detect OpenCode 2.x, choose a model, register the agent/commands/skill/MCP server, run
doctor, reconnect the server and optionally install Chromium for Playwright.The uninstaller removes the integration, PATH entry and shortcuts, but never touches your projects in
Documents\Craft Anything OpenCode.
Requirements: OpenCode 2.x and Edge/Chrome.
The installer is currently unsigned, so Windows SmartScreen shows “Unknown publisher”. Choose More info → Run anyway. A public distribution should be signed with an Authenticode certificate.
Silent install:
.\CraftAnythingOpenCode-Setup-0.1.0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTARTInstall files without touching the OpenCode configuration or PATH:
.\CraftAnythingOpenCode-Setup-0.1.0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /MERGETASKS="!configure,!addtopath"SHA256 checksums are published with every release.
From source (developers)
git clone https://github.com/FSMaker77/opencode-craft-anything.git
cd opencode-craft-anything
python -m pip install -r requirements.txt
python -m pip install -e .
craft-opencode install --model <provider/model>
craft-opencode doctor--model is optional; without it, OpenCode uses its default model. On macOS/Linux, use python3 and, if no system browser is available:
python3 -m playwright install chromiumcraft-opencode install writes only to your user configuration:
~/.config/opencode/agents/craft.md
~/.config/opencode/commands/craft.md
~/.config/opencode/commands/craft-look.md
~/.config/opencode/skills/craft-anything/SKILL.md
~/.config/opencode/craft-anything.jsonand registers the craft MCP server in ~/.config/opencode/opencode.json with a 900-second timeout.
Do not move the source folder after installation: the MCP configuration points to it. If you move it, run craft-opencode install again.
Use inside OpenCode
/craft https://example.com "Recreate the landing page"The command selects the craft agent, which:
creates or opens a project in
~/Documents/Craft Anything OpenCode/(or the folder you name);calls
craft_study;builds in
app/;calls
craft_check, reads the report and refines;reports the score, folder and preview instructions.
Local target:
/craft C:\path\to\app "Recreate this app in Tauri"
/craft C:\path\to\game.exe "Rebuild the gameplay in Godot" --deepFrom scratch:
/craft - "A snake game in Rust with macroquad"Study only, without building:
/craft-look https://example.comIf OpenCode has just been installed or updated and the MCP tools are missing:
craft-opencode reconnectCLI
# Full loop: study → build → check → refine
craft-opencode rebuild https://example.com "Recreate the landing page"
# Choose a project folder
craft-opencode rebuild https://example.com "Recreate the landing page" --out C:\work\example-clone
# Local target in Deep mode
craft-opencode rebuild C:\Tools\sample.exe "Recreate the UI in Electron" --mode deep
# From scratch
craft-opencode rebuild - "A snake game in Rust" --rounds 3 --threshold 70
# Individual phases
craft-opencode study C:\work\example-clone --max-pages 5
craft-opencode build C:\work\example-clone --model <provider/model>
craft-opencode check C:\work\example-clone
# Preview and dashboard
craft-opencode preview C:\work\example-clone --open
craft-opencode report C:\work\example-clone --open
craft-opencode status C:\work\example-clone
craft-opencode list
craft-opencode reconnect
craft-opencode uninstallOption | Default | Meaning |
|
| Clean room or deep inspection. |
| config | Model used by the builder. |
|
| OpenCode agent used to build. |
|
| Refinements after the first check. |
|
| Passing score. |
|
| Pages captured during study. |
| off | Skip a phase. |
|
| Timeout per builder turn. |
| off | Open the dashboard at the end. |
The builder runs in a private OpenCode session (opencode run --standalone --auto) using the same model and providers configured in OpenCode. The session is reused between build and refinement. A complete build can take from a few minutes to about half an hour depending on the model and target.
MCP tools
Tool | What it does |
| Create or open a project; returns the exact project and app paths. |
| Capture the original and write |
| Return the current brief: request, paths, steps, next action. |
| Serve, capture, compare and write the check report. |
| Read steps, scores and rounds. |
| Start/stop the build preview. |
| Record a decision or question in |
Any OpenCode agent can use them, not only craft. Study and comparison consume no model tokens.
Clean room vs Deep
Clean room (default) — The engine stores only rendered evidence for websites: screenshots, visible text, computed styles, geometry, palette, fonts. For a local target it does not read files; it only records a note, and the builder works from user-provided screenshots or descriptions.
Deep — For a local target or website:
file: format, hash, sections, imports/exports, strings, entropy, metadata;
folder: tree, manifests, dependencies, framework markers, source inventory;
the builder may use the REA tools already available in OpenCode (
tools.rea.*) for functions, pseudocode, strings and references.
Clean room is a rule of the engine and the agent, not an OS sandbox. The agent runs with your permissions. Likewise, a shell command can still write anywhere; do not point the agent at a target you do not want read.
Project layout
<project>/
craft.json request, target, mode, steps, scores
capture/
site.json index of captured pages
pages/home/ page.json, visible.txt, desktop.png, tablet.png, mobile.png, desktop-full.png
native/ profile.json for local targets in Deep mode
evidence/
study.md readable brief for the agent
app/ the build
checks/
round-1/
report.json
report.md
build/ recaptured build
diff/ original | build | difference images
inbox/ notes and questions
logs/ builder and preview logs
report.html local dashboardThe agent must not modify craft.json, capture/, checks/ or evidence/: those are the engine's record. Edit permissions block the write tools; a shell command still runs with your permissions.
How scoring works
The overall score is a weighted average of pages (home page weighs 2×):
overall = 0.45 × visual + 0.30 × text + 0.25 × layoutVisual: mean pixel difference, colour histogram similarity, edge correlation, block similarity.
Text: vocabulary coverage, Jaccard, sequence similarity over the first 12k characters.
Layout: presence and geometry of header/nav/main/footer/h1/h2/button/form, heading match, palette, fonts.
Score | Meaning |
85–100 | Very close. Fix only clear differences. |
70–84 | Recognizable. Structure, palette, type or spacing are off. |
50–69 | Same idea, wrong proportions. Rework the layout before details. |
< 50 | Reconsider the approach. |
The score is a guide, not a target to game: copying text without rebuilding the structure still looks wrong.
Local targets, apps and games
For a local file or folder in Deep mode the engine produces a static profile:
PE: machine, subsystem, sections, entropy, imports/exports, CLR/.NET, entry point;
ELF/Mach-O: class, machine, type, entry, libraries, sections;
ZIP/APK/JAR/ASAR: inventory,
package.json, Electron/Android/.NET markers;folders: trees, manifests, dependencies, frameworks, source counts and sampled lines;
interesting strings: URLs, paths, versions, errors, licenses.
For runtime behaviour of apps and games the program is deliberately honest: it does not launch the executable automatically, record input or run behavior checks. You can:
launch the app yourself and put screenshots in
capture/manual/(the agent reads them);use REA for code inspection;
ask the agent to build a deterministic self-test;
use
craft_checkas a self-check: preview answers, files exist, no 404 or console errors.
For websites the visual check is complete. For desktop apps, the visual side depends on the screenshots you provide.
Tested
On Windows x64, 2026-12-04:
examples/demo-sitestudied at 1440/834/390; built withopencode-go/deepseek-v4.1-flashand thecraftagent; 99.7/100 after self-refinement (visual 99.4, text 100, layout 100).A second test on
examples/mini: 98.4/100 (visual 99.3, text 100, layout 95).Identical capture control: 100/100.
Unit tests: 5/5.
Installer: silent install/uninstall, PATH add/remove, integration configure/remove, embedded Python/Pillow/Playwright and
doctorall verified.
Limitations
No native desktop GUI. The interface is OpenCode plus the HTML dashboard; there is no egui app.
No bundled reverse-engineering engine. Local binaries use Python static analysis and, in Deep mode, the REA MCP server already configured in OpenCode. No decompiler is included.
App/game behavior checks are not automated. Self-check and screenshot comparison are supported.
Sites behind login, anti-bot or canvas may need manual screenshots. Capture errors are recorded and the run continues.
Clean room is not an OS sandbox.
Copyright: the builder recreates layout, style and behavior; it must not copy logos, photos, illustrations, code or long text without permission. The prompt enforces this; responsibility remains with the operator.
CLI messages are Italian in this release.
The Windows installer is unsigned.
Troubleshooting
Problem | Fix |
|
|
| It is a stale shared-service connection; |
Model quota error | Choose another model with |
No preview | Add |
Blank build or 404s | Use relative asset paths and make sure the preview serves the right folder. |
Site capture fails | Use manual screenshots in |
Playwright cannot find a browser |
|
SmartScreen blocks the installer | More info → Run anyway; the build is unsigned. |
Build the Windows installer
Requirements on the build machine:
Windows x64;
Python 3.12 with pip (only to stage the payload);
Inno Setup 6:
winget install JRSoftware.InnoSetupInternet access on the first build (embeddable Python and Playwright/Pillow wheels).
powershell -ExecutionPolicy Bypass -File installer\build.ps1Output:
dist\CraftAnythingOpenCode-Setup-0.1.0.exe
dist\SHA256SUMS.txtThe script verifies the Python zip SHA256, installs binary wheels into the embedded runtime, cleans caches, tests the payload and compiles the installer with Inno Setup. See installer/README.md.
Repository layout
craft_opencode/ engine, CLI, MCP server, templates
installer/ Inno Setup script, build script, post-install wizard, icon
examples/ demo-site and mini test targets
docs/ dashboard screenshot
tests/ comparison unit tests
pyproject.toml Python package
craft-opencode.cmd launcher for a source checkoutCredits and license
Original idea and workflow: Craft Anything by ArtCraft (MIT/Apache-2.0). This implementation is independent and not affiliated with the original project; it does not use its trademarks, logo or assets.
REA (Reverse Engineering Agent) is a separate MCP server already present in the environment; this project uses it only when the agent chooses to call it in Deep mode.
MIT — see LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Website checker for AI coding agents. Measures your site in a real browser, with evidence.
Captured web interfaces, screenshots, flows and structured evidence for AI coding agents.
Pages, crawls and URL batches as clean Markdown and JSON for AI agents, with an Evidence Record.
Capture web pages as cryptographically signed, tamper-evident evidence with WACZ archives.
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables coding agents to capture and inspect running projects, resolve real assets from free sources, and check source for design tells, providing an evidence loop for improving websites, games, and motion.101MIT
- AlicenseNot gradedqualityAmaintenanceA local MCP server that gathers web captures, image crops, video frames, and copy into structured evidence artifacts, letting a vision-capable agent inspect the returned media and produce evidence-backed critique with scored findings, comparisons, and quality gates. It never converts local metadata into visual judgment, so hosts must supply their own vision reasoning.MIT
- AlicenseNot gradedqualityBmaintenanceEnables coding agents to capture, measure and explore any user interface in Chromium, producing a provenance-tagged UI DNA document and a verifiable React project rebuilt from it. Provides a deterministic DiffReport so each reconstruction can be checked pixel-by-pixel, style-by-style and transition-by-transition against the original.30 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables an agent to locate embedded Flash or Java games (on live pages or in the Internet Archive), inspect whether they can run, fetch the Ruffle or CheerpJ runtime, package a self-contained static site, and verify playback in a real headless browser. Every step produces an evidence bundle so revived games can be hosted on any static host with claims backed by recorded results.MIT