openpencil/packages/mcp
Vitali sharp8n 0ea0b1b4f0
Some checks failed
Build native contracts CI image / Publish native contracts image (push) Has been cancelled
chore: merge upstream/master into upstream-sync-2026-10
Bring the fork up to upstream v0.15.1 (637 commits). Conflicts resolved by
re-targeting the W4C delta onto upstream's restructured code and dropping
superseded changes:

- i18n: upstream split dialogs.json per feature; re-added webFontLoadFailed to
  the new fonts.json in all locales.
- automation: upstream moved the bridge into the MCP runtime and deleted
  EditorView.vue; re-added the served-build opt-in (?automation=1 /
  VITE_OPENPENCIL_AUTOMATION) with ?automationWs= and ?automationToken= via
  connectServedAutomation(), wired in WorkspaceView.
- fonts: kept the /__font-proxy fetch wrapper on top of upstream's
  browserWebFontFetch and re-enabled the Google provider in the web build.
- recovery/embed: kept auto-recover mode discarding snapshots (no dialog, no
  close prompt) and openFileReusingMatchingTab() for host pushes.
- io/capability: folded the cross-origin subframe guard into
  supportsFileSystemAccess()/pickBrowserSaveFile().
- embed bridge installed from boot.ts; MCP browserToken/tcpHost re-applied.
2026-10-08 23:21:00 +03:00
..
bin fix(mcp): restore node bin entrypoints removed by cleanup 2026-10-08 21:41:23 +03:00
src chore: merge upstream/master into upstream-sync-2026-10 2026-10-08 23:21:00 +03:00
tests feat(mcp): let MCP clients read only the selection, with a compact get_selection (#732) 2026-10-07 13:01:28 +00:00
AGENTS.md docs: route contributors through per-domain guides and ship npm license text (#785) 2026-09-29 01:02:06 +04:00
package.json feat(mcp): let MCP clients read only the selection, with a compact get_selection (#732) 2026-10-07 13:01:28 +00:00
README.md docs: route contributors through per-domain guides and ship npm license text (#785) 2026-09-29 01:02:06 +04:00
tsconfig.json feat(mcp): add local transport discovery 2026-07-25 21:29:03 +03:00
tsdown.config.ts feat(mcp)!: migrate to SDK v2 and Valibot 2026-09-14 00:54:13 +03:00

@open-pencil/mcp

Model Context Protocol server for OpenPencil. It lets MCP clients such as Claude Code, Cursor, and Windsurf inspect and edit designs through the running app, reusing the same tool definitions as the built-in AI chat.

npm install -g @open-pencil/mcp
openpencil-mcp        # stdio transport for MCP clients
openpencil-mcp-http   # Streamable HTTP transport for browser extensions and scripts

On macOS and Linux, local clients prefer a private Unix domain socket; Windows and unavailable sockets fall back to localhost TCP. File access is limited to the effective MCP root.

MIT License.