From 7f43d537eddff66fe045448fecfd5c70cd7c73f8 Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Thu, 1 Oct 2026 21:49:20 -0400 Subject: [PATCH] M14.1: ship .mcp.json (headless + bridge servers) Co-Authored-By: Claude Opus 5.5 --- .mcp.json | 12 ++++++++++++ docs/agents.md | 5 +++++ 2 files changed, 17 insertions(+) create mode 100644 .mcp.json diff --git a/.mcp.json b/.mcp.json new file mode 100644 index 00000000..caff41c9 --- /dev/null +++ b/.mcp.json @@ -0,0 +1,12 @@ +{ + "mcpServers": { + "effectcraft": { + "command": "cargo", + "args": ["run", "--quiet", "--release", "-p", "effectcraft-cli", "--", "mcp", "--demo"] + }, + "effectcraft-app": { + "command": "cargo", + "args": ["run", "--quiet", "--release", "-p", "effectcraft-cli", "--", "mcp", "--bridge", "9877"] + } + } +} diff --git a/docs/agents.md b/docs/agents.md index ea4abf69..54a5ff38 100644 --- a/docs/agents.md +++ b/docs/agents.md @@ -26,6 +26,11 @@ Code, add a `.mcp.json` at the project root: } ``` +This repository ships a ready-made [`.mcp.json`](../.mcp.json): `effectcraft` (headless, demo +project loaded) and `effectcraft-app` (bridged to a desktop app started with `--control 9877`). Both +run through `cargo run --release`, so the first start compiles; run +`cargo build --release -p effectcraft-cli` once beforehand to avoid an MCP startup timeout. + You can also register it from the command line: `claude mcp add effectcraft -- /path/to/target/release/effectcraft-cli mcp`. Other clients (Claude Desktop, Cursor and the like) take the same `command` and `args`.