znk-mcp

Geometry MCP server สำหรับ ZNKernel-II: รูปทรงพื้นฐาน การดำเนินการบูลีน การนำเข้า/ส่งออก STEP/STL และการวินิจฉัยความสามารถในการผลิตแบบสามค่าโดยมีหลักฐานประกอบ ต้องมีใบอนุญาต Kernel

GitHubลองใช้ MCP นี้ผู้สนับสนุน

เอกสาร

znk-mcp logo

znk-mcp

A zero-dependency Node.js MCP server (stdio, JSON-RPC 2.0) that exposes ZNKernel-II geometry as three-valued manufacturability verdicts: allow / reject / cannot_judge. Every verdict carries the rule id, rule version and the input file hash, so a result can be re-checked instead of taken on faith.

  • Try it with no license: ZNK_DEMO=1 replays 3 recorded samples (搂2).
  • Full geometry and adjudication need a ZNKernel-II installation + a customer license (搂3); the kernel is proprietary and is not bundled here.
  • Runtime: Node.js >= 18 (validated with Node v24.19.0) 路 no dependencies
  • Transport: newline-delimited JSON-RPC 2.0 on stdin/stdout 路 no network socket
  • Tools: 10 路 npm latest: znk-mcp@0.1.6 路 repo source: 0.1.6
  • Repo: https://github.com/haidi-ai/znk-mcp 路 npm: https://www.npmjs.com/package/znk-mcp

This is a tool layer, not an official DeepSeek plugin, not a DSH/Cordis plugin, and not an official Anthropic MCP server. It is a single server.cjs that speaks MCP over stdio and shells out to the official znk2_cli executable.


30 绉掕瘯鐢紙涓嶉渶瑕佸唴鏍?CLI锛?

Demo mode / 婕旂ず妯″紡 鈥?no kernel binary and no license. It replays three recorded, self-built samples (C01 / C05 / C06); it does not compute on your geometry, does not load the kernel and does not read a .lic file.

Windows PowerShell 鈥?copy these two commands:

$env:ZNK_DEMO = '1'
'{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-11-25","capabilities":{},"clientInfo":{"name":"pwsh","version":"0"}}}',
'{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"znk_capabilities","arguments":{}}}' | npx -y znk-mcp@0.1.6

macOS / Linux:

export ZNK_DEMO=1
printf '%s\n' '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-11-25","capabilities":{},"clientInfo":{"name":"sh","version":"0"}}}' '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"znk_capabilities","arguments":{}}}' | npx -y znk-mcp@0.1.6

Look for "ok": true and "mode": "demo" in the second response. To replay a verdict sample: znk_adjudicate {"sample":"C01"}. Full geometry needs the ZNKernel-II CLI and a customer license 鈥?see 搂3 and 搂13.


1. Install

Requirement: Node.js >= 18. The server itself has zero npm dependencies.

1.1 Windows / macOS / Linux 鈥?get the first znk_capabilities call working

Two things must be true before the first tool call:

  1. the MCP client can start this server (node + absolute server.cjs, recommended), and
  2. the server can find the ZNK2 CLI (ZNK2_CLI absolute path, or the binary on PATH).

Windows trap (T-1160): do not put "command": "npx" in an MCP client config. On Windows npx is a .cmd shim; clients that spawn without a shell get ENOENT/EINVAL and the server never starts. If it does start without ZNK2_CLI, the first znk_capabilities call returns CLI_NOT_FOUND. Use the node config below, or cmd /c npx.

Step 1 鈥?print the exact config for this machine

npm i -g znk-mcp@0.1.6
node "$(npm root -g)/znk-mcp/scripts/print-mcp-config.cjs"

Windows PowerShell:

npm i -g znk-mcp@0.1.6
node "$(npm root -g)\znk-mcp\scripts\print-mcp-config.cjs"

The script prints node, the absolute server.cjs, the CLI it found (if any), and a ready-to-paste mcpServers JSON.

Step 2 鈥?paste the printed JSON into the client. Recommended shape (Windows example):

