@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
package/CHANGELOG.md ADDED
@@ -0,0 +1,53 @@
1
+ # Changelog
2
+
3
+ Notable changes are recorded following [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
4
+ Version selection follows [Semantic Versioning](https://semver.org/) and the
5
+ [0.x policy and release checklist](docs/release.md#versioning-and-release-management).
6
+
7
+ ## [Unreleased]
8
+
9
+ Future changes belong here under Added, Changed, Deprecated, Removed, Fixed
10
+ or Security as applicable. Do not invent historical releases.
11
+
12
+ ## [0.1.0] — Initial public release
13
+
14
+ **Status: prepared release candidate, not published.** No publication date is
15
+ asserted. The owner must resolve legal/publication gates before releasing, then
16
+ finalise this status/date at the actual release cut before final validation.
17
+
18
+ ### Added
19
+
20
+ - MCP integrity verification for AI V1/V2, Consequential V1, Governed execution
21
+ envelopes 0.1/0.2 and AI Project Bundles using pinned published NexArt SDKs.
22
+ - Exact-hash public CER and Project Bundle lookup with bounded safe results.
23
+ - CER receipt Ed25519 verification with separate hash binding, Node identity,
24
+ key lifecycle and signer-trust results.
25
+ - Opt-in confidential AI V2 recording, complete age-encrypted recovery custody
26
+ and owner-only recovery verification.
27
+ - Customer-authorised automatic Node certification using customer-owned keys,
28
+ versioned consent, disclosure policy and durable local attempt limits.
29
+ - Explicit public/private certification and local-only intent, with public as
30
+ the default intent after authorisation and no silent fallback.
31
+ - Existing optional ordinary AI V2 sealing and legacy owner-approved attestation.
32
+ - Flat recording-tool discovery schema, with strict runtime branch validation;
33
+ owner-reported successful Claude Desktop/macOS live acceptance.
34
+ - macOS age version handling for stable prefixed/unprefixed versions, including
35
+ Homebrew `v1.3.2`, without relaxing custody checks.
36
+ - Standalone compiled npm distribution, `mcp-server` alias preserving existing
37
+ commands, MCP Registry metadata and independent packed-install validation.
38
+
39
+ ### Security
40
+
41
+ - Credentials and recovery material are not MCP argument/output surfaces.
42
+ Customer delegation intentionally does not claim same-user isolation.
43
+ - Production trust pins remain unapproved: valid receipt mathematics is not
44
+ automatically trusted production attestation. No producer authenticity,
45
+ completeness, envelope-signature or RFC 3161 verification claim is added.
46
+ - Original standalone MCP Server code is licensed Apache-2.0 on Artnames Ltd's
47
+ express ownership confirmation and authorisation; LICENSE and scoped NOTICE
48
+ are included without changing the runtime sources.
49
+ - Public npm configuration prepared under owner authorisation; not published.
50
+ Private reporting uses owner-designated security@nexart.io, with delivery/
51
+ monitoring and npm publishing authority to be checked by the owner.
52
+ Third-party code is not relicensed;
53
+ repository-only upstream fixtures remain excluded from npm.
@@ -0,0 +1,56 @@
1
+ # Contributing
2
+
3
+ ## Current status
4
+
5
+ This repository is preparing its first public release. Original standalone
6
+ MCP Server code is licensed Apache-2.0 on Artnames Ltd's express ownership
7
+ confirmation and authorisation, including applicable development contributions.
8
+ See LICENSE, NOTICE and THIRD_PARTY_NOTICES.md. Third-party material retains
9
+ its own terms; separate NexArt repositories are not relicensed. The npm package
10
+ is prepared for public npm distribution, not yet published. The GitHub repository
11
+ may remain private. The owner checks npm authority and security mailbox operation
12
+ before manual publication.
13
+
14
+ Contributions intentionally submitted for inclusion are governed by Apache-2.0
15
+ section 5 unless explicitly stated otherwise or covered by a separate agreement.
16
+ Confirm you have authority to contribute and identify third-party material.
17
+ No additional CLA/DCO, copyright assignment or support guarantee is invented.
18
+
19
+ ## Scope and review
20
+
21
+ - Preserve SDK wire semantics, explicit family dispatch and fail-closed results.
22
+ - Do not change cryptography, custody or certification authority as a packaging
23
+ change. New tools, hosted transports and client-specific integrations require
24
+ separate scope approval.
25
+ - Never copy NexArt Node/SDK/Verification Terminal implementation into this adapter
26
+ or relicense separate repositories. Identify upstream origin, licence and
27
+ permission for copied/derived material and preserve notices.
28
+ - Do not commit credentials, real customer CERs, policies, openings, decryption
29
+ identities, encrypted customer custody or validation outputs.
30
+ - Use synthetic fixtures only. Existing upstream vectors have unresolved
31
+ repository redistribution questions and are excluded from npm.
32
+ - Describe behaviour, compatibility impact, tests and any security limitations.
33
+ Report vulnerabilities privately under [SECURITY.md](SECURITY.md), not in a PR.
34
+
35
+ ## Local checks
36
+
37
+ Use Node 24, pnpm 10.26.1 and supported age for custody tests:
38
+
39
+ ```bash
40
+ pnpm install --frozen-lockfile --ignore-scripts
41
+ pnpm run build
42
+ pnpm run typecheck
43
+ pnpm test
44
+ pnpm run validate:release
45
+ ```
46
+
47
+ The release validator creates exclusive ignored evidence directories, a clean
48
+ compiled archive and a separate npm consumer. Do not overwrite historical
49
+ evidence or weaken owner-only filesystem checks for temporary test convenience.
50
+ No real provider/Node submissions or production credentials belong in tests.
51
+
52
+ Update [CHANGELOG.md](CHANGELOG.md) under Unreleased and assess the
53
+ [versioning policy](docs/release.md#versioning-and-release-management).
54
+ The repository owner manually approves versions, Git commits/tags/pushes,
55
+ npm/Registry publication and GitHub releases. No automatic publication workflow
56
+ or Git operation is part of validation.
package/LICENSE ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
package/NOTICE ADDED
@@ -0,0 +1,14 @@
1
+ NexArt MCP Server
2
+ Copyright 2026 Artnames Ltd.
3
+
4
+ Original NexArt MCP Server code, including applicable development contributions,
5
+ is licensed under the Apache License, Version 2.0, on the owner's express
6
+ confirmation and authorisation. See LICENSE.
7
+
8
+ This notice applies only to the original code of the standalone MCP Server.
9
+ It does not assert ownership of or relicense third-party dependencies, copied
10
+ or derived upstream fixtures, NexArt Canonical Node, separately maintained SDKs,
11
+ the Verification Terminal or other NexArt products.
12
+
13
+ Third-party material retains its own rights, licences and notices.
14
+ See THIRD_PARTY_NOTICES.md for provenance, exclusions and outstanding questions.
package/README.md CHANGED
@@ -1,3 +1,341 @@
1
- # Temporary Holding Version
1
+ # NexArt MCP Server
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ NexArt evidence verification, bounded public lookup and opt-in confidential AI
4
+ recording and customer-authorised Node certification over MCP stdio.
5
+
6
+ **Release candidate:** `@nexart/mcp-server@0.1.0`. The package remains
7
+ **prepared for public npm distribution; not yet published**. Original MCP Server code is
8
+ licensed under **Apache-2.0** on Artnames Ltd's express ownership confirmation
9
+ and authorisation; see [LICENSE](LICENSE), [NOTICE](NOTICE) and
10
+ [third-party exclusions](THIRD_PARTY_NOTICES.md). Public installation commands
11
+ below apply only after the owner publishes; no publication has occurred.
12
+
13
+ ## Relationship to NexArt
14
+
15
+ [NexArt's AI Evidence Layer](https://docs.nexart.io/docs/getting-started)
16
+ provides Certified Execution Records (CERs) and verification protocols. This
17
+ package exposes selected published NexArt SDK operations to MCP clients; it is
18
+ not the Canonical Node, an AI model provider or a hosted verification service.
19
+ The Canonical Node at `https://node.nexart.io` handles authorised certification
20
+ and public resolution. Local integrity verification remains separate from Node
21
+ certification and independently approved signer trust.
22
+
23
+ ## Capabilities
24
+
25
+ Seven read-only tools are available without credentials:
26
+
27
+ | Tool | Scope |
28
+ | --- | --- |
29
+ | `nexart_verify_ai_cer` | AI V1/V2 integrity using AI SDK 1.4.0 |
30
+ | `nexart_verify_consequential_cer` | Consequential V1 using SDK 0.1.0 |
31
+ | `nexart_verify_governed_execution` | Governed envelope 0.1/0.2 using SDK 0.4.2 |
32
+ | `nexart_verify_project_bundle` | AI Project Bundle V1, including Project hash verification |
33
+ | `nexart_lookup_cer` | Exact-hash public CER lookup and local integrity verification |
34
+ | `nexart_lookup_project_bundle` | Exact-hash public Project lookup and local verification |
35
+ | `nexart_verify_node_receipt` | CER receipt signature, hash binding, Node identity, lifecycle and separate signer trust |
36
+
37
+ The original four verification tools operate offline and take `{bundle}`.
38
+ Lookup and receipt tools use their own exact-hash/receipt contracts and bounded
39
+ reads from the fixed `https://node.nexart.io` origin. Inline receipt verification
40
+ still requires the online key manifest. No arbitrary URL or filesystem input is exposed.
41
+
42
+ Opt-in `nexart_record_execution` creates confidential AI V2 evidence from
43
+ producer-supplied execution data and retains complete age-encrypted recovery
44
+ material in owner-configured custody. It can automatically certify with Node
45
+ using the customer's API key **only after explicit initial consent and bounded
46
+ disclosure/budget policy setup**. A key alone never enables submission.
47
+ Omitted certification intent selects Node/public; explicit private and local-only
48
+ modes remain available. Missing authorisation returns setup-required, not a
49
+ silent local/private fallback. No per-CER human prompt is required in delegated mode.
50
+
51
+ Use [customer setup and consent examples](docs/milestone-4b2.md),
52
+ [encrypted custody, recovery and provider instrumentation](docs/milestone-4b1.md)
53
+ and [age compatibility](docs/age-version-compatibility.md).
54
+ The recording tool is not automatic observation of all client activity.
55
+ Its MCP provenance is `producer_supplied`, not authenticated provider evidence.
56
+
57
+ Legacy opt-in `nexart_seal_ai_v2` and `nexart_attest_cer` remain separate,
58
+ with their existing [write contracts](docs/milestone-3.md) and owner-approval
59
+ requirements. Legacy ordinary sealing does not silently become confidential.
60
+ The stricter [isolated-owner mode](docs/milestone-4a.md) remains separate from
61
+ customer-authorised delegation; ordinary delegated setup needs no Mac root policy.
62
+
63
+ ## Requirements
64
+
65
+ - **Node.js 24.x**; automated validation used 24.22.1.
66
+ - A client that can launch an MCP **stdio** subprocess.
67
+ - For confidential recording/recovery only: a configured absolute `age` path,
68
+ supported stable age **>=1.2.1 and <2**, owner-protected custody and recipient.
69
+ Both `1.3.2` and Homebrew's `v1.3.2` version output are accepted.
70
+ - No Node key, database, hosted service, Replit workspace, pnpm or TypeScript
71
+ is needed for an installed package's default verification tools.
72
+
73
+ ## Install and configure
74
+
75
+ ### After public npm release
76
+
77
+ ```bash
78
+ npm install @nexart/mcp-server@0.1.0
79
+ ```
80
+
81
+ Launch the installed `node_modules/.bin/nexart-mcp-server` (or its `mcp-server`
82
+ alias), with Node 24 on PATH. For clients that use an `mcpServers` configuration:
83
+
84
+ ```json
85
+ {
86
+ "mcpServers": {
87
+ "nexart": {
88
+ "command": "npx",
89
+ "args": ["--yes", "--package=@nexart/mcp-server@0.1.0", "nexart-mcp-server"]
90
+ }
91
+ }
92
+ }
93
+ ```
94
+
95
+ ### Claude Desktop
96
+
97
+ For Claude Desktop on macOS, add the `mcpServers` block above to
98
+ `~/Library/Application Support/Claude/claude_desktop_config.json`, preserving
99
+ other configured servers, and fully restart Claude Desktop. This example enables
100
+ only the seven read-only tools. If desktop PATH resolution fails, install locally
101
+ and use the absolute executable path, with an empty `args` array.
102
+ The [delegated recording example](docs/examples/customer-claude-desktop.json)
103
+ and [setup guide](docs/milestone-4b2.md) add recording/custody/consent settings.
104
+ Do not enable certification until the owner has approved those settings.
105
+
106
+ ### Generic stdio clients
107
+
108
+ The explicit executable avoids client ambiguity. The `mcp-server` alias also
109
+ supports npm's default executable selection:
110
+
111
+ ```bash
112
+ npx --yes @nexart/mcp-server@0.1.0
113
+ ```
114
+
115
+ An idle server waits for MCP messages; it is not an interactive terminal UI.
116
+ Use an absolute Node/executable path if a desktop host does not inherit your
117
+ terminal PATH. Do not launch through `pnpm start`: script banners may corrupt
118
+ protocol stdout. Application diagnostics go to stderr.
119
+
120
+ No `env` block is needed for the seven default tools. Configure opt-in recording,
121
+ encrypted custody and delegated certification using the setup guide, not model
122
+ arguments or chat. Keep credentials, identities and recovery material out of
123
+ client-visible evidence and source control.
124
+
125
+ ### Before release: local archive
126
+
127
+ ```bash
128
+ pnpm install --frozen-lockfile --ignore-scripts
129
+ pnpm run validate:release
130
+ # Use the archive path printed by validation, in a separate consumer:
131
+ npm install /absolute/path/to/nexart-mcp-server-0.1.0.tgz
132
+ ```
133
+
134
+ The archive contains compiled runtime/types, documentation, Registry metadata
135
+ and notices. Source, tests, fixtures, source maps, workspace configuration,
136
+ credentials and recovery material are excluded. Consumers need no repository.
137
+
138
+ ## Public CER lookup and verification
139
+
140
+ Invoke `nexart_lookup_cer` with an exact public certificate hash:
141
+
142
+ ```json
143
+ {
144
+ "certificateHash": "sha256:0000000000000000000000000000000000000000000000000000000000000000"
145
+ }
146
+ ```
147
+
148
+ This illustrative hash is not a promised live record. Use a known public hash.
149
+ Then call `nexart_verify_node_receipt` separately:
150
+
151
+ ```json
152
+ {
153
+ "source": "public_lookup",
154
+ "certificateHash": "sha256:0000000000000000000000000000000000000000000000000000000000000000"
155
+ }
156
+ ```
157
+
158
+ Lookup returns bounded safe summaries, not full evidence or openings. A private,
159
+ hidden, deleted or absent record is not anonymously resolvable; a missing result
160
+ is not proof of invalid integrity. To verify an exported CER offline, pass its
161
+ complete JSON as `bundle` to `nexart_verify_ai_cer`. Project lookup instead takes
162
+ `projectHash` through `nexart_lookup_project_bundle`.
163
+
164
+ The [public verifier](https://verify.nexart.io/) can inspect supplied/public
165
+ evidence. Public CER links use `https://verify.nexart.io/c/{certificateHash}`;
166
+ Project links use `/p/{projectHash}`. Its capabilities and trust policy are
167
+ separate from this MCP adapter's limited receipt checks.
168
+
169
+ ## Record an AI execution
170
+
171
+ The host or integration must **explicitly invoke** `nexart_record_execution`.
172
+ Installation does not intercept or capture every model invocation, conversation
173
+ or coding-agent action. Supply truthful execution data; recording is not proof
174
+ that the claimed provider/model actually produced it.
175
+
176
+ First enable `NEXART_ENABLE_RECORD=true` in trusted host configuration and set
177
+ `NEXART_RECORD_CUSTODY_CONFIG` to an absolute owner-only custody configuration.
178
+ Provision the public age recipient and protected custody directory using the
179
+ setup guide; keep the decryption identity outside the agent-accessible boundary.
180
+ Use local-only recording first, without any Node key:
181
+
182
+ ```json
183
+ {
184
+ "kind": "execution",
185
+ "execution": {
186
+ "executionId": "owner-selected-unique-id",
187
+ "timestamp": "2026-11-13T12:00:00.000Z",
188
+ "provider": "producer-declared",
189
+ "model": "producer-declared",
190
+ "input": "synthetic input",
191
+ "output": "synthetic output",
192
+ "parameters": {"temperature": 0, "maxTokens": 8, "topP": null, "seed": null},
193
+ "executionRole": "advisory"
194
+ },
195
+ "createdAt": "2026-11-13T12:00:01.000Z",
196
+ "certification": {"mode": "local"}
197
+ }
198
+ ```
199
+
200
+ Replace sample identifiers/timestamps with the actual execution metadata.
201
+ Sensitive fields receive fresh SDK commitments, while complete recovery material
202
+ is retained with age encryption. Readable metadata still needs disclosure review.
203
+ Use the owner-only `nexart-recover-confidential` command and the recovery guide;
204
+ never return the decryption identity, plaintext or openings through MCP.
205
+ Losing recovery material can make later disclosure impossible.
206
+
207
+ ### Customer-owned key and automatic certification
208
+
209
+ 1. Obtain your own NexArt API key through your account at
210
+ [nexart.io](https://nexart.io/). Do not use a shared publisher key.
211
+ 2. Inject `NEXART_NODE_API_KEY` using a trusted host/secret-store launcher.
212
+ Do not paste keys into prompts, tool arguments, tracked configuration or logs.
213
+ A desktop JSON `env` entry stores the key in plaintext on disk; if used,
214
+ restrict access and accept that limitation explicitly.
215
+ 3. Set `NEXART_RECORD_CERTIFICATION_CONFIG` to an owner-only versioned consent
216
+ file, with policy/state/approval paths from the [customer setup guide](docs/milestone-4b2.md).
217
+ 4. Explicitly acknowledge automation, public disclosure and quota consumption.
218
+ Configure the allowed visibility, credential fingerprint, readable fields,
219
+ validity/expiry and maximum certification attempts.
220
+ 5. Restart the host. After authorisation, omitting `certification` requests
221
+ automatic Node/public certification. Use
222
+ `{"mode":"node","visibility":"private"}` for private Node certification,
223
+ or `{"mode":"local"}` for no Node operation. Local mode rejects visibility.
224
+
225
+ Consent and policy are rechecked before submission; expiry, revocation, missing
226
+ configuration, mismatches and exhausted limits fail closed. There is no silent
227
+ fallback, automatic POST retry or per-CER human prompt in delegated mode.
228
+ Ambiguous outcomes require reconciliation rather than blind resubmission.
229
+ Local limits count reserved attempts, not only successful certifications.
230
+ They are not server-enforced account quotas or a hard financial cap; Node key
231
+ permissions and account limits must be managed separately. Rotation must preserve
232
+ the applicable policy/account attempt history. Same-user code that obtains the
233
+ key can bypass local policy by calling Node directly.
234
+
235
+ Public/private visibility controls Node access, not whether protected content is
236
+ committed. Confidential CERs can be public or private. Public metadata may be
237
+ cached permanently; review it before enabling automatic public certification.
238
+
239
+ ## Clients and platforms
240
+
241
+ - **Claude Desktop on macOS:** owner-reported successful live acceptance with
242
+ Node 24 and Homebrew age 1.3.2: tool discovery, confidential creation, encrypted
243
+ recovery, customer-authorised Node certification and public verification.
244
+ - **Official MCP client 2.4.0:** automated installed-process coverage for legacy
245
+ `2025-11-25` and modern `2026-07-28`, including errors, redaction and shutdown.
246
+ - **Linux:** automated package and synthetic integration validation.
247
+ - **Codex / Claude Code / other stdio clients / enterprise applications:**
248
+ configure the equivalent subprocess command in the host's format. Individual
249
+ host acceptance is not claimed. No remote multi-tenant service is included.
250
+ - **Replit:** developers can install the Node package inside a project.
251
+ Replit Agent's documented custom MCP integration accepts an HTTPS endpoint;
252
+ this stdio-only package is not directly connectable through that URL-based UI.
253
+ A separately approved hosted transport/bridge would be needed.
254
+ - **Windows:** not validated; recording/custody relies on POSIX ownership,
255
+ permissions and external age. Do not infer Windows support from npm availability.
256
+
257
+ MCP Registry listing enables discovery, not automatic installation or approval
258
+ in every client. The intended identity is
259
+ `io.github.artnames/nexart-mcp-server`; registration and namespace authorisation
260
+ remain separate release gates.
261
+
262
+ ## Assurance and limitations
263
+
264
+ Integrity is not proof that an execution occurred, that content is true, or that
265
+ the history is complete. Receipt signature validity, hash binding, Node identity,
266
+ key lifecycle and signer trust are distinct results. **No production key pins
267
+ or historical exceptions are approved**: a valid production receipt may report
268
+ `UNAPPROVED_KEY` / signer trust not established. Manifest discovery is not trust approval.
269
+
270
+ Verification-envelope signatures and RFC 3161 timestamp cryptography are not
271
+ verified. Project receipts, authenticated producers and completeness are not
272
+ established. Recovery verification requires the complete retained recovery set.
273
+
274
+ Public certification can permanently disclose readable metadata, consume quota
275
+ and persist evidence. Commitments protect selected fields, not all metadata.
276
+ Encryption at rest does not hide plaintext from an agent that already handled it.
277
+ Same-UID agents may read credentials or modify local policy; local budgets are
278
+ not Node-enforced account quotas. See [security boundaries](docs/security.md).
279
+
280
+ ## Development and release validation
281
+
282
+ ```bash
283
+ pnpm install --frozen-lockfile --ignore-scripts
284
+ pnpm run build
285
+ pnpm test
286
+ pnpm run validate:release
287
+ ```
288
+
289
+ `pnpm test` covers both top-level and validation test directories. Release
290
+ validation independently installs/builds a temporary checkout, runs the complete
291
+ suite (578 accepted baseline tests), packs with npm, installs a production-only
292
+ consumer and checks both MCP revisions, all existing executable paths, encrypted
293
+ recovery and npm's implicit binary discovery. No production Node submissions
294
+ or credentials are used. Every run writes a new directory under
295
+ `generated-artifacts/npm-release/`; historical evidence is never overwritten.
296
+
297
+ See [validation](docs/validation.md), [release and publication procedure](docs/release.md),
298
+ [compatibility and provenance](docs/compatibility.md), [contracts](docs/contracts.md)
299
+ and [third-party notices and unresolved permissions](THIRD_PARTY_NOTICES.md).
300
+ Licensing and final publication require explicit owner approval.
301
+
302
+ ## Troubleshooting
303
+
304
+ | Symptom | Check |
305
+ | --- | --- |
306
+ | Executable not found / unsupported Node | Use Node 24 and an absolute executable path; desktop PATH may differ from Shell |
307
+ | `npx` waits without displaying a prompt | Expected for stdio: connect an MCP client, rather than typing shell commands into the server |
308
+ | Recording tool missing | Set `NEXART_ENABLE_RECORD=true` in host configuration and restart the client |
309
+ | Custody setup or age version error | Check the absolute age path, stable >=1.2.1 <2 version, owner-only modes/ancestors and approved recipient configuration |
310
+ | Certification reports setup-required/denied | Check consent, policy expiry/revocation, fingerprint, allowed fields/visibility and durable attempt limits; a key alone is insufficient |
311
+ | Node outcome unknown | Retain custody/attempt records and follow reconciliation; do not automatically retry |
312
+ | Public lookup returns not found | Confirm the exact hash and public availability; private/hidden records are deliberately indistinguishable from absence |
313
+ | Valid signature with `UNAPPROVED_KEY` | Expected without independently approved production trust pins; do not convert it to trusted success |
314
+ | Client fails schema/protocol negotiation | Use the documented command and tested protocol versions; host-specific compatibility beyond reported tests is not established |
315
+
316
+ Share only constant reason codes and sanitized environment/version information.
317
+ Do not publish raw CERs, policies, keys, identities, openings or customer logs.
318
+
319
+ ## Documentation, security and licence
320
+
321
+ - [NexArt documentation](https://docs.nexart.io/)
322
+ - [Getting started and the AI Evidence Layer](https://docs.nexart.io/docs/getting-started)
323
+ - [Verification guide](https://docs.nexart.io/docs/verification)
324
+ - [Public verifier](https://verify.nexart.io/)
325
+ - [Security reporting policy](SECURITY.md) and [security boundaries](docs/security.md)
326
+ - [Contribution policy](CONTRIBUTING.md)
327
+ - [Changelog](CHANGELOG.md) and [versioning/release checklist](docs/release.md)
328
+ - [Rights review, authorised licence and exclusions](docs/licensing-review.md)
329
+
330
+ Copyright 2026 Artnames Ltd. Original standalone MCP Server code is licensed
331
+ under Apache-2.0, including applicable development contributions as confirmed by
332
+ the owner. This does not relicense SDKs, Node, Verification Terminal, upstream
333
+ fixtures or other products. Upstream material retains its own rights and notices.
334
+ The publication guard has been removed under the owner's explicit release
335
+ preparation authorisation. The owner will confirm npm publishing authority and
336
+ test delivery/monitoring of security@nexart.io before manual publication.
337
+ The archive does not bundle SDKs or fixtures;
338
+ upstream SDK notice corrections and public-repository fixture/history clearance
339
+ are separate from this npm release. Public GitHub visibility is not required.
340
+ The security contact is owner-designated; mailbox testing is not claimed by
341
+ this preparation. No response SLA is promised.