Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .claude-plugin/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
{
"name": "shapeitup",
"description": "CAD scripting toolkit: create/modify .shape.ts files, validate geometry, check collisions, export STEP/STL/3MF via Replicad + OpenCascade. Runs headless; live 3D preview available if the ShapeItUp VS Code extension is installed.",
"version": "1.29.5",
"version": "1.30.0",
"author": {
"name": "Asbjorn Rorvik",
"email": "rorvik.asbjorn@gmail.com"
Expand Down
30 changes: 30 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,36 @@ Releases 1.17.0–1.24.0 are described only in their
Format based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/); the
project follows semantic versioning at the extension level.

## [1.30.0] - 2026-09-30

Extension `1.30.0` / mcp-server `1.30.0` — Mistral Vibe support
([#1](https://github.com/asbis/ShapeItUp/issues/1), thanks @martinrieder).

### Added
- **Mistral Vibe in the MCP Clients view.** The sidebar detects Vibe (CLI or
VS Code extension, both of which read `~/.vibe/`, or `$VIBE_HOME`) and shows
whether `config.toml` registers ShapeItUp.
- **ShapeItUp: Install MCP Server… → Add to Mistral Vibe.** Appends a
`[[mcp_servers]]` entry to `~/.vibe/config.toml` and, if you want it, copies
the skill to `~/.vibe/skills/shapeitup/SKILL.md`, where Vibe also exposes it
as `/shapeitup`. A modal shows exactly what gets written first, and nothing
else in the file is touched. **ShapeItUp: Uninstall MCP Server…** removes
both again.
- **Vibe setup in the docs** (`README.md`, `packages/mcp-server/README.md`,
`INSTALL.md`), including `vibe mcp add`. The entry sets
`startup_timeout_sec = 60`: Vibe's default is 10 s, and the first `npx -y`
run took 17.5 s from an empty npm cache, so a fresh install would time out
on its first launch without it.

### Changed
- **Clicking a client in the MCP Clients view goes straight to that client's
install action**, which each row's tooltip already described, instead of
opening the full list of options.

### Fixed
- **`INSTALL.md` pointed agents at `skill/SKILL.md`, which returns 404.** The
skill lives at `skills/shapeitup/SKILL.md`.

## [1.29.5] - 2026-09-23

Extension `1.29.5` / mcp-server `1.29.5`.
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ All packages are bundled with a single `esbuild.config.mjs` at the root. It prod

1. Add the tool definition in `packages/mcp-server/src/tools.ts`
2. Update the API reference in the `getApiReference()` function
3. Update `skill/SKILL.md` with documentation
3. Update `skills/shapeitup/SKILL.md` with documentation
4. Copy the skill to `~/.claude/commands/shapeitup.md`

## Adding Examples
Expand Down
2 changes: 1 addition & 1 deletion DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Verify with `/mcp` inside a Claude Code session started in this directory — th
| Extension / viewer / worker | `pnpm dev` (watch) then press **F5** in VS Code | F5 relaunches the Extension Development Host — no manual restart |
| MCP server (`packages/mcp-server/src/`) | `pnpm dev:mcp` (watch) | **Yes** — `/quit` Claude Code and restart. Stdio MCP processes don't hot-reload. |
| Stdlib (`packages/core/src/stdlib/`) | `pnpm dev` (rebuilds both the extension bundles *and* the mcp-server, since stdlib is bundled into both) | F5 for viewer changes; restart Claude for MCP changes |
| Skill docs (`skill/SKILL.md`) | `pnpm build` to copy into `dist/skill/` | Reinstall the skill (or reload Claude Code) to pick it up |
| Skill docs (`skills/shapeitup/SKILL.md`) | `pnpm build` to copy into `dist/skills/shapeitup/` | Reinstall the skill (or reload Claude Code) to pick it up |

F5 alone works too — `.vscode/launch.json` runs `pnpm build` as a pre-launch task, so you don't need a separate dev server running if you just want a one-shot test.

Expand Down
38 changes: 32 additions & 6 deletions INSTALL.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# ShapeItUp — Install Prompt for AI Agents

> **For humans:** paste the whole of this file into any agentic CLI
> (Claude Code, Cursor agent, Gemini, Codex, etc.) and tell it to follow
> (Claude Code, Cursor agent, Gemini, Mistral Vibe, Codex, etc.) and tell it to follow
> the instructions. The agent will detect your MCP clients and register
> ShapeItUp with your explicit approval.

Expand All @@ -20,7 +20,7 @@ register the server with every MCP client.
| Transport | stdio |
| Command | `npx` |
| Args | `["-y", "@shapeitup/mcp-server"]` |
| Skill source | `https://raw.githubusercontent.com/asbis/ShapeItUp/master/skill/SKILL.md` |
| Skill source | `https://raw.githubusercontent.com/asbis/ShapeItUp/master/skills/shapeitup/SKILL.md` |

Node 20+ is required. The `npx -y @shapeitup/mcp-server` form auto-fetches the
latest published version on first run and caches it; no manual install needed.
Expand All @@ -43,6 +43,8 @@ Check for each of these (absence of one is fine — just skip that client):
- **Claude Desktop**: `~/Library/Application Support/Claude/claude_desktop_config.json`
on macOS, `%APPDATA%\Claude\claude_desktop_config.json` on Windows.
- **Gemini CLI**: `which gemini` succeeds, OR `~/.gemini/` exists.
- **Mistral Vibe** (CLI or VS Code extension): `which vibe` succeeds, OR
`~/.vibe/` exists (`$VIBE_HOME` instead of `~/.vibe` when it is set).
- **VS Code / Copilot Agent Mode**: if the ShapeItUp VS Code extension is
installed, the MCP server is already registered via the native provider API
— **skip this client**, no action needed.
Expand Down Expand Up @@ -117,6 +119,26 @@ Create `~/.gemini/extensions/shapeitup/gemini-extension.json`:
}
```

#### Mistral Vibe

The config is TOML. If `~/.vibe/config.toml` already has an `[[mcp_servers]]`
entry with `name = "shapeitup"`, skip this client. Otherwise append (create the
file if missing; never rewrite what is already there):

```toml
[[mcp_servers]]
name = "shapeitup"
transport = "stdio"
command = "npx"
args = ["-y", "@shapeitup/mcp-server"]
startup_timeout_sec = 60
```

If the file declares `mcp_servers = [...]` as an inline array instead, add the
same fields to that array as an inline table rather than appending, since TOML
does not allow both forms. Keep `startup_timeout_sec`: Vibe's default of 10 s
is shorter than the first `npx` download. Tell the user to run `/reload` in Vibe.

### Step 3 — Install the Claude Code skill (optional but recommended)

If Claude Code is present, fetch `SKILL.md` from the URL in the table above
Expand All @@ -125,10 +147,13 @@ full Replicad API reference when working on `.shape.ts` files. Ask first.

```bash
mkdir -p ~/.claude/skills/shapeitup
curl -fsSL https://raw.githubusercontent.com/asbis/ShapeItUp/master/skill/SKILL.md \
curl -fsSL https://raw.githubusercontent.com/asbis/ShapeItUp/master/skills/shapeitup/SKILL.md \
-o ~/.claude/skills/shapeitup/SKILL.md
```

If Mistral Vibe is present, the same file works there unchanged: write it to
`~/.vibe/skills/shapeitup/SKILL.md` (ask first). Vibe picks it up on `/reload`.

### Step 4 — Verify

After registration:
Expand All @@ -150,6 +175,7 @@ so the user can troubleshoot.
## Uninstall

To remove ShapeItUp from an MCP client, delete the `shapeitup` entry from the
relevant config file, or run `claude mcp remove shapeitup` for Claude Code.
No global state is left behind beyond those config entries and the optional
skill file at `~/.claude/skills/shapeitup/`.
relevant config file, or run `claude mcp remove shapeitup` for Claude Code and
`vibe mcp remove shapeitup` for Mistral Vibe. No global state is left behind
beyond those config entries and the optional skill files at
`~/.claude/skills/shapeitup/` and `~/.vibe/skills/shapeitup/`.
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

---

ShapeItUp is an MCP server that turns [Replicad](https://replicad.xyz) / OpenCascade into AI-agent-grade CAD tooling. It writes, renders, verifies, and exports parametric 3D models from TypeScript `.shape.ts` files, headlessly — from the terminal, from Claude Code / Cursor / Claude Desktop, or from CI. A [VSCode extension](#vscode-extension-optional) is available as an optional interactive viewer for humans who want to watch the renders happen live.
ShapeItUp is an MCP server that turns [Replicad](https://replicad.xyz) / OpenCascade into AI-agent-grade CAD tooling. It writes, renders, verifies, and exports parametric 3D models from TypeScript `.shape.ts` files, headlessly — from the terminal, from Claude Code / Cursor / Claude Desktop / Mistral Vibe, or from CI. A [VSCode extension](#vscode-extension-optional) is available as an optional interactive viewer for humans who want to watch the renders happen live.

## Install for Claude Code

Expand Down Expand Up @@ -42,8 +42,24 @@ Where to put it:

- **Cursor** — `~/.cursor/mcp.json`, or Settings → MCP → *Add new server* to drop it in through the UI.
- **Claude Desktop** — `~/Library/Application Support/Claude/claude_desktop_config.json` on macOS, `%APPDATA%\Claude\claude_desktop_config.json` on Windows. Restart the app after editing.
- **Mistral Vibe** — TOML rather than JSON; see below.
- **Any stdio MCP client** — hand it `npx -y @shapeitup/mcp-server` as the server command.

### Mistral Vibe

Append to `~/.vibe/config.toml`, then run `/reload` in Vibe:

```toml
[[mcp_servers]]
name = "shapeitup"
transport = "stdio"
command = "npx"
args = ["-y", "@shapeitup/mcp-server"]
startup_timeout_sec = 60
```

Keep `startup_timeout_sec`: Vibe's default of 10 s is shorter than the first `npx` download. For the Replicad API reference, save [`skills/shapeitup/SKILL.md`](skills/shapeitup/SKILL.md) as `~/.vibe/skills/shapeitup/SKILL.md`. More options, including `vibe mcp add`, are in the [MCP server README](packages/mcp-server/README.md#mistral-vibe).

Node 20+ required. No native build step; everything ships as WASM.

## What you get
Expand Down
9 changes: 5 additions & 4 deletions packages/extension/media/walkthrough-mcp.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@

ShapeItUp already works inside **VS Code Copilot Agent Mode** — no setup
needed. For other AI clients (Claude Code, Cursor, Claude Desktop, Gemini
CLI), use the command below.
CLI, Mistral Vibe), use the command below.

Run `ShapeItUp: Install MCP Server…` from the Command Palette
(`Cmd/Ctrl+Shift+P`) and pick your client. We'll either copy the right
command to your clipboard or open a one-click install deep link — we never
write to your config without asking.
(`Cmd/Ctrl+Shift+P`) and pick your client. We'll copy the right command to
your clipboard, open a one-click install deep link, or, for Mistral Vibe, show
you exactly what we'd add to `~/.vibe/config.toml` — we never write to your
config without asking.

The simplest path: pick **"Copy AI install prompt URL"**, then paste into any
agentic CLI. The agent will detect your clients and install ShapeItUp for
Expand Down
6 changes: 3 additions & 3 deletions packages/extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "shapeitup-vscode",
"displayName": "ShapeItUp",
"description": "Scripted CAD for VS Code — write TypeScript, see 3D, export STEP/STL/3MF (Bambu Studio & OrcaSlicer ready). AI-powered with Claude Code MCP integration.",
"version": "1.29.5",
"version": "1.30.0",
"publisher": "shapeitup",
"license": "MIT",
"icon": "icon.png",
Expand Down Expand Up @@ -107,12 +107,12 @@
{
"id": "shapeitup.getStarted",
"title": "Get started with ShapeItUp",
"description": "Enable AI assistants (Claude Code, Cursor, Gemini) to use ShapeItUp.",
"description": "Enable AI assistants (Claude Code, Cursor, Gemini, Mistral Vibe) to use ShapeItUp.",
"steps": [
{
"id": "installMcp",
"title": "Install the MCP server for your AI client",
"description": "Run [ShapeItUp: Install MCP Server…](command:shapeitup.installMcpServer) to register ShapeItUp with Claude Code, Cursor, Claude Desktop, or Gemini CLI. VS Code Copilot Agent Mode is registered automatically — no action needed.",
"description": "Run [ShapeItUp: Install MCP Server…](command:shapeitup.installMcpServer) to register ShapeItUp with Claude Code, Cursor, Claude Desktop, Gemini CLI, or Mistral Vibe. VS Code Copilot Agent Mode is registered automatically — no action needed.",
"media": {
"markdown": "media/walkthrough-mcp.md"
}
Expand Down
Loading
Loading