{
  "mcpServers": {
    "znk": {
      "command": "C:\\Program Files\\nodejs\\node.exe",
      "args": ["C:\\Users\\<you>\\AppData\\Roaming\\npm\\node_modules\\znk-mcp\\server.cjs"],
      "env": {
        "ZNK2_CLI": "C:\\ZNK\\2.40\\znk2_cli.exe",
        "ZNK2_LICENSE_FILE": "C:\\ZNK\\customer.lic"
      }
    }
  }
}

Windows npx fallback (only if you cannot use the node form):

{
  "mcpServers": {
    "znk": {
      "command": "cmd",
      "args": ["/c", "npx", "-y", "znk-mcp@0.1.6"],
      "env": { "ZNK2_CLI": "C:\\ZNK\\2.40\\znk2_cli.exe", "ZNK2_LICENSE_FILE": "C:\\ZNK\\customer.lic" }
    }
  }
}

macOS / Linux: npx is directly executable, but node + absolute server.cjs is still the most deterministic:

{
  "mcpServers": {
    "znk": {
      "command": "node",
      "args": ["/usr/local/lib/node_modules/znk-mcp/server.cjs"],
      "env": {
        "ZNK2_CLI": "/opt/znk/2.40/znk2_cli",
        "ZNK2_LICENSE_FILE": "/opt/znk/customer.lic"
      }
    }
  }
}
PlatformCLI binary nameCLI install hintEnv fallback
Windowsznk2_cli.exeunzip the ZNKernel-II distribution; point ZNK2_CLI at the .exesetx ZNK2_CLI "C:\ZNK\2.40\znk2_cli.exe"
macOSznk2_clichmod +x the binary; point ZNK2_CLI at itexport ZNK2_CLI=/opt/znk/2.40/znk2_cli
Linuxznk2_clichmod +x; install libznkernel2.so next to it or set LD_LIBRARY_PATHexport ZNK2_CLI=/opt/znk/2.40/znk2_cli

ZNK2_CLI is resolved in this order: the configured value (absolute, or a bare name searched on PATH) 鈫?<cwd>/znk2_cli[.exe] 鈫?the package directory 鈫? <package>/znk/ 鈫?PATH. The resolved path and every path tried are included in the CLI_NOT_FOUND error, together with the platform-specific fix.

# demo mode: no license, no kernel binary 鈥?3 recorded samples
ZNK_DEMO=1 npx -y znk-mcp@0.1.6

# full mode: point at a ZNKernel-II distribution and your license
npx -y znk-mcp@0.1.6

Use the explicit version (@0.1.6) until 0.1.6 is the latest tag you are reading. npx -y znk-mcp installs the newest published version; demo mode requires znk-mcp >= 0.1.3 (the release that introduced ZNK_DEMO=1).


2. Demo mode 鈥?ZNK_DEMO=1 (no license needed)

Demo mode serves three recorded, self-built samples and nothing else. It does not load the kernel, does not read a .lic file and does not accept a user file. What it shows is the three-valued contract on real recorded output:

SamplePartallowrejectcannot_judge
C01120脳120脳10 mounting flange, 4脳脴10 through holes + 脴30 centre hole10010
C0560脳40脳20 pipe fitting, 脴20 cavity + 脴12 through hole758
C0650脳40脳30 closed thin-wall box, 0.8 mm walls479

The rows were produced by the official ZNKernel-II 2.29.1 distribution CLI (CLI 1.0.0, protocol znk2-cli/1, rule versions 1.0鈥?.3) and are replayed verbatim. demo.replay: true in the response says so explicitly.

Pipe two JSON-RPC lines into the server to see it (bash / macOS / Linux):

printf '%s\n' \
  '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-11-25","capabilities":{},"clientInfo":{"name":"curl","version":"0"}}}' \
  '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"znk_adjudicate","arguments":{"sample":"C05"}}}' \
  | ZNK_DEMO=1 npx -y znk-mcp@0.1.6

PowerShell:

$env:ZNK_DEMO = '1'
$req = @(
  '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-11-25","capabilities":{},"clientInfo":{"name":"pwsh","version":"0"}}}'
  '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"znk_adjudicate","arguments":{"sample":"C01"}}}'
) -join "`n"
$req | npx -y znk-mcp@0.1.6

