From 2d8b982560084cd289fd1b42f2f3410dae2e7577 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Asbj=C3=B8rn=20R=C3=B8rvik?=
<11362831+asbis@users.noreply.github.com>
Date: Mon, 12 Oct 2026 23:19:43 +0200
Subject: [PATCH] Ship an install manifest for every client and list in the MCP
Registry
- .claude-plugin/plugin.json: the plugin brings the MCP server and the
skill together, and Anthropic's directory reads this file. The
marketplace entry now points at "./" instead of carrying the components.
- .codex-plugin/plugin.json + codex.mcp.json (with the startup and tool
timeouts Codex needs) and gemini-extension.json.
- server.json + mcpName, published as io.github.asbis/shapeitup by a new
mcp-registry job (GitHub OIDC, pinned mcp-publisher, skips a version
already listed, independent of the Marketplace job).
- README leads with installing: ask-your-agent, Add to Cursor / Install
in VS Code buttons, the Claude plugin, Gemini, npx skills add, renders
and links to shapeitup.dev. INSTALL.md prefers the plugin and
`gemini extensions install`.
- release-check fails unless every manifest version matches the release
and mcpName matches server.json. CLAUDE.md lists the manifests and the
root .mcp.json gotcha.
Co-Authored-By: Claude Opus 5.5
---
.claude-plugin/marketplace.json | 20 +-------
.claude-plugin/plugin.json | 36 ++++++++++++++
.codex-plugin/plugin.json | 29 +++++++++++
.github/workflows/publish.yml | 59 ++++++++++++++++++++++
CHANGELOG.md | 16 ++++++
CLAUDE.md | 20 +++++++-
INSTALL.md | 36 +++++++++++---
README.md | 65 ++++++++++++++++++++++--
codex.mcp.json | 10 ++++
gemini-extension.json | 11 +++++
packages/mcp-server/README.md | 2 +
packages/mcp-server/package.json | 1 +
scripts/release-check.mjs | 85 +++++++++++++++++++-------------
server.json | 23 +++++++++
14 files changed, 349 insertions(+), 64 deletions(-)
create mode 100644 .claude-plugin/plugin.json
create mode 100644 .codex-plugin/plugin.json
create mode 100644 codex.mcp.json
create mode 100644 gemini-extension.json
create mode 100644 server.json
diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json
index 4a81869..45a2fc9 100644
--- a/.claude-plugin/marketplace.json
+++ b/.claude-plugin/marketplace.json
@@ -17,7 +17,7 @@
"name": "Asbjorn Rorvik",
"email": "rorvik.asbjorn@gmail.com"
},
- "homepage": "https://github.com/asbis/ShapeItUp",
+ "homepage": "https://shapeitup.dev",
"repository": "https://github.com/asbis/ShapeItUp",
"license": "MIT",
"keywords": [
@@ -31,23 +31,7 @@
"mechanical-engineering"
],
"category": "productivity",
- "source": {
- "source": "github",
- "repo": "asbis/ShapeItUp"
- },
- "strict": false,
- "skills": [
- "./skills"
- ],
- "mcpServers": {
- "shapeitup": {
- "command": "npx",
- "args": [
- "-y",
- "@shapeitup/mcp-server"
- ]
- }
- }
+ "source": "./"
}
]
}
diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json
new file mode 100644
index 0000000..aadeaf6
--- /dev/null
+++ b/.claude-plugin/plugin.json
@@ -0,0 +1,36 @@
+{
+ "name": "shapeitup",
+ "displayName": "ShapeItUp",
+ "version": "1.30.1",
+ "description": "Scripted CAD for AI agents: write parametric parts in TypeScript, check them with 4-view renders, collision and joint checks, and export STEP/STL/3MF. OpenCascade runs as WASM, so there is nothing to install beyond Node.",
+ "author": {
+ "name": "Asbjorn Rorvik",
+ "email": "rorvik.asbjorn@gmail.com",
+ "url": "https://github.com/asbis"
+ },
+ "homepage": "https://shapeitup.dev",
+ "repository": "https://github.com/asbis/ShapeItUp",
+ "license": "MIT",
+ "keywords": [
+ "cad",
+ "text-to-cad",
+ "3d",
+ "3d-printing",
+ "replicad",
+ "opencascade",
+ "step",
+ "stl",
+ "3mf",
+ "parametric",
+ "mechanical-engineering"
+ ],
+ "icon": "./icon.png",
+ "documentationUrl": "https://github.com/asbis/ShapeItUp#readme",
+ "supportUrl": "https://github.com/asbis/ShapeItUp/issues",
+ "mcpServers": {
+ "shapeitup": {
+ "command": "npx",
+ "args": ["-y", "@shapeitup/mcp-server"]
+ }
+ }
+}
diff --git a/.codex-plugin/plugin.json b/.codex-plugin/plugin.json
new file mode 100644
index 0000000..ab9af9d
--- /dev/null
+++ b/.codex-plugin/plugin.json
@@ -0,0 +1,29 @@
+{
+ "name": "shapeitup",
+ "version": "1.30.1",
+ "description": "Scripted CAD for AI agents: write parametric parts in TypeScript, check them with 4-view renders, collision and joint checks, and export STEP/STL/3MF.",
+ "author": {
+ "name": "Asbjorn Rorvik",
+ "email": "rorvik.asbjorn@gmail.com",
+ "url": "https://github.com/asbis"
+ },
+ "homepage": "https://shapeitup.dev",
+ "repository": "https://github.com/asbis/ShapeItUp",
+ "license": "MIT",
+ "keywords": ["cad", "text-to-cad", "3d-printing", "replicad", "opencascade", "step", "stl", "3mf"],
+ "skills": "./skills/",
+ "mcpServers": "./codex.mcp.json",
+ "interface": {
+ "displayName": "ShapeItUp",
+ "shortDescription": "Parametric CAD your agent can drive",
+ "longDescription": "The agent writes each part as a TypeScript .shape.ts file, renders it from four angles, reads the errors and fixes them. Check collisions and joints, tune parameters, and export STEP for Fusion or FreeCAD and 3MF for Bambu Studio or OrcaSlicer. OpenCascade runs as WebAssembly, so nothing needs installing beyond Node.",
+ "developerName": "Asbjorn Rorvik",
+ "category": "Creativity",
+ "capabilities": ["Write", "Interactive"],
+ "websiteURL": "https://shapeitup.dev",
+ "composerIcon": "./icon.png",
+ "logo": "./icon.png",
+ "defaultPrompt": ["Design a 3D-printable wall hook for a 20 mm rail and show me the renders."],
+ "brandColor": "#FF5A1F"
+ }
+}
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index ee2305e..52481c3 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -259,3 +259,62 @@ jobs:
# --skip-duplicate for the same reason the npm step skips: a version
# that is already listed is the goal state, so a re-run must pass.
run: npx -y @vscode/vsce publish --packagePath shapeitup-vscode.vsix --azure-credential --skip-duplicate
+
+ mcp-registry:
+ # The official MCP Registry (registry.modelcontextprotocol.io). The
+ # VS Code MCP gallery and most MCP directories mirror it, so a listing
+ # there is how people find the server without knowing its npm name.
+ #
+ # Its own job, like `marketplace`, so the two can fail independently: a
+ # registry outage must not strand the VSIX, and a Marketplace problem must
+ # not keep the listing stale.
+ #
+ # Auth is GitHub OIDC, no secret. The registry trusts the `io.github.asbis/`
+ # namespace in server.json because this workflow runs in a repo `asbis`
+ # owns. It then checks that the npm package's `mcpName` names the same
+ # server, which is why this waits for `publish` to put the package on npm.
+ needs: publish
+ runs-on: ubuntu-latest
+ permissions:
+ id-token: write
+ contents: read
+ steps:
+ - uses: actions/checkout@v6
+
+ - name: Publish server.json to the MCP Registry
+ shell: bash
+ env:
+ # Pinned so a publisher release can't change behaviour under a
+ # release. Bump when the registry asks for it ("invalid audience"
+ # means this binary is too old).
+ MCP_PUBLISHER_VERSION: v1.8.1
+ run: |
+ set -euo pipefail
+ NAME="$(jq -r .name server.json)"
+ VERSION="$(jq -r .version server.json)"
+ PKG_VERSION="$(jq -r .version packages/mcp-server/package.json)"
+ if [ "$VERSION" != "$PKG_VERSION" ] || [ "$(jq -r '.packages[0].version' server.json)" != "$PKG_VERSION" ]; then
+ echo "::error::server.json is not at $PKG_VERSION, the version npm just got. Bump both version fields in server.json." >&2
+ exit 1
+ fi
+
+ # Idempotent like the npm step: a version already listed is the goal
+ # state, and a re-run of a half-failed release has to pass.
+ if curl -fsS "https://registry.modelcontextprotocol.io/v0/servers?search=$NAME&version=$VERSION" \
+ | jq -e --arg n "$NAME" --arg v "$VERSION" '.servers[] | select(.server.name == $n and .server.version == $v)' >/dev/null; then
+ echo "$NAME@$VERSION is already in the registry — skipping."
+ exit 0
+ fi
+
+ curl -fsSL "https://github.com/modelcontextprotocol/registry/releases/download/${MCP_PUBLISHER_VERSION}/mcp-publisher_linux_amd64.tar.gz" | tar xz mcp-publisher
+ ./mcp-publisher login github-oidc
+
+ # The registry validates against npm, which can take a moment to
+ # serve a version published seconds ago.
+ for attempt in 1 2 3 4 5; do
+ if ./mcp-publisher publish; then exit 0; fi
+ echo "Publish attempt $attempt failed; retrying in 30 s."
+ sleep 30
+ done
+ echo "::error::mcp-publisher publish failed 5 times." >&2
+ exit 1
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 7c001c2..e8892ff 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -20,6 +20,22 @@ Extension `1.30.1` / mcp-server `1.30.1` — Codex setup docs and three fixes.
10 s to start and 60 s per tool; a first `npx` run from an empty cache took
34 s, so a fresh install timed out before it answered. The skill goes in
`~/.agents/skills/shapeitup/`, where Codex looks for skills.
+- **An install manifest for every client.** `.claude-plugin/plugin.json` makes
+ `claude plugin install shapeitup@shapeitup` bring the MCP server and the
+ skill together, and is what Anthropic's plugin directory reads.
+ `.codex-plugin/plugin.json` (with `codex.mcp.json`, which carries the
+ timeouts) does the same for Codex, and `gemini-extension.json` lets
+ `gemini extensions install https://github.com/asbis/ShapeItUp` work.
+- **Official MCP Registry listing.** `server.json` plus `mcpName` in the npm
+ package, published as `io.github.asbis/shapeitup` by a new `mcp-registry`
+ job in the release workflow (GitHub OIDC, no token; skips a version already
+ listed). The VS Code MCP gallery and most directories mirror the registry.
+- **README leads with installing.** "Ask your agent" (it follows
+ `INSTALL.md`), Add to Cursor and Install in VS Code buttons, the Claude Code
+ plugin, Gemini, `npx skills add`, renders, and links to shapeitup.dev and
+ the browser playground.
+- `pnpm release:check` fails unless every manifest's version matches the
+ release and `mcpName` matches `server.json`.
### Fixed
- **On macOS the MCP server and the VS Code extension never found each
diff --git a/CLAUDE.md b/CLAUDE.md
index 34aff4b..e86850a 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -218,7 +218,23 @@ Registered globally in `~/.claude/settings.json`. Viewer-related tools:
- **To release**: bump versions (see below), commit, push, then either `gh release create v0.x.x` OR `gh workflow run publish.yml --ref master` (dispatch skips the tag-verify step and publishes whatever version is in `package.json`).
- **Marketplace auth = Microsoft Entra ID (no token).** The `marketplace` job runs in the GitHub environment `marketplace`, signs in with `azure/login` (OIDC, `allow-no-subscriptions`) and runs `vsce publish --azure-credential`. The identity is the app registration "ShapeItUp Marketplace publisher (GitHub Actions)" in the `Standardmappe` tenant; its federated credential trusts exactly `repo:asbis/ShapeItUp:environment:marketplace`, and its client/tenant IDs are the environment variables `AZURE_CLIENT_ID` / `AZURE_TENANT_ID`. It sits on the `shapeitup` publisher as a Contributor — the ID the Members list takes is printed by the job's "Show the identity the Marketplace sees" step. The job is separate from `publish` on purpose: an environment changes the job's OIDC claims, and the npm trusted publisher must keep seeing the ones it was configured with.
- **Why not a PAT.** `VSCE_PAT` expired silently: it was the LAST step, so npm had already published and every release read as half-done rather than broken. The listing sat at 1.23.0 (8 Jul 2026) through six releases, 1.24.0 → 1.29.5. Azure DevOps also retires global PATs on 2026-12-01. Do not go back.
-- **Re-runs are safe on both channels.** The npm step skips a version already on the registry and the Marketplace step passes `--skip-duplicate`, so re-running a half-failed release only redoes what's missing. Still check `npx @vscode/vsce show shapeitup.shapeitup-vscode` after any release; npm and the Marketplace can drift apart without anything saying so.
+- **Re-runs are safe on every channel.** The npm step skips a version already on the registry, the Marketplace step passes `--skip-duplicate`, and the MCP Registry step skips a version already listed, so re-running a half-failed release only redoes what's missing. Still check `npx @vscode/vsce show shapeitup.shapeitup-vscode` after any release; npm and the Marketplace can drift apart without anything saying so.
+- **MCP Registry = GitHub OIDC (no token).** Job `mcp-registry` (after `publish`, beside `marketplace`) publishes `server.json` as `io.github.asbis/shapeitup` with a pinned `mcp-publisher`. The registry checks that the npm package's `mcpName` (in `packages/mcp-server/package.json`) names the same server, so the two must stay equal.
+
+### Install manifests
+
+One file per client, all at the repo root, because the repo itself is the plugin:
+
+| File | Client |
+|---|---|
+| `.claude-plugin/plugin.json` + `marketplace.json` | Claude Code plugin (MCP server + skill); Anthropic's directory reads `plugin.json` |
+| `.codex-plugin/plugin.json` + `codex.mcp.json` | Codex plugin; `codex.mcp.json` carries the startup/tool timeouts Codex needs |
+| `gemini-extension.json` | `gemini extensions install https://github.com/asbis/ShapeItUp` |
+| `server.json` | Official MCP Registry |
+
+Every one carries a version, and `pnpm release:check` fails until all of them match the release.
+
+The root `.mcp.json` is the dev config for this repo (it runs the local `dist/` under `mcpmon`). Because the repo root is also the plugin root, Claude Code loads it for plugin users too, before the plugin's own servers. It is harmless only because both name the server `shapeitup`, so the plugin's entry replaces the dev one. Keep the names identical.
### Any change under `packages/mcp-server/` MUST bump its own version
@@ -227,7 +243,7 @@ The release workflow publishes `@shapeitup/mcp-server` on every GitHub release.
Checklist when touching anything under `packages/mcp-server/src/` or its deps (`packages/core/`, etc. that get bundled in):
1. Bump `packages/extension/package.json` version (drives the release tag).
-2. Bump `packages/mcp-server/package.json` version in the same commit.
+2. Bump `packages/mcp-server/package.json` version in the same commit, along with every install manifest above.
3. Both versions should usually move in lockstep to keep diagnostics sane.
4. After the release lands, verify `npm view @shapeitup/mcp-server version` matches.
diff --git a/INSTALL.md b/INSTALL.md
index e94382b..f2b7496 100644
--- a/INSTALL.md
+++ b/INSTALL.md
@@ -59,13 +59,27 @@ For each client the user wants to register (ask them), do the following:
#### Claude Code CLI
-Preferred: use the CLI.
+Preferred: install the plugin. It brings the MCP server and the skill
+together, and `claude plugin marketplace update` keeps both current, so you
+can skip this client in Step 3.
+
+```bash
+claude plugin marketplace add asbis/ShapeItUp
+claude plugin install shapeitup@shapeitup
+```
+
+If `claude mcp list` already shows a `shapeitup` server, the user added it by
+hand earlier. Ask whether to keep that one or switch to the plugin; with both,
+every tool is listed twice. `claude mcp remove shapeitup` removes the old one.
+
+If `claude plugin` isn't available (older Claude Code), register the server
+alone:
```bash
claude mcp add shapeitup -s user -- npx -y @shapeitup/mcp-server
```
-Fallback if `claude mcp add` isn't available: merge this into `~/.claude.json`:
+Fallback if `claude mcp add` isn't available either: merge this into `~/.claude.json`:
```json
{
@@ -134,7 +148,14 @@ the Cursor snippet. Then tell the user to restart Claude Desktop.
#### Gemini CLI
-Create `~/.gemini/extensions/shapeitup/gemini-extension.json`:
+Preferred: install the extension from GitHub, which `gemini extensions update`
+can then keep current.
+
+```bash
+gemini extensions install https://github.com/asbis/ShapeItUp
+```
+
+Fallback if that fails: create `~/.gemini/extensions/shapeitup/gemini-extension.json`:
```json
{
@@ -172,7 +193,8 @@ 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
+If Claude Code is present and you registered the server with `claude mcp add`
+rather than the plugin, fetch `SKILL.md` from the URL in the table above
and write it to `~/.claude/skills/shapeitup/SKILL.md`. This gives Claude a
full Replicad API reference when working on `.shape.ts` files. Ask first.
@@ -211,8 +233,10 @@ so the user can troubleshoot.
To remove ShapeItUp from an MCP client, delete the `shapeitup` entry from the
relevant config file (for Codex, the `[mcp_servers.shapeitup]` table in
-`~/.codex/config.toml`), or run `claude mcp remove shapeitup` for Claude Code
-and `vibe mcp remove shapeitup` for Mistral Vibe. No global state is left
+`~/.codex/config.toml`), or run `claude plugin uninstall shapeitup@shapeitup`
+(or `claude mcp remove shapeitup`) for Claude Code,
+`gemini extensions uninstall shapeitup` for Gemini CLI 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/`, `~/.vibe/skills/shapeitup/` and
`~/.agents/skills/shapeitup/`.
diff --git a/README.md b/README.md
index ae158a2..11341f7 100644
--- a/README.md
+++ b/README.md
@@ -11,19 +11,52 @@
+
+ shapeitup.dev · Try it in your browser · Install
+
+
+
+
+
+
---
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 / Codex / 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
+## Install
+
+**Fastest: ask your agent.** Paste this into Claude Code, Codex, Cursor or any other coding agent:
+
+```text
+Install the ShapeItUp MCP server by following https://raw.githubusercontent.com/asbis/ShapeItUp/master/INSTALL.md
+```
+
+It finds the MCP clients on your machine and asks before it writes to any of their configs.
+
+[](https://cursor.com/install-mcp?name=shapeitup&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBzaGFwZWl0dXAvbWNwLXNlcnZlciJdfQ%3D%3D)
+[](https://insiders.vscode.dev/redirect/mcp/install?name=shapeitup&config=%7B%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40shapeitup%2Fmcp-server%22%5D%7D)
+
+### Claude Code
+
+As a plugin, which brings the MCP server together with the skill that teaches Claude the API, and updates with this repo:
+
+```bash
+claude plugin marketplace add asbis/ShapeItUp
+```
+
+```bash
+claude plugin install shapeitup@shapeitup
+```
+
+Or the MCP server on its own:
```bash
claude mcp add shapeitup -- npx -y @shapeitup/mcp-server
```
-That's it. `claude mcp add` registers the server in your Claude Code config so agent sessions pick it up automatically. See the [Claude Code MCP docs](https://docs.claude.com/en/docs/claude-code/mcp) for scoping options (`-s user` for all projects, `-s project` for just this repo).
+Pick one. With both, Claude sees every tool twice; `claude mcp remove shapeitup` drops the second. See the [Claude Code MCP docs](https://docs.claude.com/en/docs/claude-code/mcp) for scoping options (`-s user` for all projects, `-s project` for just this repo).
-## Install for Codex
+### Codex
```bash
codex mcp add shapeitup -- npx -y @shapeitup/mcp-server
@@ -47,7 +80,15 @@ For the Replicad API reference, save [`SKILL.md`](skills/shapeitup/SKILL.md) whe
mkdir -p ~/.agents/skills/shapeitup && curl -fsSL https://raw.githubusercontent.com/asbis/ShapeItUp/master/skills/shapeitup/SKILL.md -o ~/.agents/skills/shapeitup/SKILL.md
```
-## Install for Cursor / Claude Desktop / other MCP clients
+### Gemini CLI
+
+```bash
+gemini extensions install https://github.com/asbis/ShapeItUp
+```
+
+`gemini extensions update shapeitup` picks up new releases.
+
+### Cursor / Claude Desktop / other MCP clients
The generic MCP-config snippet:
@@ -84,6 +125,14 @@ 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).
+### The skill on its own
+
+The one-click buttons and the plain MCP configs above don't include the skill that teaches the agent the API. To add it to any agent that reads `SKILL.md` files (Cursor, Codex, Claude Code, Gemini and others):
+
+```bash
+npx skills add asbis/ShapeItUp
+```
+
Node 20+ required. No native build step; everything ships as WASM.
## What you get
@@ -125,7 +174,13 @@ export default function main({ width, depth, thickness, holeInset }: typeof para
}
```
-Then it calls `render_preview` and gets back a PNG it can inspect, plus bounding-box + volume metadata to sanity-check against the spec. If the user wants the holes bigger, the agent calls `tune_params` — no file rewrite needed.
+Then it calls `render_preview` and gets back a PNG it can inspect, plus bounding-box + volume metadata to sanity-check against the spec.
+
+
+
+
+
+If the user wants the holes bigger, the agent calls `tune_params` — no file rewrite needed.
## Running in CI / containers
diff --git a/codex.mcp.json b/codex.mcp.json
new file mode 100644
index 0000000..adfac17
--- /dev/null
+++ b/codex.mcp.json
@@ -0,0 +1,10 @@
+{
+ "mcpServers": {
+ "shapeitup": {
+ "command": "npx",
+ "args": ["-y", "@shapeitup/mcp-server"],
+ "startup_timeout_sec": 60,
+ "tool_timeout_sec": 180
+ }
+ }
+}
diff --git a/gemini-extension.json b/gemini-extension.json
new file mode 100644
index 0000000..0f91f9c
--- /dev/null
+++ b/gemini-extension.json
@@ -0,0 +1,11 @@
+{
+ "name": "shapeitup",
+ "version": "1.30.1",
+ "description": "Scripted CAD for AI agents: write parametric parts in TypeScript, render and check them, export STEP/STL/3MF.",
+ "mcpServers": {
+ "shapeitup": {
+ "command": "npx",
+ "args": ["-y", "@shapeitup/mcp-server"]
+ }
+ }
+}
diff --git a/packages/mcp-server/README.md b/packages/mcp-server/README.md
index dc4d70d..491a54a 100644
--- a/packages/mcp-server/README.md
+++ b/packages/mcp-server/README.md
@@ -16,6 +16,8 @@ npx -y @shapeitup/mcp-server
claude mcp add shapeitup -- npx -y @shapeitup/mcp-server
```
+Or install the plugin, which adds the skill that teaches Claude the API: `claude plugin marketplace add asbis/ShapeItUp`, then `claude plugin install shapeitup@shapeitup`. Use one or the other, not both.
+
### Codex
```bash
diff --git a/packages/mcp-server/package.json b/packages/mcp-server/package.json
index c3c56c9..1ab206e 100644
--- a/packages/mcp-server/package.json
+++ b/packages/mcp-server/package.json
@@ -1,6 +1,7 @@
{
"name": "@shapeitup/mcp-server",
"version": "1.30.1",
+ "mcpName": "io.github.asbis/shapeitup",
"description": "ShapeItUp MCP server — scripted CAD tools (Replicad/OpenCascade) for Claude Code, Codex, Cursor, Claude Desktop, and other MCP clients.",
"type": "module",
"bin": {
diff --git a/scripts/release-check.mjs b/scripts/release-check.mjs
index 0741386..8d774f6 100644
--- a/scripts/release-check.mjs
+++ b/scripts/release-check.mjs
@@ -77,42 +77,61 @@ if (ext.version !== mcp.version) {
pass("Extension and mcp-server versions match");
}
-// 5. Claude Code plugin entry must track the extension version.
-// `strict: false` means the marketplace entry IS the whole plugin definition,
-// so nothing else corrects a stale version here. It drifted 1.3.0 -> 1.23.0
-// unnoticed once already because no check looked at this file.
-for (const plugin of marketplace.plugins ?? []) {
- if (plugin.version !== ext.version) {
- fail(
- `.claude-plugin/marketplace.json plugin '${plugin.name}' is at ${plugin.version}, ` +
- `extension is at ${ext.version}. Bump the plugin entry to match.`,
- );
+// 5. Every install manifest must track the extension version. Each client
+// reads its own file, and nothing else corrects a stale one: the Claude
+// marketplace entry drifted 1.3.0 -> 1.23.0 unnoticed once because no check
+// looked at it. server.json must also match npm exactly — the registry
+// refuses a version npm doesn't have.
+const claudePlugin = read(".claude-plugin/plugin.json");
+const codexPlugin = read(".codex-plugin/plugin.json");
+const gemini = read("gemini-extension.json");
+const server = read("server.json");
+const manifestVersions = [
+ ...(marketplace.plugins ?? []).map((p) => [`.claude-plugin/marketplace.json plugin '${p.name}'`, p.version, ext.version]),
+ [".claude-plugin/plugin.json", claudePlugin.version, ext.version],
+ [".codex-plugin/plugin.json", codexPlugin.version, ext.version],
+ ["gemini-extension.json", gemini.version, ext.version],
+ ["server.json version", server.version, mcp.version],
+ ["server.json packages[0].version", server.packages?.[0]?.version, mcp.version],
+];
+for (const [label, actual, expected] of manifestVersions) {
+ if (actual !== expected) {
+ fail(`${label} is at ${actual}, expected ${expected}. Bump it to match.`);
} else {
- pass(`Plugin entry '${plugin.name}' matches extension version ${ext.version}`);
+ pass(`${label} is at ${expected}`);
}
+}
+if (mcp.mcpName !== server.name) {
+ fail(
+ `packages/mcp-server/package.json mcpName is '${mcp.mcpName}' but server.json names '${server.name}'. ` +
+ `The MCP Registry rejects the publish unless they match.`,
+ );
+} else {
+ pass(`mcpName matches server.json (${server.name})`);
+}
- // 6. Every declared skills path must resolve to a directory holding at
- // least one `/SKILL.md`. A skill is a DIRECTORY containing SKILL.md —
- // pointing at a bare SKILL.md, or at a path that doesn't exist, loads
- // nothing and fails silently at install time.
- const skillPaths = typeof plugin.skills === "string" ? [plugin.skills] : plugin.skills ?? [];
- for (const rel of skillPaths) {
- const dir = resolve(root, rel);
- if (!existsSync(dir)) {
- fail(`Plugin '${plugin.name}' declares skills path '${rel}' but ${dir} does not exist.`);
- continue;
- }
- const found = readdirSync(dir, { withFileTypes: true })
- .filter((e) => e.isDirectory() && existsSync(resolve(dir, e.name, "SKILL.md")))
- .map((e) => e.name);
- if (found.length === 0) {
- fail(
- `Plugin '${plugin.name}' skills path '${rel}' contains no /SKILL.md. ` +
- `Skills must be directories: ${rel}//SKILL.md`,
- );
- } else {
- pass(`Skills path '${rel}' resolves ${found.length} skill(s): ${found.join(", ")}`);
- }
+// 6. Every declared skills path must resolve to a directory holding at
+// least one `/SKILL.md`. A skill is a DIRECTORY containing SKILL.md —
+// pointing at a bare SKILL.md, or at a path that doesn't exist, loads
+// nothing and fails silently at install time. Claude Code scans `skills/`
+// by default; Codex is told to via its manifest.
+const skillPaths = new Set(["./skills"]);
+for (const manifest of [claudePlugin, codexPlugin]) {
+ for (const rel of [manifest.skills ?? []].flat()) skillPaths.add(rel.replace(/\/+$/, ""));
+}
+for (const rel of skillPaths) {
+ const dir = resolve(root, rel);
+ if (!existsSync(dir)) {
+ fail(`A plugin manifest declares skills path '${rel}' but ${dir} does not exist.`);
+ continue;
+ }
+ const found = readdirSync(dir, { withFileTypes: true })
+ .filter((e) => e.isDirectory() && existsSync(resolve(dir, e.name, "SKILL.md")))
+ .map((e) => e.name);
+ if (found.length === 0) {
+ fail(`Skills path '${rel}' contains no /SKILL.md. Skills must be directories: ${rel}//SKILL.md`);
+ } else {
+ pass(`Skills path '${rel}' resolves ${found.length} skill(s): ${found.join(", ")}`);
}
}
diff --git a/server.json b/server.json
new file mode 100644
index 0000000..216aa7e
--- /dev/null
+++ b/server.json
@@ -0,0 +1,23 @@
+{
+ "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
+ "name": "io.github.asbis/shapeitup",
+ "title": "ShapeItUp",
+ "description": "Scripted CAD for AI agents: TypeScript parts on OpenCascade WASM, rendered, checked, exported.",
+ "repository": {
+ "url": "https://github.com/asbis/ShapeItUp",
+ "source": "github",
+ "subfolder": "packages/mcp-server"
+ },
+ "websiteUrl": "https://shapeitup.dev",
+ "version": "1.30.1",
+ "packages": [
+ {
+ "registryType": "npm",
+ "identifier": "@shapeitup/mcp-server",
+ "version": "1.30.1",
+ "transport": {
+ "type": "stdio"
+ }
+ }
+ ]
+}