@nexart/mcp-server 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/CHANGELOG.md +53 -0
  2. package/CONTRIBUTING.md +56 -0
  3. package/LICENSE +202 -0
  4. package/NOTICE +14 -0
  5. package/README.md +340 -2
  6. package/SECURITY.md +76 -0
  7. package/THIRD_PARTY_NOTICES.md +111 -0
  8. package/dist/adapters.d.ts +16 -0
  9. package/dist/adapters.js +48 -0
  10. package/dist/approve-public.d.ts +2 -0
  11. package/dist/approve-public.js +65 -0
  12. package/dist/contracts.d.ts +48 -0
  13. package/dist/contracts.js +34 -0
  14. package/dist/create-confidential.d.ts +2 -0
  15. package/dist/create-confidential.js +34 -0
  16. package/dist/instrumentation/openai-worker.d.ts +1 -0
  17. package/dist/instrumentation/openai-worker.js +26 -0
  18. package/dist/instrumentation/openai.d.ts +51 -0
  19. package/dist/instrumentation/openai.js +197 -0
  20. package/dist/limits.d.ts +15 -0
  21. package/dist/limits.js +62 -0
  22. package/dist/lookup/contracts.d.ts +38 -0
  23. package/dist/lookup/contracts.js +22 -0
  24. package/dist/lookup/verify.d.ts +54 -0
  25. package/dist/lookup/verify.js +110 -0
  26. package/dist/network/client.d.ts +26 -0
  27. package/dist/network/client.js +188 -0
  28. package/dist/network/contracts.d.ts +104 -0
  29. package/dist/network/contracts.js +54 -0
  30. package/dist/network-tools.d.ts +5 -0
  31. package/dist/network-tools.js +32 -0
  32. package/dist/owner/create.d.ts +52 -0
  33. package/dist/owner/create.js +117 -0
  34. package/dist/owner/custody.d.ts +33 -0
  35. package/dist/owner/custody.js +200 -0
  36. package/dist/owner/host.d.ts +10 -0
  37. package/dist/owner/host.js +70 -0
  38. package/dist/owner/publisher.d.ts +21 -0
  39. package/dist/owner/publisher.js +27 -0
  40. package/dist/owner/reconcile.d.ts +16 -0
  41. package/dist/owner/reconcile.js +109 -0
  42. package/dist/receipts/contracts.d.ts +72 -0
  43. package/dist/receipts/contracts.js +33 -0
  44. package/dist/receipts/verify.d.ts +4 -0
  45. package/dist/receipts/verify.js +104 -0
  46. package/dist/record/contracts.d.ts +281 -0
  47. package/dist/record/contracts.js +70 -0
  48. package/dist/record/customer.d.ts +40 -0
  49. package/dist/record/customer.js +99 -0
  50. package/dist/record/policy.d.ts +46 -0
  51. package/dist/record/policy.js +67 -0
  52. package/dist/record/publication.d.ts +23 -0
  53. package/dist/record/publication.js +148 -0
  54. package/dist/record/record.d.ts +12 -0
  55. package/dist/record/record.js +93 -0
  56. package/dist/record/state.d.ts +44 -0
  57. package/dist/record/state.js +84 -0
  58. package/dist/record-tools.d.ts +10 -0
  59. package/dist/record-tools.js +85 -0
  60. package/dist/recover-confidential.d.ts +2 -0
  61. package/dist/recover-confidential.js +13 -0
  62. package/dist/results.d.ts +8 -0
  63. package/dist/results.js +83 -0
  64. package/dist/server.d.ts +2 -0
  65. package/dist/server.js +39 -0
  66. package/dist/stdio.d.ts +2 -0
  67. package/dist/stdio.js +104 -0
  68. package/dist/trust/lifecycle.d.ts +13 -0
  69. package/dist/trust/lifecycle.js +42 -0
  70. package/dist/trust/policy.d.ts +14 -0
  71. package/dist/trust/policy.js +6 -0
  72. package/dist/verify.d.ts +3 -0
  73. package/dist/verify.js +56 -0
  74. package/dist/write/approval.d.ts +5 -0
  75. package/dist/write/approval.js +95 -0
  76. package/dist/write/attest.d.ts +14 -0
  77. package/dist/write/attest.js +140 -0
  78. package/dist/write/config.d.ts +11 -0
  79. package/dist/write/config.js +12 -0
  80. package/dist/write/contracts.d.ts +229 -0
  81. package/dist/write/contracts.js +61 -0
  82. package/dist/write/post.d.ts +11 -0
  83. package/dist/write/post.js +105 -0
  84. package/dist/write/profile.d.ts +19 -0
  85. package/dist/write/profile.js +114 -0
  86. package/dist/write/seal.d.ts +3 -0
  87. package/dist/write/seal.js +49 -0
  88. package/dist/write-tools.d.ts +4 -0
  89. package/dist/write-tools.js +36 -0
  90. package/docs/age-version-compatibility.md +46 -0
  91. package/docs/architecture.md +72 -0
  92. package/docs/compatibility.md +163 -0
  93. package/docs/contracts.md +127 -0
  94. package/docs/examples/customer-claude-desktop.json +14 -0
  95. package/docs/examples/customer-consent.json +15 -0
  96. package/docs/examples/customer-custody.json +8 -0
  97. package/docs/examples/customer-policy.json +43 -0
  98. package/docs/licensing-review.md +109 -0
  99. package/docs/milestone-1-validation.md +110 -0
  100. package/docs/milestone-2.md +291 -0
  101. package/docs/milestone-3.2.md +291 -0
  102. package/docs/milestone-3.md +274 -0
  103. package/docs/milestone-4a.md +221 -0
  104. package/docs/milestone-4b1.md +220 -0
  105. package/docs/milestone-4b2.md +260 -0
  106. package/docs/public-default.md +263 -0
  107. package/docs/recording-schema-compatibility.md +46 -0
  108. package/docs/release.md +311 -0
  109. package/docs/security-fixes.md +47 -0
  110. package/docs/security.md +195 -0
  111. package/docs/standalone-acceptance.md +81 -0
  112. package/docs/validation.md +85 -0
  113. package/package.json +51 -4
  114. package/server.json +20 -0