Demo-mode surface:

  • znk_capabilities 鈫?the 3 samples and their summaries.
  • znk_adjudicate {"sample":"C01"|"C05"|"C06"} 鈫?the recorded verdict rows.
  • znk_adjudicate_rules 鈫?the rule ids present in the recordings.
  • Every other tool returns error.code = "DEMO_MODE" and does not touch the kernel.

Demo mode is free. The sample STEP files and recorded verdicts live in demo/ with their SHA-256 values; no customer part, customer name, internal path or license key is included.


3. Full mode 鈥?environment variables

The server never embeds, copies, prints or commits a license. It passes the environment it inherited to each znk2_cli subprocess.

VariableRequiredMeaning
ZNK2_CLIyes (unless znk2_cli is on PATH)Absolute path to znk2_cli.exe / znk2_cli. On Windows it must be the .exe, not a .cmd/.bat wrapper. Auto-discovery also checks cwd, the package dir and <package>/znk/.
ZNK2_LICENSE_FILEyes for kernel operationsAbsolute path to the customer .lic file. Missing -> CLI error 1004.
ZNK2_REVOKE_LISTrecommended / policy-dependentAbsolute path to the signed revocation list. Missing while revocation checking is required fails closed.
ZNK2_TIMEOUT_MSnoPer-tool timeout in ms, clamped to 1..60000; default 60000.
ZNK2_EXPORT_DIRnoDefault output directory when znk_export has no path.
ZNK2_ALLOWED_ROOTSnoPath-delimiter-separated allow-list for import/export paths.
ZNK_DEMOno1 / true enables demo mode (搂2); leave unset for full mode.

Do not put license contents in the repository, README, chat, logs or MCP configuration checked into git. Point ZNK2_LICENSE_FILE at a file outside the repository and keep that file's ACL restricted.

znk_capabilities answers without a license (license.status = missing); every geometry/adjudication/sketch call returns the CLI's 1004 until a license is configured.


4. MCP client configuration

{
  "mcpServers": {
    "znk": {
      "command": "node",
      "args": ["C:\\path\\to\\znk-mcp\\server.cjs"],
      "env": {
        "ZNK2_CLI": "C:\\path\\to\\znk2_cli.exe",
        "ZNK2_LICENSE_FILE": "C:\\path\\to\\znk2.lic",
        "ZNK2_REVOKE_LIST": "C:\\path\\to\\REVOKE-1.txt"
      }
    }
  }
}

Notes:

  • command: node works when node is on the client's PATH; otherwise use the absolute node.exe path.
  • Relative import/export paths resolve against the server process cwd; prefer absolute paths in tool arguments.
  • The client must use the MCP stdio transport. This server does not open a TCP port and does not use HTTP.
  • DSH: add it in the MCP server settings. It is not a Cordis plugin and has no cordis.patch.yml.
  • DeepSeek: this is not an official DeepSeek plugin; it is a standard MCP server that a DeepSeek-based MCP client can launch.

5. MCP protocol surface

MethodResult
initializeprotocolVersion, capabilities.tools.listChanged=false, serverInfo, instructions
notifications/initializednotification; no response
ping{}
tools/list{ "tools": [ {name, description, inputSchema}, ... ] } with exactly 10 tools
tools/call{ content: [{type:"text", text}], structuredContent, isError }

Everything else returns JSON-RPC -32601. Unknown tool names return -32602. Malformed JSON returns -32700.

Protocol-version negotiation: if the client requests one of 2025-11-25, 2025-06-18, 2025-03-26, 2024-11-05, 2024-10-07, that version is echoed; otherwise the server answers with its latest supported version 2025-11-25.

Tool result shape (MCP CallToolResult):

  • content[]: one text block with the pretty-printed JSON envelope.
  • structuredContent: the same envelope as an object.
  • isError: true only when the envelope has ok:false 鈥?adjudication rows whose verdict is cannot_judge are not transport errors.

No resources, prompts, sampling, logging, progress or pagination. tools/list does not return a nextCursor.


6. Tools

