@useconstructor/mcp 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,86 @@
1
+ # Constructor MCP
2
+
3
+ Build and deploy full web apps from natural language — directly from Claude Code or any MCP-compatible AI client.
4
+
5
+ ```
6
+ "create a SaaS landing page with pricing and a waitlist form"
7
+ → live URL + screenshots in ~3 minutes
8
+ ```
9
+
10
+ ## What it does
11
+
12
+ Constructor takes a prompt and returns a **deployed production URL**. No config, no scaffolding, no manual deploys. Each app gets its own GitHub repo, Vercel deployment, and (optionally) a Turso database.
13
+
14
+ Available tools once connected:
15
+
16
+ | Tool | What it does |
17
+ |---|---|
18
+ | `create_job` | Build a new app from a prompt |
19
+ | `get_job` | Check build progress |
20
+ | `get_project` | Get the live URL, screenshots, cost |
21
+ | `list_projects` | List all your projects |
22
+ | `list_jobs` | Job history for a project |
23
+ | `create_project` | Create a project without building yet |
24
+ | `respond_input` | Answer a clarifying question mid-build |
25
+
26
+ ## Setup
27
+
28
+ ### 1. Get an API key
29
+
30
+ Sign up at [useconstructor.com](https://www.useconstructor.com) → Settings → Generate API key.
31
+
32
+ ### 2. Install
33
+
34
+ ```bash
35
+ npm install -g @useconstructor/mcp
36
+ ```
37
+
38
+ ### 3. Add to `~/.claude.json`
39
+
40
+ ```json
41
+ {
42
+ "mcpServers": {
43
+ "construct": {
44
+ "type": "stdio",
45
+ "command": "constructor-mcp",
46
+ "env": {
47
+ "CONSTRUCTOR_API_KEY": "csk_your_key_here",
48
+ "CONSTRUCTOR_API_URL": "https://constructor-api-prod.vercel.app"
49
+ }
50
+ }
51
+ }
52
+ }
53
+ ```
54
+
55
+ ### 4. Restart Claude Code
56
+
57
+ Run `/mcp` to verify `construct` appears as connected.
58
+
59
+ ## Usage
60
+
61
+ Just describe what you want to build:
62
+
63
+ ```
64
+ Build a portfolio site for a photographer. Dark theme, minimal, with a gallery grid and contact form.
65
+ ```
66
+
67
+ ```
68
+ Create a SaaS dashboard with a sidebar nav, usage charts, and a settings page.
69
+ ```
70
+
71
+ ```
72
+ Make a restaurant website for "La Cocina" — warm colors, menu page, reservation form.
73
+ ```
74
+
75
+ Constructor handles the rest: plans the design, writes the code, deploys to Vercel, and returns screenshots.
76
+
77
+ ## Requirements
78
+
79
+ - Node.js 18+
80
+ - An active Constructor account (activate at [useconstructor.com/app/settings](https://www.useconstructor.com/app/settings))
81
+
82
+ ## Links
83
+
84
+ - [Constructor](https://www.useconstructor.com) — platform homepage
85
+ - [Settings & API key](https://www.useconstructor.com/app/settings) — generate your key
86
+ - [REST API docs](https://constructor-api-prod.vercel.app/health) — use Constructor without MCP
@@ -2,8 +2,8 @@
2
2
  const { spawnSync } = require('child_process');
3
3
  const path = require('path');
4
4
 
5
- const tsx = path.join(__dirname, '..', 'node_modules', '.bin', 'tsx');
6
- const server = path.join(__dirname, '..', 'src', 'mcp', 'server-stdio.ts');
5
+ const tsx = path.join(__dirname, 'node_modules', '.bin', 'tsx');
6
+ const server = path.join(__dirname, 'src', 'mcp', 'server-stdio.ts');
7
7
 
8
8
  const result = spawnSync(tsx, [server], {
9
9
  stdio: 'inherit',
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@useconstructor/mcp",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Constructor MCP server — build and deploy web apps from natural language via Claude Code",
5
5
  "main": "index.js",
6
6
  "bin": {
7
- "constructor-mcp": "./bin/constructor-mcp.js"
7
+ "constructor-mcp": "constructor-mcp.js"
8
8
  },
9
9
  "scripts": {
10
10
  "start": "node dist/index.js",