@@ -0,0 +1,46 @@
1
+ # macOS age version compatibility
2
+
3
+ The owner confirmed that the 543-test package exposed all eight tools and the
4
+ corrected recording schema in Claude Desktop on macOS with Node 24. Local
5
+ recording then failed because Homebrew age reports `v1.3.2`, not `1.3.2`.
6
+
7
+ The version check now accepts either prefix form, parses numeric components,
8
+ and requires a stable release at least 1.2.1 and below 2.0.0. Malformed output,
9
+ prereleases, build suffixes, unsafe numeric components, executable failures and
10
+ timeouts fail closed. No raw process output is returned.
11
+
12
+ Safe recording diagnostics distinguish:
13
+
14
+ - `CUSTODY_CONFIG_MISSING`: no configured file or a missing file/ancestor.
15
+ - `CUSTODY_CONFIG_INVALID`: unreadable/invalid JSON, schema or file permissions.
16
+ - `ENCRYPTED_CUSTODY_CONFIGURATION_REQUIRED`: invalid runtime custody settings,
17
+ recipient, executable real path or directory permissions.
18
+ - `AGE_VERSION_UNSUPPORTED`: malformed or unsupported version output.
19
+ - `AGE_VERSION_CHECK_FAILED`: failed or timed-out version execution.
20
+
21
+ Configuration-loading classifications appear only as constant guidance alongside
22
+ the existing structured failure. They contain no paths or underlying exceptions.
23
+ The structured recording contract and certification defaults are unchanged.
24
+
25
+ Run isolated release validation with:
26
+
27
+ ```sh
28
+ node tests/validation/run.mjs --age-version
29
+ ```
30
+
31
+ Evidence and the new archive are written exclusively to
32
+ `generated-artifacts/age-version-validation/`. The 543-test recording-schema
33
+ archive is used as the frozen baseline and is not overwritten.
34
+
35
+ Regression tests use synthetic owner-only keys and a wrapper reporting `v1.3.2`
36
+ while delegating encryption/decryption to real age. No live Node submission or
37
+ production key is required. Both protocol revisions are checked through an
38
+ independent installation. These Linux tests do not replace the owner's macOS
39
+ local-only recording recheck.
40
+
41
+ On the Mac, install the new archive in the existing standalone installation
42
+ using the same package manager, restart Claude Desktop, and reconnect. Keep the
43
+ existing owner-only custody configuration and recipient. Use an explicit
44
+ `certification: {"mode":"local"}` synthetic recording first; expect confidential
45
+ creation, encrypted custody, valid local integrity and `submission: "not_sent"`.
46
+ Do not automatically retry Node submissions or change consent/policy controls.
@@ -0,0 +1,72 @@
1
+ # Implementation boundaries
2
+
3
+ The original offline verification path remains:
4
+
5
+ ```text
6
+ MCP host
7
+ → byte/depth input guard
8
+ → official MCP v2 serveStdio / StdioServerTransport
9
+ → McpServer tool schemas
10
+ → application size/complexity/step guards
11
+ → explicit SDK adapter dispatch
12
+ → pinned published NexArt verifier
13
+ → allowlisted, redacted result projection
14
+ → bounded structured output
15
+ → SDK protocol encoding + safe protocol diagnostics
16
+ ```
17
+
18
+ - `src/stdio.ts`: only the stdio entry point, pre-parse input guard, safe SDK
19
+ error output and process lifecycle.
20
+ - `src/server.ts`: MCP registration, including the separate network-tool registrations.
21
+ - `src/contracts.ts`: input/output contracts and public tool names.
22
+ - `src/limits.ts`: application policy limits and iterative JSON traversal.
23
+ - `src/adapters.ts`: direct published SDK calls and explicit family dispatch.
24
+ - `src/results.ts`: disclosure policy and separation of integrity/trust claims.
25
+ - `src/verify.ts`: shared orchestration invoked by MCP and unit tests.
26
+ - `tests/`: official vectors, positive fixtures, tampering/limits tests, real
27
+ MCP subprocess tests, reproducible benchmarks and clean-install check.
28
+
29
+ Milestone 2 adds a separate path, not a fallback in the offline adapters:
30
+
31
+ ```text
32
+ three new strict MCP tool contracts
33
+ → shared operation deadline / cancellation / semaphore
34
+ → fixed-origin exact-hash resolver or public manifest GET
35
+ → bounded decoded JSON + response contract + hash identity checks
36
+ → returned-bundle verifier OR published CER receipt signature verifier
37
+ → separate binding / identity / lifecycle / independently pinned trust
38
+ → allowlisted summaries (no evidence, envelopes, full receipts or key material)
39
+ ```
40
+
41
+ `src/network/` owns bounded fixed-origin reads and upstream contracts,
42
+ `src/lookup/` local public-projection verification, `src/receipts/` CER receipt
43
+ verification, and `src/trust/` server-controlled policy/lifecycle. No production
44
+ pins or historical exceptions are configured. See [Milestone 2](milestone-2.md).
45
+
46
+ Milestone 3 is additive: `src/write-tools.ts` registers zero, one or two tools
47
+ from owner configuration. `src/write/` contains strict inputs, SDK sealing,
48
+ confidential/public disclosure policies, a dedicated fixed-target bounded POST
49
+ adapter, safe attestation response checking and one-use local owner approvals.
50
+ `src/approve-public.ts` is a separate controlling-terminal command, never an MCP
51
+ tool. The original GET-only client is not expanded to POST. Its constructor
52
+ timeout type is widened to `number`; the original default remains 5 seconds.
53
+ See [Milestone 3](milestone-3.md) for approval/threat boundaries.
54
+
55
+ The public-default update resolves omitted visibility to public but leaves all
56
+ write/public capabilities off and retains every approval/disclosure check.
57
+ Confidential creation is a separate owner CLI (`src/create-confidential.ts` and
58
+ `src/owner/create.ts`), not an MCP tool. It uses published SDK commitments with
59
+ fresh salts and durably retains explicitly approved local recovery material
60
+ before exporting a CER. The owner C acceptance wrapper uses the existing MCP
61
+ attestation tool and requires administrator-provisioned Mac isolation for live
62
+ mode; preflight and synthetic approval validation remain offline. See
63
+ [public-default workflow and limitations](public-default.md).
64
+
65
+ The retired API and Canvas templates are archived locally, not dependencies.
66
+ No database,
67
+ backend route, web frontend or artifact preview is needed for a stdio service.
68
+ No NexArt SDK or Canonical Node source is modified.
69
+
70
+ Future milestones can add separately reviewed adapters and transport entry
71
+ points. They must not change the existing verification semantics or silently
72
+ expand this process's trust and disclosure boundaries.
@@ -0,0 +1,163 @@
1
+ # Compatibility matrix
2
+
3
+ ## Current release candidate
4
+
5
+ Release candidate: `@nexart/mcp-server@0.1.0`, Node 24.x, stdio only.
6
+ The release changelog and [version policy](release.md#versioning-and-release-management)
7
+ do not turn theoretical client compatibility into tested host acceptance.
8
+
9
+ The owner reported successful Claude Desktop/macOS acceptance with Node 24 and
10
+ Homebrew age 1.3.2, confidential creation/recovery, customer-delegated Node
11
+ certification and public verification. Linux automated validation covers both
12
+ MCP revisions below and a clean npm-installed package. Codex and custom stdio
13
+ applications may use the documented executable; individual acceptance is not
14
+ claimed. Windows is not validated. Replit's URL-based custom MCP integration
15
+ needs an HTTPS service, not this local stdio executable.
16
+
17
+ The complete accepted baseline is 578 passing tests. Current release runs are
18
+ independent evidence under `generated-artifacts/npm-release/`; see
19
+ [validation](validation.md). The owner/live evidence is separate from synthetic
20
+ test coverage. Anonymous public CER lookup and receipt verification were also
21
+ confirmed in the prior read-only audit; signer trust remains unapproved.
22
+
23
+ ## Historical milestone context
24
+
25
+ The dated milestone details below preserve provenance, not current host/live
26
+ acceptance status. Customer-delegated recording is documented in
27
+ [4B.2](milestone-4b2.md) and requires explicit setup/consent/policy, not a key alone.
28
+
29
+ The public-default update intentionally changes omitted attestation visibility
30
+ from private to public. Private callers must explicitly select private.
31
+ Public capability remains off and unapproved calls make no POST. All seven
32
+ read-only contracts, both SDK sealing modes, SDK/runtime pins and the fixture A
33
+ private procedure remain compatible. The recommended confidential owner creation
34
+ CLI is additive; ordinary `from_execution` does not silently acquire commitments.
35
+ See [the current workflow](public-default.md).
36
+
37
+ Milestone 3 keeps the SDK/runtime pins and seven default contracts below.
38
+ Opted-in sessions add two write tools; synthetic tests cover both protocol
39
+ revisions and the installed local owner-approval command. See
40
+ [Milestone 3](milestone-3.md) for identity, disclosure and production-readiness
41
+ boundaries. The Milestone 2 results below remain historical, not a claim of
42
+ live production write acceptance.
43
+
44
+ Validated on 2026-11-10. Direct dependency versions are exact in the manifest;
45
+ transitive resolution is frozen in the dedicated standalone-root pnpm lockfile.
46
+
47
+ ## Runtime and MCP packages
48
+
49
+ | Component | Pin / tested behaviour |
50
+ | --- | --- |
51
+ | Node.js | Tested 24.22.1; package supports the 24.x line only |
52
+ | pnpm | Tested 10.26.1 |
53
+ | TypeScript | 5.9.3 |
54
+ | `@modelcontextprotocol/server` | 2.4.0; official v2 package, not the v1 maintenance package |
55
+ | `@modelcontextprotocol/client` | 2.4.0, development/test only |
56
+ | `@modelcontextprotocol/core` | 2.4.0, explicit development pin |
57
+ | Zod | 4.6.7; SDK v2 requires Zod 4 |
58
+ | `@types/node` | 25.3.3; compile-time only, not a runtime-version claim |
59
+
60
+ The server/client package metadata requires Node >=20. The application narrows
61
+ support to tested Node 24.x. Optional AI SDK timestamp peers are not installed
62
+ and the RFC 3161 module is not imported.
63
+
64
+ ## MCP protocol support
65
+
66
+ The pinned SDK supports modern `2026-07-28` and these legacy initialization
67
+ revisions: `2025-11-25`, `2025-06-18`, `2025-03-26`, `2024-11-05`,
68
+ `2024-10-07`. Its exported legacy `SUPPORTED_PROTOCOL_VERSIONS` constant does
69
+ not enumerate the modern era.
70
+
71
+ | Client / revision | Status |
72
+ | --- | --- |
73
+ | Official v2 client, default legacy negotiation (`2025-11-25`) | All seven tools, positive/negative/redaction cases, clean close; development and installed executable |
74
+ | Official v2 client, pinned `2026-07-28` modern era | All seven tools, positive/negative/redaction cases, clean close; development and installed executable |
75
+ | Other SDK-supported legacy revisions | Available through SDK; not individually conformance-tested |
76
+ | Claude Desktop on macOS | Owner-reported successful live acceptance with Node 24 / age 1.3.2 |
77
+ | Codex / Claude Code / Cursor / VS Code | Stdio configuration possible; individual host acceptance not established |
78
+ | HTTP, SSE, hosted clients | Not implemented |
79
+
80
+ Modern connections do not use the legacy `initialize`/`ping` lifecycle.
81
+ The SDK handles protocol-era semantics; evidence-family dispatch never falls
82
+ back across NexArt versions. On modern tool errors, `resultType` must be
83
+ preserved when sanitizing diagnostic content.
84
+
85
+ ## NexArt record coverage
86
+
87
+ | Family | Version / protocol | Published authority |
88
+ | --- | --- | --- |
89
+ | `cer.ai.execution.v1` | SDK-supported V1, including 1.2.0 legacy tolerances and 1.3.0/1.3.1 | AI 1.4.0 `verifyCer` |
90
+ | `cer.ai.execution.v2` | V2 under 1.3.1 | AI 1.4.0 `verifyCerV2` |
91
+ | `cer.consequential.execution.v1` | Envelope 0.1 / snapshot schema 1 / protocol 1.3.1 | Consequential 0.1.0 `verifyCer` |
92
+ | `cer.governed.execution.v1` | Envelope 0.1 and 0.2; CAGE profile version 1; JCS | Governed 0.4.2 explicit V1/V2 verifier |
93
+ | `cer.project.bundle.v1` | SDK-supported Projects with AI V1, AI V2 or mixed steps | AI 1.4.0 `verifyProjectBundle` |
94
+
95
+ AI V1 leaves envelope-version validation to its SDK, including its specific
96
+ pre-protocol-vintage tolerance. Missing legacy protocol fields are
97
+ not silently rewritten by MCP; the SDK's `verifiedUnder`/relaxations show any
98
+ tolerance it exercised. Unknown explicit AI protocols fail in the SDK.
99
+
100
+ Unsupported families (including Code Mode and `cer.governed.execution.step.v1`)
101
+ are rejected. Project support does not extend to arbitrary mixed non-AI
102
+ families. Unsupported governed envelope versions are rejected before dispatch;
103
+ unknown governed profiles are rejected by the selected SDK.
104
+
105
+ ## Fixture provenance
106
+
107
+ - `tests/fixtures/ai/compat-vectors-v1.json` and `compat-vectors-v2.json`
108
+ are byte-for-byte copies from the published `@nexart/ai-execution@1.4.0`
109
+ npm tarball, including fixed certificate hashes. Project vectors in those
110
+ files are dispatched to the Project tool, not the single-CER tool.
111
+ - Governed fixtures were read from `artnames/governed-execution` at source
112
+ revision `c45cba5972157bbc872009b21cdf066cb97c05e2`:
113
+ `fixtures/golden-v2/cleartext-identity.json`,
114
+ `fixtures/golden-v2/confidential-metadata.json`, and
115
+ `fixtures/golden-cage/01_single_path_happy.json`.
116
+ They are not represented as npm-packaged fixtures. The npm metadata's
117
+ `gitHead` was not resolvable in that repository; validation is against the
118
+ installed published verifier, with no assertion that source equals release.
119
+ - Governed 0.1 and mixed AI Project integration inputs are generated with
120
+ official SDK constructors from these existing evidence fixtures.
121
+ - The consequential npm tarball includes no fixture directory. Its positive
122
+ integration fixture is generated by its official `createSnapshot`/`sealCer`
123
+ APIs using fixed test data. It is not an independent compatibility vector.
124
+ - No fixed upstream hash is regenerated to make a failing test pass. Private
125
+ keys and user data are not fixtures. Bundled upstream selective-disclosure
126
+ examples contain public test openings; runtime tools never accept or
127
+ return those openings.
128
+
129
+ Fixture status: the AI vector copies retain their recorded upstream origin.
130
+ The current governed `01_single_path_happy.json` explicitly records corrected
131
+ deterministic v4 identifiers and is a derived example, not a byte-identical
132
+ upstream fixture. These files remain outside the npm archive; upstream
133
+ redistribution permissions remain a separate gate in the rights review.
134
+
135
+ ## Milestone 2 network and receipt coverage
136
+
137
+ | Capability | Result / authority |
138
+ | --- | --- |
139
+ | Public CER resolver schema 1.0 | Synthetic valid/invalid responses, all declared identity hashes, incomplete public projection handling |
140
+ | Public Project resolver schema 1.0 | Local AI 1.4.0 `verifyProjectBundle`, requiring `projectHashValid === true`; no aggregate-result reliance |
141
+ | CER `attestation.receipt.v1` | AI 1.4.0 Ed25519 verifier; inline/public lookup; complete optional signed timestamp metadata |
142
+ | Receipt protocols 1.2.0 / 1.3.0 / 1.3.1 | Synthetic signatures verified; no custom runtime canonicalization |
143
+ | Project receipt | Explicitly unsupported; no CER reinterpretation |
144
+ | Exact kid / rotation / deprecated / revoked / unknown keys | Synthetic signature/trust/lifecycle cases; duplicate IDs rejected; no active-key fallback |
145
+ | Historical pre-restart receipt | Signature preserved; lifecycle unknown without separately approved exact-key provenance |
146
+ | Production trust bootstrap | No approved pin; discovery never establishes trust |
147
+ | Positive deployed resolver | Confirmed in prior read-only audit; distinct from historical synthetic milestone tests |
148
+ | Complete release regression | Accepted baseline 578/578; current candidate outcome in fresh release summary |
149
+
150
+ `tests/network-fixtures.mjs` generates ephemeral in-memory test-only keys;
151
+ no production signing key is used or retained. Trusted test fetch preloads
152
+ exercise real stdio without claiming positive live-service compatibility.
153
+ See [Milestone 2 acceptance](milestone-2.md).
154
+
155
+ Sources:
156
+
157
+ - https://ts.sdk.modelcontextprotocol.io/v2/
158
+ - https://ts.sdk.modelcontextprotocol.io/v2/serving/stdio
159
+ - https://ts.sdk.modelcontextprotocol.io/v2/protocol-versions
160
+ - https://registry.npmjs.org/@modelcontextprotocol/server/2.4.0
161
+ - https://registry.npmjs.org/@nexart/ai-execution/1.4.0
162
+ - https://registry.npmjs.org/@nexart/consequential-execution/0.1.0
163
+ - https://registry.npmjs.org/@nexart/governed-execution/0.4.2
@@ -0,0 +1,127 @@
1
+ # MCP contracts
2
+
3
+ ## Discovery
4
+
5
+ By default the server advertises seven tools. This page describes the four unchanged,
6
+ offline verification tools, all read-only, non-destructive, idempotent and
7
+ closed-world. The three new read-only tools have `openWorldHint:true`;
8
+ their separate contracts and network/trust boundaries are documented in
9
+ [Milestone 2](milestone-2.md). Annotations describe behaviour; they are not
10
+ security permissions. Two optional write tools are documented separately in
11
+ [Milestone 3](milestone-3.md). There are no file/URL resources or prompts.
12
+
13
+ | Tool | Published verifier |
14
+ | --- | --- |
15
+ | `nexart_verify_ai_cer` | `@nexart/ai-execution@1.4.0`: `verifyCer` / `verifyCerV2` |
16
+ | `nexart_verify_consequential_cer` | `@nexart/consequential-execution@0.1.0`: `verifyCer` |
17
+ | `nexart_verify_governed_execution` | `@nexart/governed-execution@0.4.2`: `verifyGovernedExecution` / `verifyGovernedExecutionV2` |
18
+ | `nexart_verify_project_bundle` | `@nexart/ai-execution@1.4.0`: `verifyProjectBundle` |
19
+
20
+ ## Original four tools: input
21
+
22
+ ```json
23
+ {
24
+ "type": "object",
25
+ "properties": { "bundle": {} },
26
+ "required": ["bundle"],
27
+ "additionalProperties": false
28
+ }
29
+ ```
30
+
31
+ `bundle` is inline JSON. It is intentionally not re-described with a second
32
+ copy of NexArt's schema. The published verifier is the authority for artifact
33
+ validation. This preserves SDK compatibility and avoids stripping fields
34
+ before integrity verification.
35
+
36
+ The envelope is strict. `privateKey`, `apiKey`, `openings`, `tenantId`, `path`,
37
+ `url` and every other extra envelope argument are rejected. Embedded evidence
38
+ may itself contain arbitrary producer-reported JSON. The server does not
39
+ interpret evidence strings as paths, URLs, commands or credentials.
40
+
41
+ ## Original four tools: output
42
+
43
+ The executable Zod contract is `src/contracts.ts`, advertised as each tool's
44
+ `outputSchema`. The legacy SDK wire encoding includes `structuredContent`
45
+ and a JSON text block. The modern SDK may change its wire representation;
46
+ the logical result is identical.
47
+
48
+ ```json
49
+ {
50
+ "contractVersion": "1",
51
+ "tool": "nexart_verify_ai_cer",
52
+ "family": "cer.ai.execution.v1",
53
+ "recordVersion": "0.1",
54
+ "protocol": "1.3.0",
55
+ "artifactIntegrity": "valid",
56
+ "reasonCode": "OK",
57
+ "sdk": {
58
+ "ok": true,
59
+ "code": "OK",
60
+ "errors": [],
61
+ "assurance": "strict",
62
+ "verifiedUnder": {
63
+ "protocolVersion": "1.3.0",
64
+ "canonicalization": "jcs-v1"
65
+ }
66
+ },
67
+ "checks": {
68
+ "nodeSignature": "not_performed",
69
+ "signerTrust": "not_established",
70
+ "timestampCryptography": "not_performed",
71
+ "confidentialOpenings": "not_performed",
72
+ "completeness": "not_established"
73
+ },
74
+ "limitations": ["Fixed statements explaining the scope of verification."]
75
+ }
76
+ ```
77
+
78
+ - `artifactIntegrity`: `valid`, `invalid`, or `not_performed`. A valid value
79
+ does not establish authenticity, truth, authorization or completeness.
80
+ - `reasonCode`: exact SDK code after verification, otherwise a named wrapper
81
+ failure (`INVALID_ARGUMENTS`, `UNSUPPORTED_RECORD_FAMILY`,
82
+ `UNSUPPORTED_RECORD_VERSION`, `SCHEMA_ERROR`, `INPUT_TOO_LARGE`,
83
+ `JSON_TOO_DEEP`, `JSON_TOO_COMPLEX`, `PROJECT_STEP_LIMIT`,
84
+ `NON_JSON_INPUT`, `CANCELLED`, `SDK_EXCEPTION`, `OUTPUT_LIMIT_EXCEEDED`,
85
+ or `PROJECT_HASH_NOT_VERIFIED`).
86
+ - `family`, `recordVersion`, `protocol`: allowlisted recognized values; `null`
87
+ for absent/unrecognized values. Unknown user strings are never echoed.
88
+ Governed protocol is reported as the SDK's bound `jcs-v1` canonical scheme;
89
+ it is not an invented numerical `protocolVersion`.
90
+ - `sdk`: `null` when verification did not run or raised an exception. Otherwise
91
+ an explicit disclosure projection, not a raw serialization of SDK internals.
92
+ Exact codes, boolean checks, step counts, verification provenance,
93
+ relaxations, verdict, governed check states and producer-identity status
94
+ are retained when present.
95
+ - Error/detail/warning arrays retain their count, replacing each string with
96
+ `REDACTED_DIAGNOSTIC`. Project step results preserve array order, `ok` and
97
+ code, with `index` replacing evidence identifiers. Thus SDK outcome parity
98
+ is exact while raw diagnostic text is intentionally not byte-identical.
99
+ - Project integrity requires both SDK `ok` and `projectHashValid === true`.
100
+ The SDK's structural, hash and per-step dimensions remain separate.
101
+ - `isError` is not used for invalid evidence. Bad MCP argument envelopes are
102
+ SDK-generated tool errors, sanitized at the stdio boundary; these may not
103
+ have structured verification output. Malformed JSON is ignored by the
104
+ official SDK parser, without echoing or logging its content.
105
+
106
+ There are no cryptographic authenticity or trusted timestamp claims in this
107
+ contract. An SDK confidentiality verdict is preserved as an SDK-scoped
108
+ integrity/commitment result, never reinterpreted as a Node signature.
109
+
110
+ ## Resource policy
111
+
112
+ | Limit | Value |
113
+ | --- | --- |
114
+ | Serialized tool arguments | 1,048,576 UTF-8 bytes |
115
+ | Stdio frame / SDK receive buffer | 1,081,344 bytes |
116
+ | Tool argument JSON depth | 64 |
117
+ | Pre-parse frame depth | 72, allowing for MCP envelope overhead |
118
+ | JSON values/containers | 25,000 |
119
+ | Keys per object / items per array | 4,096 |
120
+ | Project step registry | 100 |
121
+ | Logical structured output | 262,144 bytes |
122
+
123
+ No evidence is truncated. Exceeding application limits returns a structured
124
+ `not_performed` result. Exceeding the pre-parse frame/depth guard closes the
125
+ connection with exit status 1. The SDK receive-buffer cap can also reject a
126
+ single large batch of buffered messages. The output bound applies to each
127
+ logical result; legacy text plus structured content duplicate it on the wire.
@@ -0,0 +1,14 @@
1
+ {
2
+ "mcpServers": {
3
+ "nexart": {
4
+ "command": "/absolute/real/path/to/node",
5
+ "args": ["/absolute/path/to/consumer/node_modules/@nexart/mcp-server/dist/stdio.js"],
6
+ "env": {
7
+ "NEXART_ENABLE_RECORD": "true",
8
+ "NEXART_RECORD_CUSTODY_CONFIG": "/absolute/path/to/nexart/custody.json",
9
+ "NEXART_RECORD_CERTIFICATION_CONFIG": "/absolute/path/to/nexart/consent.json",
10
+ "NEXART_NODE_API_KEY": "REPLACE_LOCALLY_WITH_CUSTOMER_KEY_NEVER_IN_CHAT"
11
+ }
12
+ }
13
+ }
14
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "version": 1,
3
+ "mode": "customer_delegated",
4
+ "enabled": false,
5
+ "automaticNodeSubmissions": false,
6
+ "publicDisclosureAcknowledged": false,
7
+ "quotaConsumptionAcknowledged": false,
8
+ "revoked": false,
9
+ "expiresAt": "2030-01-01T00:00:00.000Z",
10
+ "accountContext": "REPLACE_ACCOUNT_LABEL",
11
+ "credentialContext": "REPLACE_KEY_LABEL",
12
+ "policyFile": "/absolute/path/to/nexart/policy.json",
13
+ "stateDirectory": "/absolute/path/to/nexart/attempts",
14
+ "approvalDirectory": "/absolute/path/to/nexart/approvals"
15
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "version": 1,
3
+ "directory": "/absolute/path/to/nexart/vault",
4
+ "ageExecutable": "/absolute/real/path/to/age",
5
+ "recipient": "REPLACE_WITH_OWNER_APPROVED_AGE_X25519_PUBLIC_RECIPIENT",
6
+ "ownerApproved": true,
7
+ "decryptionIdentityExcluded": true
8
+ }
@@ -0,0 +1,43 @@
1
+ {
2
+ "version": 1,
3
+ "id": "customer-recording",
4
+ "revision": 1,
5
+ "accountContext": "REPLACE_ACCOUNT_LABEL",
6
+ "credentialContext": "REPLACE_KEY_LABEL",
7
+ "credentialFingerprint": "REPLACE_WITH_SHA256_OF_CONFIGURED_KEY",
8
+ "destination": "https://node.nexart.io/api/attest",
9
+ "evidenceTypes": ["cer.ai.execution.v2"],
10
+ "captureSources": ["producer_supplied"],
11
+ "visibilities": ["public", "private"],
12
+ "requiredConfidentialFields": ["input", "output"],
13
+ "identityDisclosure": "forbid",
14
+ "nodeDisclosureProfile": "ai-v2-resolver-reviewed-2026-11",
15
+ "maximumCertifications": 10,
16
+ "periodStartsAt": "2026-11-12T00:00:00.000Z",
17
+ "periodEndsAt": "2026-11-13T00:00:00.000Z",
18
+ "expiresAt": "2026-11-13T00:00:00.000Z",
19
+ "revoked": false,
20
+ "readableFields": [
21
+ "/bundleType", "/certificateHash", "/createdAt", "/version",
22
+ "/snapshot/type", "/snapshot/protocolVersion", "/snapshot/executionSurface",
23
+ "/snapshot/executionId", "/snapshot/timestamp", "/snapshot/provider", "/snapshot/model",
24
+ "/snapshot/input/_redacted", "/snapshot/input/mode",
25
+ "/snapshot/input/commitmentScheme", "/snapshot/input/commitment", "/snapshot/inputHash",
26
+ "/snapshot/parameters/temperature", "/snapshot/parameters/maxTokens",
27
+ "/snapshot/parameters/topP", "/snapshot/parameters/seed",
28
+ "/snapshot/output/_redacted", "/snapshot/output/mode",
29
+ "/snapshot/output/commitmentScheme", "/snapshot/output/commitment", "/snapshot/outputHash",
30
+ "/snapshot/executionRole", "/snapshot/sdkVersion",
31
+ "/snapshot/confidential/scheme", "/snapshot/confidential/fields/0",
32
+ "/snapshot/confidential/fields/1",
33
+ "/protectedSet/stabilitySchemeId", "/protectedSet/protectedSetId",
34
+ "/protectedSet/protectedFields/0", "/protectedSet/protectedFields/1",
35
+ "/protectedSet/protectedFields/2", "/protectedSet/protectedFields/3",
36
+ "/protectedSet/protectedFields/4", "/protectedSet/protectedFields/5",
37
+ "/protectedSet/protectedFields/6", "/protectedSet/protectedFields/7",
38
+ "/protectedSet/protectedFields/8", "/protectedSet/protectedFields/9",
39
+ "/protectedSet/protectedFields/10", "/protectedSet/protectedFields/11",
40
+ "/protectedSet/protectedFields/12", "/protectedSet/protectedFields/13",
41
+ "/protectedSet/protectedFields/14"
42
+ ]
43
+ }
@@ -0,0 +1,109 @@
1
+ # Release-candidate rights review
2
+
3
+ ## Decision: npm rights reviewed; public configuration authorised
4
+
5
+ Artnames Ltd expressly confirmed ownership of the **original standalone NexArt
6
+ MCP Server code**, including applicable development contributions, and
7
+ authorised Apache License 2.0. That owner confirmation clears the original-code
8
+ gate. LICENSE contains the official Apache-2.0 text; NOTICE supplies the scoped
9
+ Copyright 2026 Artnames Ltd notice. Package metadata is now Apache-2.0.
10
+
11
+ This is not an extension of that confirmation to SDKs, Node, Verification
12
+ Terminal, upstream fixtures or other NexArt products. Their rights/notices are
13
+ unchanged. The owner authorised removal of private:true for final preparation
14
+ and designated security@nexart.io. The owner will test mailbox delivery/monitoring
15
+ and confirm npm authority before publication; the agent does not authenticate
16
+ or claim those checks complete. Excluded fixtures and private Git history are not npm gates.
17
+ The SDK notice issues below belong upstream, not to this unbundled tarball.
18
+ This technical provenance
19
+ review is not an independent legal opinion or a claim that all third-party
20
+ questions have been resolved.
21
+
22
+ ## Material and scope inventory
23
+
24
+ | Material | Evidence and remaining action |
25
+ | --- | --- |
26
+ | Original adapter `src/**`, original tests, documentation and release scripts | Ownership, applicable development contributions and Apache-2.0 authorisation expressly confirmed by Artnames Ltd; third-party portions remain excluded from this grant |
27
+ | AI `tests/fixtures/ai/compat-vectors-v1.json` / `compat-vectors-v2.json` | Published SDK-derived compatibility vectors; upstream manifest declares MIT, with no top-level licence file in inspected distribution. Preserve provenance; confirm redistribution permission/notices |
28
+ | Governed `tests/fixtures/governed/**` | Upstream-derived examples from the source revision recorded in THIRD_PARTY_NOTICES; one file explicitly describes corrected deterministic v4 identifiers. Do not claim all current files are byte-identical upstream copies. Confirm redistribution/derivative rights and notices |
29
+ | Generated synthetic integration inputs | Generated with official SDK constructors, not independent upstream vectors. Generation does not itself establish rights in incorporated upstream content |
30
+ | Runtime dependencies | External npm distributions, not vendored/bundled in MCP. AI internally bundles Noble; Governed includes a Google Apache schema. Preserve their distinct rights; see THIRD_PARTY_NOTICES |
31
+ | Retired preview scaffolding, attachments, validation archives | Excluded from npm. Do not infer permission to publish them or the entire workspace |
32
+ | NexArt Node, SDKs, Verification Terminal | Not relicensed or modified. Adapter imports published SDKs. No separate Node/Terminal implementation was identified among the inspected adapter runtime sources; that inspection is not proof of the entire historical rights chain |
33
+
34
+ Original code is authorised for Apache redistribution on the owner's confirmation.
35
+ Copied/derived vectors and dependencies cannot simply be
36
+ claimed as original Apache-only material; any applicable upstream grants,
37
+ conditions and notices must be respected. Existing notices must not be removed.
38
+ Npm excludes source/tests/fixtures/maps; its compiled original code is covered by
39
+ the scoped Apache grant. Public repository distribution has separate exposure
40
+ from the retained third-party fixtures and any other excluded workspace material.
41
+
42
+ ## Installed dependency declarations inspected
43
+
44
+ | Package(s) | Version(s) | Declared licence / installed evidence |
45
+ | --- | --- | --- |
46
+ | `@nexart/ai-execution`, `@nexart/consequential-execution`, `@nexart/governed-execution` | 1.4.0 / 0.1.0 / 0.4.2 | Exact public tarballs integrity-verified; MIT in registry and tarball manifests; no LICENSE/COPYING/NOTICE files. Noble MIT attributions in AI; Google Apache header in Governed |
47
+ | `@modelcontextprotocol/server`, `core`, `client` | 2.4.0 | Apache-2.0; installed LICENSE present |
48
+ | `zod` | 4.6.7 | MIT; installed LICENSE present |
49
+ | `typescript` | 5.9.3 | Apache-2.0; installed LICENSE.txt present, development only |
50
+ | `@types/node`, `undici-types` | 25.3.3 / 7.18.2 | MIT; installed LICENSE present, development only |
51
+ | `cross-spawn`, `eventsource-parser`, `eventsource`, `jose` | 7.0.6 / 3.1.1 / 3.0.7 / 6.2.16 | MIT; installed licence files present |
52
+ | `path-key`, `pkce-challenge`, `shebang-command`, `shebang-regex` | 3.1.1 / 5.0.1 / 2.0.0 / 3.0.0 | MIT; installed licence files present |
53
+ | `isexe`, `which` | 2.0.0 / 2.0.2 | ISC; installed LICENSE present |
54
+
55
+ This covers the installed locked development tree, not a promise that future npm
56
+ consumer transitive resolution is identical. No obvious conflicting declared
57
+ licence was identified, but metadata alone does not establish title or satisfy
58
+ every redistribution obligation. Review the actual applicable notices and
59
+ dependency graph for the final release. No dependency's legal text was removed
60
+ or copied into a new adapter licence.
61
+
62
+ ## Remaining evidence and owner actions
63
+
64
+ 1. **Complete:** owner ownership/rights confirmation for original adapter code
65
+ and applicable development contributions; scoped Apache licence and notice.
66
+ 2. **npm third-party review complete for this archive:** no SDK code, upstream
67
+ fixture files, source maps or Git history is physically shipped. Public MIT
68
+ declarations support external SDK use; no conflicting restriction was found.
69
+ Missing upstream notice files alone do not require extra MCP permission.
70
+ 3. **SDK-maintainer action, not an MCP npm gate:** add proper original MIT grant/
71
+ copyright notices and Noble/Google licence material to the affected SDK
72
+ distributions. MIT requires its copyright and permission notice in copies;
73
+ Apache requires its licence and applicable attribution/change/NOTICE handling.
74
+ No SDK has been modified or declared fully notice-compliant.
75
+ 4. **Public GitHub only:** confirm copied/derived fixture redistribution and
76
+ review historical/excluded material before making the repository public.
77
+ Keeping it private does not block Apache-licensed object-code npm distribution.
78
+ 5. **npm owner actions:** test the designated security@nexart.io mailbox and authenticate
79
+ an account authorised to create/publish @nexart/mcp-server, including 2FA.
80
+ ENEEDAUTH does not establish lack of permission; it means no account could
81
+ be checked. GitHub private reporting is optional if another real route exists.
82
+ 6. **Registry only:** namespace authority and service-side validation/publication
83
+ follow npm publication; consistent metadata is prepared, not registered.
84
+ 7. **Final preparation expressly authorised:** remove private:true and validate
85
+ a new archive while preserving the owner-side checks above. Do not reuse the
86
+ prior 589-test archive after packed files change.
87
+
88
+ ## Exact archive boundary
89
+
90
+ The inspected 589-test archive has SHA-256
91
+ `49969e90d40328238383a5899b48167d13217216492a77849c08ae183e87340b`.
92
+ It has 114 files: 41 compiled JS modules, 41 type declarations, 23 documentation/
93
+ setup-template files, and nine root files: package.json, server.json, README,
94
+ CHANGELOG, CONTRIBUTING, SECURITY, THIRD_PARTY_NOTICES, LICENSE and NOTICE.
95
+ The only standalone licence text is the original-code Apache-2.0 LICENSE.
96
+ NOTICE supplies Artnames attribution; THIRD_PARTY_NOTICES inventories external
97
+ dependencies/provenance. No third-party SDK implementation, fixture or third-party
98
+ licence file is vendored in it; SDK imports are unresolved until npm installs
99
+ those separate packages. Documentation examples are not upstream fixture files.
100
+ This report corrects the scope of earlier gates; it does not rewrite that
101
+ retained archive's documentation or claim it matches subsequent edits.
102
+
103
+ Official references: [npm SPDX declarations](https://docs.npmjs.com/cli/v11/configuring-npm/package-json/#license),
104
+ [MIT conditions](https://opensource.org/license/mit) and the included Apache
105
+ LICENSE. This is a distribution-boundary assessment, not a legal title guarantee.
106
+
107
+ The copyright year reflects this release preparation, not an invented earlier
108
+ history. Do not blanket-relicense all repository content or apply this grant to
109
+ any separate NexArt repository.