ToolWhat it doesMain arguments
znk_createCreate a box / cylinder / sphere / cone / torus; returns measurements, tessellation and a replayable recipe.primitive, params, tessellate?
znk_booleanunion, subtract (a-b), intersect on two recipes; returns measurements and a new recipe.operation, a, b, tessellate?
znk_describeVolume, area, bbox, centroid, topology counts, Euler characteristic, volume_source, watertight flag.solid, tessellate?
znk_importSTEP / IGES / DXF / DWG / STL / OBJ / ZNK import (content-probed); returns a chainable {kind:"import",file} recipe.path or text, format?, with_mass?
znk_exportSTL / OBJ / STEP export, with schema and unit options, round-trip stats, absolute output path.solid or file, format, path?, binary?, chord_tol?, angle_tol?, schema?, length_unit?
znk_adjudicateRun the kernel's rule registry and return raw allow/reject/cannot_judge rows. Demo mode: {"sample":"C01"|"C05"|"C06"}.solid or file, rule?, params?, tolerance?, otherBodies?, otherFiles?, sample?
znk_adjudicate_rulesList the rule ids the server knows and the three verdicts.none
znk_topologyBody-level B-rep counts and validity. Entity-level queries return explicit 1003.solid, entity?, entity_id?
znk_capabilitiesKernel/CLI version, ABI symbols, formats, license/protection status, limits. Demo mode lists the samples.none
znk_sketch_solve2D sketch constraint solve (single constraint or solve_system).request, batch?

Full descriptions and JSON schemas come from tools/list.

Rule-count note. znk_adjudicate's rule enum lists all 20 rule ids of the ZNKernel-II 2.29.1 registry 鈥?the same 20 ids the recorded demo samples replay; the list was regenerated from znk2_cli capabilities in 0.1.4. Older kernels expose fewer ids (2.28.1: 10): on those, call znk_adjudicate_rules first and pass only ids it returns, or omit rule to run every rule the kernel exposes.

Recipes and chaining

Every geometry-producing tool returns a recipe that can be passed back:

{"kind":"primitive","primitive":"box","params":{"lo":[0,0,0],"hi":[10,20,30]}}
{"kind":"boolean","op":"subtract","a":{"kind":"primitive"},"b":{"kind":"primitive"}}
{"kind":"import","file":"E:/path/to/part.step","format":"step"}

A whole previous tool result is accepted too: the CLI unwraps recipe / result.recipe.

Adjudication is three-valued

  • allow 鈥?the rule passed.
  • reject 鈥?the rule failed.
  • cannot_judge 鈥?undecided. Never mapped to allow, never counted as a pass; policy.cannot_judge says "undecided - NOT an allow; never treat as a pass".

The server does not add an allowed:true field, does not filter rows and does not turn cannot_judge into an error. Callers decide what to do with an undecided verdict.


7. Error codes

CLI/kernel codes are passed through unchanged in structuredContent.error.code.

CodeNameTypical cause
1001InvalidArgumentbad/missing field, unknown rule id, empty boolean result
1002OutOfRangevalue outside the accepted range
1003NotSupportedunsupported op/primitive/format; CLI-only topology entity query
1004EmptyInputmissing license file / empty input
1005SchemaMismatchpersisted payload/schema version mismatch
2001Degeneratedegenerate geometry; some parse failures
2002Singularsingular input
2003NoIntersectionbodies do not intersect
2004Coincidentcoplanar/coincident contact; unsupported boolean configuration
2005NotOnGeometryentity/point not on the geometry
2006TopologyInvalidvalidation failure
2007NotClosedopen shell / no solid handle
2008SelfIntersectingself-intersection / stale handle
2009BooleanFailedboolean could not be completed
2010FilletFailedfillet failure
2011ShellFailedshell/thickness failure
2012TessellationFailedtessellation failure
2013ConstraintUnsolvedsketch solver did not converge
2014ConstraintOverConstrainedover-constrained sketch
2015ConstraintUnderConstrainedunder-constrained sketch
2016tolerance exceededtolerance inflation guard (CLI extension)
2018I/Oimport file not found / unreadable (CLI extension)
3001BadHandleinvalid body handle
3002RebuildFailedparametric rebuild failed
3003UndoStackEmptynothing to undo
3004RedoStackEmptynothing to redo
4001ParseErrormalformed file/license/revocation data
4002UnsupportedFormatformat not supported
4003IoErrorread/write failure
4004VersionMismatchunsupported file/schema version
9001NumericFailurenumeric failure
9002NotImplementedfeature not implemented (e.g. sketch batch mode)
9999InternalErrorinternal error

