Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (zuiku-mcp) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
zuiku-mcp
Public preview release. Not open source. Use is subject to the included
LICENSE.txt.
zuiku-mcp is the primary MCP server package for Zuiku.
Use it when you want an AI client such as Codex CLI, Claude Code, Gemini CLI, VS Code, or Cursor to read and write Zuiku Markdown, Mermaid diagrams, and exports through MCP.
npx -y zuiku-mcp is the shared entrypoint that CLI clients, IDE MCP settings, and optional IDE extensions call behind the scenes. It is usually configured once and then launched automatically by the client.
Preview and licensing
zuiku-mcpis distributed as a public preview package for evaluation and internal workflow use- It is not open source, and no rights are granted except as stated in the included
LICENSE.txt - Personal use, evaluation use, and internal business workflow use are allowed, including use by employees, contractors, and agents acting on your behalf for those internal purposes
- Redistribution, distribution of modified versions, hosted-service use, resale, and unauthorized trademark use are prohibited
- Future versions may be provided under different terms; the included
LICENSE.txtapplies to the version you received
Quick start
Run this in the directory you want Zuiku to edit:
codex mcp add zuiku \
--env ZUIKU_MCP_ALLOWED_ROOTS=$(pwd) \
-- npx -y zuiku-mcpMore setup guides:
- Install:
https://zuiku.dev/install - Docs:
https://zuiku.dev/docs
Entry command
npx -y zuiku-mcpWhat it exposes
zuiku.version: report the running package/server version and update hintszuiku.open: open an existing Zuiku markdown file, create a new file whenpath + markdownare both given, or open Mermaid-only / canonical Markdown in a temp session backed by a localhost session hostzuiku.read: read current Markdown and hash before updatingzuiku.apply: write Mermaid-only or canonical Markdown back as normalized Zuiku Markdown with hash-based conflict protectionzuiku.export: export Markdown, PNG, or SVGzuiku.ddl_to_er: turn an upstream-acquired DDL string into ER diagram payloads
Version and update
Check the currently installed package version:
npx -y zuiku-mcp --versionCheck the latest published npm version:
npm view zuiku-mcp versionRun the latest package one-shot:
npx -y zuiku-mcp@latestUpdate a global install:
npm install -g zuiku-mcp@latestTypical usage
- Codex CLI / Claude Code / Gemini CLI: register it as an MCP server command
- VS Code / Cursor: point MCP settings at
npx -y zuiku-mcp - IDE extensions: optional helper path that still launches the same MCP server
Common environment variables
ZUIKU_MCP_ALLOWED_ROOTS: allowed file roots (:separated)ZUIKU_MCP_ENABLE_EDITOR_HOST:1to enable the localhost session host that bridges the web editor to local files (default:1)ZUIKU_MCP_OPEN_BROWSER: optional. Defaults to1, which opens the web editor afterzuiku.openand afterzuiku.applysaves. Set0only when you want a quieter setup that relies oneditorUrlZUIKU_MCP_EDITOR_HOST/ZUIKU_MCP_EDITOR_PORT: host bind settingsZUIKU_EDITOR_URL: override only. By default, Zuiku uses the local-origin editor athttp://127.0.0.1:<port>/editorZUIKU_MCP_EDITOR_APP_DIR: advanced override for the bundled local editor assets directory
Open behavior
zuiku.openreturns an exacteditorUrl- The default
editorUrltarget is the local-origin editor athttp://127.0.0.1:<port>/editor ZUIKU_EDITOR_URLis only for intentionally overriding that target, for example tohttps://zuiku.dev/editor- If your client does not open it automatically, open that exact
editorUrl - Do not open bare
/editor; it can show unrelated local state zuiku.open(path, markdown, openInBrowser=true)can create a new real file when the save path is already decidedzuiku.open(markdown, openInBrowser=true)can start a temp session when the save path is not decided yet- The result also includes
healthUrl, which is the first place to check if loading fails - The editor UI is served locally by default, and reads and writes the local markdown file through the localhost session host
- After a human edits the diagram in the editor, the AI should call
zuiku.read(path)again before applying the next update
Why the npm page shows GitHub links
homepagepoints to Zuiku's install guide because npm users usually need setup firstrepositorypoints to the source repository, so npm can show aCodelinkbugspoints to GitHub Issues, so npm can show an issue/report link- The published npm package ships the runnable artifact (
bin/,dist/,editor-app/) plus npm-facing docs files - Public npm distribution and public source-repository visibility are related but not the same decision; the current package intentionally links to the public source repo for preview visibility, transparency, and issue reporting
Notes
- Requires Node.js 20+
zuiku.versioncan be called from MCP clients to confirm the running build and show update hints- The default setup opens the web editor automatically; set
ZUIKU_MCP_OPEN_BROWSER=0only when you want a quieter chat or CI flow - When browser auto-open is enabled,
zuiku.applyopens or reuses the web editor session after save by default - In a quieter setup,
zuiku.apply(openAfterApply=true)can still request opening or reusing the web editor session after save - The published package includes the bundled local editor app used for the default local-origin
/editorflow - Discovery guides are exposed over MCP resources/prompts so AI clients can avoid external lookup
- For ER workflows, Zuiku converts the DDL string you give it; acquiring DDL itself belongs to the upstream AI environment or another tool
- After updating, restart the MCP client or IDE session so the new package is launched
- During preview, CLI and manual MCP setup are the source of truth; optional IDE extension listings can be added on top later
- Install guide:
https://zuiku.dev/install - Docs:
https://zuiku.dev/docs