Server-side synthetic codes:

CodeMeaning
DEMO_MODEtool needs the kernel, but the server runs with ZNK_DEMO=1
DEMO_MODE_INPUTdemo mode received a file/recipe instead of {"sample":...}
DEMO_SAMPLE_MISSINGa recorded demo sample file is unreadable
INVALID_ARGUMENTarguments rejected before calling the CLI
PATH_NOT_ALLOWEDpath outside ZNK2_ALLOWED_ROOTS
TIMEOUTznk2_cli exceeded ZNK2_TIMEOUT_MS and was killed
CLI_NOT_FOUNDZNK2_CLI cannot be spawned; the error lists every path tried, the platform, and the exact fix (absolute .exe on Windows; chmod +x on macOS/Linux)
CLI_NO_OUTPUTCLI exited without stdout
CLI_BAD_JSONCLI stdout was not JSON
CLI_STDIN_ERRORrequest could not be written to the CLI
OUTPUT_TOO_LARGECLI output exceeded 8 MiB
INTERNAL_ERRORunexpected server exception

JSON-RPC layer: -32700, -32600, -32601, -32602, -32603.

Timeouts

Each tool call is capped at 60 seconds (ZNK2_TIMEOUT_MS, clamped 1..60000). On expiry the child process is killed and the tool returns isError:true with code:"TIMEOUT".


8. Examples

node server.cjs < examples/01-create-describe.jsonl   # create -> describe -> adjudicate
node server.cjs < examples/02-step-import.jsonl      # import -> describe -> export

The JSONL files omit initialize for brevity; the server does not enforce initialization ordering, so piping them directly works.


9. Tests

node test/selftest.cjs

The self-test spawns the server over stdio and asserts 28 conditions: initialize/tools list/ping; exactly 10 tools and their names; create volume > 0; boolean subtract reduces that volume; describe; adjudication with every verdict in the three-value set and cannot_judge preserved; rule list; body-level topology; explicit 1003 for the unsupported entity-level query; capabilities; sketch solve; STL export + import recipe; CLI 1003 passthrough for an invalid primitive; -32601 for an unknown method; -32602 for an unknown tool.

The rule-count assertions are not hardcoded: they read the registry length from znk_capabilities (result.adjudicate.rules) and expect exactly that many rows and rule ids 鈥?10 on kernel 2.28.1, 20 on 2.29.1. The pass line is:

SELFTEST PASS n/n

where n is the assertion count of this build (28 in 0.1.4); the rule-count expectations move with the kernel registry instead of being pinned to 10.

Negative-path behaviour: ZNK2_TIMEOUT_MS=1 -> TIMEOUT; no ZNK2_LICENSE_FILE -> CLI 1004 (or DEMO_MODE when ZNK_DEMO=1); bad ZNK2_CLI -> CLI_NOT_FOUND.


10. Security and operational limits

  • No embedded license / key. License and revocation paths come only from the environment. The server logs only whether they are configured, never their values.
  • No network access. The server never opens a socket; it only spawns the configured CLI (demo mode does not even do that).
  • Path allow-list. ZNK2_ALLOWED_ROOTS (path-delimiter separated) confines import/export paths; PATH_NOT_ALLOWED is returned before spawning the CLI.
  • Import text cache. Inline text imports are written to <tmp>/znk-mcp-imports/ (or <first-allowed-root>/.znk-mcp-imports/); files older than 7 days are removed at startup.
  • Serialized CLI calls. Calls are queued one at a time; serial execution avoids spurious concurrent-license failures.
  • 8 MiB output cap and a 60 s timeout protect the client from runaway kernel calls.
  • Proprietary backend. ZNKernel-II is commercial software; this repository ships no kernel binary, no sample license and no key material.

11. Known limitations

  • Not a CAD modeler or GUI. No feature tree, no assemblies, no drawings, no interactive editing.
  • Not a CAE/FEA solver. No meshing, structural, thermal or flow analysis.
  • Not CAM / path planning. No toolpath, no post-processor, no machine simulation.
  • Demo mode replays recorded rows. It is not a fresh computation on your geometry; demo.replay: true marks every such response.
  • znk_topology is body-level only: znk2_cli does not expose zn2_entity_topology through its JSON ops, so entity / entity_id requests return explicit 1003 rather than fabricated adjacency or revision data.
  • znk_sketch_solve batch mode returns kernel 9002 on the official CLI; use the single-constraint or solve_system contract.
  • znk_import defaults to the fast path: volume, area, centroid and volume_source are null. Set with_mass:true to measure them.
  • Curved fallback volumes are approximated; check volume_source.
  • Relative paths resolve against the server process cwd; use absolute paths in client calls for reproducibility.
  • No progress notifications, cancellation propagation or streaming.

cannot_judge is a legitimate undecided outcome, not a pass and not a defect of the tool layer.


12. Repository layout

znk-mcp/
  server.cjs                 # zero-dependency MCP stdio server (all 10 tools)
  package.json               # metadata + scripts, no dependencies
  README.md
  LICENSE                    # MIT, wrapper layer only (kernel excluded)
  demo/
    README.md                # provenance of the recorded samples
    samples/                 # C01/C05/C06 .step + .verdicts.json (self-built)
  examples/
    01-create-describe.jsonl # create -> describe -> adjudicate
    02-step-import.jsonl     # import -> describe -> export
    sample.step              # 10x20x30 box, generated by znk2_cli (AP242)
  test/
    selftest.cjs             # self-test: 28 assertions; rule counts follow znk_capabilities

12.1 How releases are published (maintainers)

Releases are published by GitHub Actions through npm Trusted Publishing (OIDC). There is no NPM_TOKEN and no long-lived npm token in this repository or in CI.

  1. Bump version in package.json, commit, push main.
  2. Tag and push: git tag v<version> && git push origin v<version>.
  3. .github/workflows/publish.yml verifies the tag matches package.json, runs npm test, then npm publish --provenance --access public using the GitHub OIDC identity.

The npm side trust relationship is: type=github, file=publish.yml, repository=haidi-ai/znk-mcp, permissions=publish, stage publish (verify with npm trust list znk-mcp).

If a run fails with 403 Two-factor authentication is required, the npm account 2FA state changed; re-authorize with npm login --auth-type=web and npm trust github ..., which prints a browser URL to approve.

13. License and publication status

znk-mcp (the wrapper layer) is licensed under the MIT License 鈥?see LICENSE. The MIT grant covers server.cjs, package.json, README.md, demo/, examples/ and test/ only. It does not cover the ZNKernel-II kernel (znk2_cli), the ZNGL licensing / activation / revocation logic, customer .lic files, revocation lists or key material; those remain proprietary and are licensed separately under the ZNKernel-II EULA.

Demo mode is free and needs no license: it replays recorded sample verdicts and ships no kernel code. Commercial or production use of the geometry tools requires a ZNKernel-II license.

Release status (2026-11-29): znk-mcp@0.1.6 is the T-1160 fix release. It makes the first znk_capabilities call actionable when the ZNK2 CLI is missing (absolute-path resolution + per-platform fix in the error), documents the Windows npx .cmd trap, adds scripts/print-mcp-config.cjs, and states the trial route's GitHub-account requirement plus the email fallback. The tool surface is unchanged from 0.1.5.

Evaluation build / 璇勬祴鐗? This is an evaluation build for trial and evaluation only: it is not a quotation or a commercial offer (闈炴姤浠? and contains no customer data (涓嶅惈瀹㈡埛鏁版嵁). Real quotes and customer-specific trials are handled separately.

  • GitHub route (requires a GitHub account). Open a Trial request issue: https://github.com/haidi-ai/znk-mcp/issues/new?template=trial-request.yml. The form asks for company, part type, parts per day, contact and trial mode. If you are not signed in to GitHub, GitHub shows its login wall first.
  • No GitHub account? Email is the fallback. Send the same five fields to huishanzhao@126.com with subject ZNK 璇勪及璇曠敤鐢宠. We reply within 48 hours (business days, UTC+8). Do not post license keys, customer drawings or personal data in either channel.

Public GitHub repository: https://github.com/haidi-ai/znk-mcp. The npm files whitelist is server.cjs, README.md, LICENSE, demo/, examples/, test/, scripts/, package.json; the tarball contains no dist/, no *.lic file and no env files.