@nexart/mcp-server 0.1.0 → 0.2.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.
- package/CHANGELOG.md +63 -8
- package/CONTRIBUTING.md +7 -5
- package/README.md +47 -31
- package/SECURITY.md +8 -7
- package/THIRD_PARTY_NOTICES.md +2 -2
- package/dist/contracts.js +3 -2
- package/dist/json-schema.d.ts +9 -0
- package/dist/json-schema.js +20 -0
- package/dist/lookup/contracts.js +2 -1
- package/dist/network/contracts.d.ts +2 -2
- package/dist/owner/custody.d.ts +3 -0
- package/dist/owner/custody.js +26 -16
- package/dist/protocol-safety.d.ts +3 -0
- package/dist/protocol-safety.js +16 -0
- package/dist/receipts/contracts.d.ts +2 -2
- package/dist/receipts/contracts.js +2 -1
- package/dist/record/contracts.d.ts +42 -0
- package/dist/record/contracts.js +5 -0
- package/dist/record/record.d.ts +3 -0
- package/dist/record/record.js +6 -2
- package/dist/record-tools.d.ts +3 -0
- package/dist/record-tools.js +15 -5
- package/dist/server.d.ts +11 -1
- package/dist/server.js +5 -5
- package/dist/stdio.js +3 -19
- package/dist/write/attest.d.ts +3 -0
- package/dist/write/attest.js +2 -1
- package/dist/write/contracts.d.ts +2 -2
- package/docs/consumer-guide.md +133 -0
- package/package.json +11 -4
- package/server.json +2 -2
- package/docs/age-version-compatibility.md +0 -46
- package/docs/architecture.md +0 -72
- package/docs/compatibility.md +0 -163
- package/docs/contracts.md +0 -127
- package/docs/licensing-review.md +0 -109
- package/docs/milestone-1-validation.md +0 -110
- package/docs/milestone-2.md +0 -291
- package/docs/milestone-3.2.md +0 -291
- package/docs/milestone-3.md +0 -274
- package/docs/milestone-4a.md +0 -221
- package/docs/milestone-4b1.md +0 -220
- package/docs/milestone-4b2.md +0 -260
- package/docs/public-default.md +0 -263
- package/docs/recording-schema-compatibility.md +0 -46
- package/docs/release.md +0 -311
- package/docs/security-fixes.md +0 -47
- package/docs/security.md +0 -195
- package/docs/standalone-acceptance.md +0 -81
- package/docs/validation.md +0 -85
package/CHANGELOG.md
CHANGED
|
@@ -2,18 +2,73 @@
|
|
|
2
2
|
|
|
3
3
|
Notable changes are recorded following [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|
4
4
|
Version selection follows [Semantic Versioning](https://semver.org/) and the
|
|
5
|
-
[0.x
|
|
5
|
+
[0.x release policy](docs/consumer-guide.md#release-policy).
|
|
6
6
|
|
|
7
|
-
## [
|
|
7
|
+
## [0.2.0]
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
### Release hardening
|
|
10
|
+
|
|
11
|
+
- Restrict npm documentation to reviewed consumer guidance and placeholder
|
|
12
|
+
configuration examples; exclude internal runbooks and acceptance evidence.
|
|
13
|
+
- Explicitly describe existing any-JSON inputs and SDK metadata maps without
|
|
14
|
+
changing runtime validation, cryptography or certification authorisation.
|
|
15
|
+
- Validate actual discovery schemas, exact archive contents and independently
|
|
16
|
+
installed synthetic tool execution.
|
|
17
|
+
- Candidate validation passed 602 package tests and 145 separate hosted
|
|
18
|
+
regression tests, with no failures or skipped tests. Official MCP Inspector
|
|
19
|
+
portability lint reported zero errors and zero warnings for the emitted
|
|
20
|
+
schemas in both supported protocol revisions.
|
|
21
|
+
|
|
22
|
+
### Added
|
|
23
|
+
|
|
24
|
+
- Separate portable hosted Streamable HTTP transport at `/` with `/health`,
|
|
25
|
+
shared tool registration/runtime ports, SDK protocol negotiation and a
|
|
26
|
+
Node 24 adapter. Hosted server configuration and operator tooling are
|
|
27
|
+
repository-only, not part of the npm stdio distribution.
|
|
28
|
+
- Host/Origin/CORS checks, body/depth/response/deadline bounds, bounded admission
|
|
29
|
+
and ingress rate limiting, shared lookup concurrency and redacted diagnostics.
|
|
30
|
+
- Synthetic SDK-client HTTP regressions for both wire eras and real local sockets.
|
|
31
|
+
- Integration with the existing nexart.io Lovable/Supabase authorisation
|
|
32
|
+
contract, customer-scoped policy enforcement and approved age recovery
|
|
33
|
+
recipients, reusing the existing MCP-to-Node certification path.
|
|
34
|
+
- Durable PostgreSQL operation reservations, tenant isolation and encrypted
|
|
35
|
+
recovery custody, with bounded acceptance controls and replay safeguards.
|
|
36
|
+
- Conservative potentially-sent/unknown outcome persistence with no lease-based
|
|
37
|
+
retry permission, plus positive receipt-bound reconciliation.
|
|
38
|
+
- Isolated PostgreSQL concurrency, expiry, restart and commit-ambiguity tests.
|
|
39
|
+
|
|
40
|
+
### Security
|
|
41
|
+
|
|
42
|
+
- Backend context and operation bindings are snapshotted across asynchronous work.
|
|
43
|
+
Capabilities are hashed at rest; opaque outcomes do not assert Node account
|
|
44
|
+
quotas or independently approved signer trust.
|
|
45
|
+
- HTTP explicitly excludes operator-local stdio credentials and write settings.
|
|
46
|
+
- Missing or invalid customer authority, policy or recovery readiness fails
|
|
47
|
+
closed. General hosted certification remains disabled; the successful bounded
|
|
48
|
+
private acceptance does not enable general customer submissions.
|
|
49
|
+
- Production signer trust remains separately unapproved: certificate integrity,
|
|
50
|
+
receipt signature validity, confidential-opening verification and independently
|
|
51
|
+
approved signer trust remain distinct results.
|
|
52
|
+
|
|
53
|
+
### Documentation
|
|
54
|
+
|
|
55
|
+
- Corrected the published status of npm/MCP Registry v0.1.0 without inventing a
|
|
56
|
+
publication date or changing its archived distribution.
|
|
57
|
+
- Clarified that Lovable/Supabase owns the nexart.io dashboard/backend integration;
|
|
58
|
+
earlier Bridge-based integration and credential-retention proposals are superseded.
|
|
59
|
+
- Updated earlier prototype-stage notes to reflect completed hosted integration
|
|
60
|
+
and controlled private certification acceptance, including independent customer
|
|
61
|
+
recovery and confidential-opening verification.
|
|
62
|
+
- The hosted service was restored to verification-only operation after acceptance.
|
|
63
|
+
This npm candidate neither changes that deployment nor modifies the accepted
|
|
64
|
+
record, receipt or recovery evidence. Internal acceptance procedures and
|
|
65
|
+
evidence remain excluded from the npm archive.
|
|
11
66
|
|
|
12
67
|
## [0.1.0] — Initial public release
|
|
13
68
|
|
|
14
|
-
**Status:
|
|
15
|
-
|
|
16
|
-
|
|
69
|
+
**Status: published on npm and listed in the official MCP Registry.** Publication
|
|
70
|
+
and clean-client acceptance were confirmed by the owner. No publication date is
|
|
71
|
+
inferred. The original archive and historical validation evidence are retained.
|
|
17
72
|
|
|
18
73
|
### Added
|
|
19
74
|
|
|
@@ -46,7 +101,7 @@ finalise this status/date at the actual release cut before final validation.
|
|
|
46
101
|
- Original standalone MCP Server code is licensed Apache-2.0 on Artnames Ltd's
|
|
47
102
|
express ownership confirmation and authorisation; LICENSE and scoped NOTICE
|
|
48
103
|
are included without changing the runtime sources.
|
|
49
|
-
- Public npm configuration prepared under owner authorisation
|
|
104
|
+
- Public npm configuration prepared under owner authorisation and subsequently published.
|
|
50
105
|
Private reporting uses owner-designated security@nexart.io, with delivery/
|
|
51
106
|
monitoring and npm publishing authority to be checked by the owner.
|
|
52
107
|
Third-party code is not relicensed;
|
package/CONTRIBUTING.md
CHANGED
|
@@ -2,14 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
## Current status
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
The v0.1.0 npm package and official MCP Registry entry are published. Original standalone
|
|
6
6
|
MCP Server code is licensed Apache-2.0 on Artnames Ltd's express ownership
|
|
7
7
|
confirmation and authorisation, including applicable development contributions.
|
|
8
8
|
See LICENSE, NOTICE and THIRD_PARTY_NOTICES.md. Third-party material retains
|
|
9
9
|
its own terms; separate NexArt repositories are not relicensed. The npm package
|
|
10
|
-
is
|
|
11
|
-
may remain private. The
|
|
12
|
-
|
|
10
|
+
is publicly installable independently of this development repository. The GitHub
|
|
11
|
+
repository may remain private. The proposed v0.2.0 hosted implementation remains
|
|
12
|
+
subject to the [consumer compatibility scope](docs/consumer-guide.md#installation-and-compatibility). Do not
|
|
13
|
+
change separate NexArt repositories without owner approval or publish/deploy
|
|
14
|
+
automatically.
|
|
13
15
|
|
|
14
16
|
Contributions intentionally submitted for inclusion are governed by Apache-2.0
|
|
15
17
|
section 5 unless explicitly stated otherwise or covered by a separate agreement.
|
|
@@ -50,7 +52,7 @@ evidence or weaken owner-only filesystem checks for temporary test convenience.
|
|
|
50
52
|
No real provider/Node submissions or production credentials belong in tests.
|
|
51
53
|
|
|
52
54
|
Update [CHANGELOG.md](CHANGELOG.md) under Unreleased and assess the
|
|
53
|
-
[versioning policy](docs/
|
|
55
|
+
[versioning policy](docs/consumer-guide.md#release-policy).
|
|
54
56
|
The repository owner manually approves versions, Git commits/tags/pushes,
|
|
55
57
|
npm/Registry publication and GitHub releases. No automatic publication workflow
|
|
56
58
|
or Git operation is part of validation.
|
package/README.md
CHANGED
|
@@ -3,12 +3,21 @@
|
|
|
3
3
|
NexArt evidence verification, bounded public lookup and opt-in confidential AI
|
|
4
4
|
recording and customer-authorised Node certification over MCP stdio.
|
|
5
5
|
|
|
6
|
-
**
|
|
7
|
-
|
|
6
|
+
**Published:** `@nexart/mcp-server@0.1.0`, also listed in the official MCP
|
|
7
|
+
Registry as `io.github.artnames/nexart-mcp-server`. Original MCP Server code is
|
|
8
8
|
licensed under **Apache-2.0** on Artnames Ltd's express ownership confirmation
|
|
9
9
|
and authorisation; see [LICENSE](LICENSE), [NOTICE](NOTICE) and
|
|
10
|
-
[third-party exclusions](THIRD_PARTY_NOTICES.md).
|
|
11
|
-
|
|
10
|
+
[third-party exclusions](THIRD_PARTY_NOTICES.md).
|
|
11
|
+
|
|
12
|
+
**Release candidate:** this checkout prepares `@nexart/mcp-server@0.2.0`;
|
|
13
|
+
that version has not been published. Examples below target the candidate and
|
|
14
|
+
become registry-installable only after owner publication; v0.1.0 remains available.
|
|
15
|
+
|
|
16
|
+
**Hosted service:** `https://mcp.nexart.io/` provides Streamable HTTP public
|
|
17
|
+
verification, with health at `/health`. General certification remains disabled.
|
|
18
|
+
The successful controlled private certification does not grant general customer
|
|
19
|
+
submission authority. The hosted deployment is separate from this stdio archive
|
|
20
|
+
and is not modified by release preparation. See the [consumer guide](docs/consumer-guide.md).
|
|
12
21
|
|
|
13
22
|
## Relationship to NexArt
|
|
14
23
|
|
|
@@ -48,16 +57,16 @@ Omitted certification intent selects Node/public; explicit private and local-onl
|
|
|
48
57
|
modes remain available. Missing authorisation returns setup-required, not a
|
|
49
58
|
silent local/private fallback. No per-CER human prompt is required in delegated mode.
|
|
50
59
|
|
|
51
|
-
Use [customer setup and consent examples](docs/
|
|
52
|
-
[encrypted custody
|
|
53
|
-
and [age compatibility](docs/
|
|
60
|
+
Use [customer setup and consent examples](docs/consumer-guide.md#customer-recording-setup),
|
|
61
|
+
[encrypted custody and recovery guidance](docs/consumer-guide.md#recovery-and-security)
|
|
62
|
+
and [age compatibility](docs/consumer-guide.md#customer-recording-setup).
|
|
54
63
|
The recording tool is not automatic observation of all client activity.
|
|
55
64
|
Its MCP provenance is `producer_supplied`, not authenticated provider evidence.
|
|
56
65
|
|
|
57
66
|
Legacy opt-in `nexart_seal_ai_v2` and `nexart_attest_cer` remain separate,
|
|
58
|
-
with their existing [write
|
|
67
|
+
with their existing [write boundaries](docs/consumer-guide.md#customer-recording-setup) and owner-approval
|
|
59
68
|
requirements. Legacy ordinary sealing does not silently become confidential.
|
|
60
|
-
The stricter [isolated-owner mode](docs/
|
|
69
|
+
The stricter [isolated-owner mode](docs/consumer-guide.md#customer-recording-setup) remains separate from
|
|
61
70
|
customer-authorised delegation; ordinary delegated setup needs no Mac root policy.
|
|
62
71
|
|
|
63
72
|
## Requirements
|
|
@@ -72,10 +81,10 @@ customer-authorised delegation; ordinary delegated setup needs no Mac root polic
|
|
|
72
81
|
|
|
73
82
|
## Install and configure
|
|
74
83
|
|
|
75
|
-
###
|
|
84
|
+
### Public npm installation
|
|
76
85
|
|
|
77
86
|
```bash
|
|
78
|
-
npm install @nexart/mcp-server@0.
|
|
87
|
+
npm install @nexart/mcp-server@0.2.0
|
|
79
88
|
```
|
|
80
89
|
|
|
81
90
|
Launch the installed `node_modules/.bin/nexart-mcp-server` (or its `mcp-server`
|
|
@@ -86,7 +95,7 @@ alias), with Node 24 on PATH. For clients that use an `mcpServers` configuration
|
|
|
86
95
|
"mcpServers": {
|
|
87
96
|
"nexart": {
|
|
88
97
|
"command": "npx",
|
|
89
|
-
"args": ["--yes", "--package=@nexart/mcp-server@0.
|
|
98
|
+
"args": ["--yes", "--package=@nexart/mcp-server@0.2.0", "nexart-mcp-server"]
|
|
90
99
|
}
|
|
91
100
|
}
|
|
92
101
|
}
|
|
@@ -100,7 +109,7 @@ other configured servers, and fully restart Claude Desktop. This example enables
|
|
|
100
109
|
only the seven read-only tools. If desktop PATH resolution fails, install locally
|
|
101
110
|
and use the absolute executable path, with an empty `args` array.
|
|
102
111
|
The [delegated recording example](docs/examples/customer-claude-desktop.json)
|
|
103
|
-
and [setup guide](docs/
|
|
112
|
+
and [setup guide](docs/consumer-guide.md#customer-recording-setup) add recording/custody/consent settings.
|
|
104
113
|
Do not enable certification until the owner has approved those settings.
|
|
105
114
|
|
|
106
115
|
### Generic stdio clients
|
|
@@ -109,7 +118,7 @@ The explicit executable avoids client ambiguity. The `mcp-server` alias also
|
|
|
109
118
|
supports npm's default executable selection:
|
|
110
119
|
|
|
111
120
|
```bash
|
|
112
|
-
npx --yes @nexart/mcp-server@0.
|
|
121
|
+
npx --yes @nexart/mcp-server@0.2.0
|
|
113
122
|
```
|
|
114
123
|
|
|
115
124
|
An idle server waits for MCP messages; it is not an interactive terminal UI.
|
|
@@ -122,13 +131,13 @@ encrypted custody and delegated certification using the setup guide, not model
|
|
|
122
131
|
arguments or chat. Keep credentials, identities and recovery material out of
|
|
123
132
|
client-visible evidence and source control.
|
|
124
133
|
|
|
125
|
-
###
|
|
134
|
+
### Contributor validation: local archive
|
|
126
135
|
|
|
127
136
|
```bash
|
|
128
137
|
pnpm install --frozen-lockfile --ignore-scripts
|
|
129
138
|
pnpm run validate:release
|
|
130
139
|
# Use the archive path printed by validation, in a separate consumer:
|
|
131
|
-
npm install /absolute/path/to/nexart-mcp-server-0.
|
|
140
|
+
npm install /absolute/path/to/nexart-mcp-server-0.2.0.tgz
|
|
132
141
|
```
|
|
133
142
|
|
|
134
143
|
The archive contains compiled runtime/types, documentation, Registry metadata
|
|
@@ -213,7 +222,7 @@ Losing recovery material can make later disclosure impossible.
|
|
|
213
222
|
A desktop JSON `env` entry stores the key in plaintext on disk; if used,
|
|
214
223
|
restrict access and accept that limitation explicitly.
|
|
215
224
|
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/
|
|
225
|
+
file, with policy/state/approval paths from the [customer setup guide](docs/consumer-guide.md#customer-recording-setup).
|
|
217
226
|
4. Explicitly acknowledge automation, public disclosure and quota consumption.
|
|
218
227
|
Configure the allowed visibility, credential fingerprint, readable fields,
|
|
219
228
|
validity/expiry and maximum certification attempts.
|
|
@@ -250,7 +259,7 @@ cached permanently; review it before enabling automatic public certification.
|
|
|
250
259
|
- **Replit:** developers can install the Node package inside a project.
|
|
251
260
|
Replit Agent's documented custom MCP integration accepts an HTTPS endpoint;
|
|
252
261
|
this stdio-only package is not directly connectable through that URL-based UI.
|
|
253
|
-
|
|
262
|
+
The separate hosted endpoint offers verification-only access; recording is disabled.
|
|
254
263
|
- **Windows:** not validated; recording/custody relies on POSIX ownership,
|
|
255
264
|
permissions and external age. Do not infer Windows support from npm availability.
|
|
256
265
|
|
|
@@ -275,7 +284,7 @@ Public certification can permanently disclose readable metadata, consume quota
|
|
|
275
284
|
and persist evidence. Commitments protect selected fields, not all metadata.
|
|
276
285
|
Encryption at rest does not hide plaintext from an agent that already handled it.
|
|
277
286
|
Same-UID agents may read credentials or modify local policy; local budgets are
|
|
278
|
-
not Node-enforced account quotas. See [security boundaries](docs/
|
|
287
|
+
not Node-enforced account quotas. See [security boundaries](docs/consumer-guide.md#recovery-and-security).
|
|
279
288
|
|
|
280
289
|
## Development and release validation
|
|
281
290
|
|
|
@@ -288,16 +297,24 @@ pnpm run validate:release
|
|
|
288
297
|
|
|
289
298
|
`pnpm test` covers both top-level and validation test directories. Release
|
|
290
299
|
validation independently installs/builds a temporary checkout, runs the complete
|
|
291
|
-
suite
|
|
300
|
+
suite, packs with npm, installs a production-only
|
|
292
301
|
consumer and checks both MCP revisions, all existing executable paths, encrypted
|
|
293
302
|
recovery and npm's implicit binary discovery. No production Node submissions
|
|
294
303
|
or credentials are used. Every run writes a new directory under
|
|
295
304
|
`generated-artifacts/npm-release/`; historical evidence is never overwritten.
|
|
296
305
|
|
|
297
|
-
|
|
298
|
-
|
|
306
|
+
The latest full v0.2.0 candidate validation passed **602 package tests** and a
|
|
307
|
+
separate **145 hosted regression tests**, with no failures or skipped tests.
|
|
308
|
+
Official MCP Inspector portability lint against the candidate's emitted schemas
|
|
309
|
+
reported **0 errors and 0 warnings** for both supported protocol revisions.
|
|
310
|
+
These candidate checks do not imply a new production deployment or additional
|
|
311
|
+
production certification.
|
|
312
|
+
|
|
313
|
+
See [release policy](docs/consumer-guide.md#release-policy),
|
|
314
|
+
[compatibility](docs/consumer-guide.md#installation-and-compatibility), [contracts](docs/consumer-guide.md#tools-and-schemas)
|
|
299
315
|
and [third-party notices and unresolved permissions](THIRD_PARTY_NOTICES.md).
|
|
300
|
-
|
|
316
|
+
Original MCP Server code is licensed Apache-2.0; third-party exclusions remain
|
|
317
|
+
unchanged. Final publication requires explicit owner approval.
|
|
301
318
|
|
|
302
319
|
## Troubleshooting
|
|
303
320
|
|
|
@@ -322,20 +339,19 @@ Do not publish raw CERs, policies, keys, identities, openings or customer logs.
|
|
|
322
339
|
- [Getting started and the AI Evidence Layer](https://docs.nexart.io/docs/getting-started)
|
|
323
340
|
- [Verification guide](https://docs.nexart.io/docs/verification)
|
|
324
341
|
- [Public verifier](https://verify.nexart.io/)
|
|
325
|
-
- [Security reporting policy](SECURITY.md) and [security boundaries](docs/
|
|
342
|
+
- [Security reporting policy](SECURITY.md) and [security boundaries](docs/consumer-guide.md#recovery-and-security)
|
|
326
343
|
- [Contribution policy](CONTRIBUTING.md)
|
|
327
|
-
- [Changelog](CHANGELOG.md) and [
|
|
328
|
-
- [
|
|
344
|
+
- [Changelog](CHANGELOG.md) and [release policy](docs/consumer-guide.md#release-policy)
|
|
345
|
+
- [Third-party rights and exclusions](THIRD_PARTY_NOTICES.md)
|
|
329
346
|
|
|
330
347
|
Copyright 2026 Artnames Ltd. Original standalone MCP Server code is licensed
|
|
331
348
|
under Apache-2.0, including applicable development contributions as confirmed by
|
|
332
349
|
the owner. This does not relicense SDKs, Node, Verification Terminal, upstream
|
|
333
350
|
fixtures or other products. Upstream material retains its own rights and notices.
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
test delivery/monitoring of security@nexart.io before manual publication.
|
|
351
|
+
Public npm distribution was authorised by the owner. Future publication remains
|
|
352
|
+
manual and requires owner approval, publishing authority and a reviewed archive.
|
|
337
353
|
The archive does not bundle SDKs or fixtures;
|
|
338
354
|
upstream SDK notice corrections and public-repository fixture/history clearance
|
|
339
355
|
are separate from this npm release. Public GitHub visibility is not required.
|
|
340
|
-
The security contact is owner-designated;
|
|
341
|
-
|
|
356
|
+
The security contact is owner-designated; this repository review does not verify
|
|
357
|
+
mailbox delivery or monitoring. No response SLA is promised.
|
package/SECURITY.md
CHANGED
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
## Release/support scope
|
|
4
4
|
|
|
5
|
-
`0.1.0`
|
|
6
|
-
Node 24 and
|
|
5
|
+
`0.1.0` remains published; this checkout prepares the unpublished `0.2.0`
|
|
6
|
+
candidate for Node 24 and stdio. The separate hosted service remains verification-only; see the
|
|
7
|
+
[consumer compatibility scope](docs/consumer-guide.md#installation-and-compatibility). Linux is automatically tested;
|
|
7
8
|
macOS/Claude Desktop live acceptance is owner-reported. Windows and other
|
|
8
9
|
individual hosts are not validated. No support period, response deadline or
|
|
9
10
|
remediation SLA is promised.
|
|
@@ -15,9 +16,9 @@ has designated this contact for the standalone MCP Server. Do not open a
|
|
|
15
16
|
public issue containing a vulnerability,
|
|
16
17
|
customer evidence, credentials, recovery material or an exploit.
|
|
17
18
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
This repository review has not tested mailbox delivery or monitoring and does
|
|
20
|
+
not claim either is verified. The owner is responsible for operating this
|
|
21
|
+
reporting route. Send a minimal, non-sensitive initial report;
|
|
21
22
|
agree a secure transfer method before sending sensitive reproductions.
|
|
22
23
|
No response deadline, named security team or remediation SLA is promised.
|
|
23
24
|
|
|
@@ -70,7 +71,7 @@ consume paid quota, or submit live certifications without separate authority.
|
|
|
70
71
|
does not replace commitments, and does not make same-account key access safe.
|
|
71
72
|
- The package is not an authenticated remote/multi-tenant server.
|
|
72
73
|
|
|
73
|
-
See [
|
|
74
|
-
and [customer setup](docs/
|
|
74
|
+
See [security boundaries](docs/consumer-guide.md#recovery-and-security), [compatibility](docs/consumer-guide.md#installation-and-compatibility)
|
|
75
|
+
and [customer setup](docs/consumer-guide.md#customer-recording-setup). Report upstream issues through the
|
|
75
76
|
relevant upstream's verified private process; this repository cannot promise
|
|
76
77
|
changes to NexArt Node, SDKs or the Verification Terminal.
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -11,7 +11,7 @@ This supersedes the earlier UNLICENSED preparation status. It does not extend
|
|
|
11
11
|
to NexArt Canonical Node, separately maintained SDKs, Verification Terminal or
|
|
12
12
|
other products. No third-party fixture/dependency is relicensed as original code.
|
|
13
13
|
The scope is based on the owner's confirmation, not inferred from a repository
|
|
14
|
-
name or npm scope.
|
|
14
|
+
name or npm scope. The repository retains a separate internal rights inventory.
|
|
15
15
|
|
|
16
16
|
The owner authorised public-distribution configuration and removal of
|
|
17
17
|
`private:true`; publication remains manual. The owner will check npm authority
|
|
@@ -91,7 +91,7 @@ are not required for its validated installation or supported verification scope.
|
|
|
91
91
|
The installed MCP server/core/client distributions declare Apache-2.0 and include
|
|
92
92
|
LICENSE files; Zod declares MIT with a LICENSE. Other installed dependency
|
|
93
93
|
declarations and licence-file presence are inventoried in
|
|
94
|
-
|
|
94
|
+
the repository's internal rights review, including development dependencies.
|
|
95
95
|
|
|
96
96
|
## Release gate
|
|
97
97
|
|
package/dist/contracts.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as z from 'zod/v4';
|
|
2
|
+
import { anyJsonValue, sdkMetadata } from './json-schema.js';
|
|
2
3
|
export const TOOL_NAMES = [
|
|
3
4
|
'nexart_verify_ai_cer',
|
|
4
5
|
'nexart_verify_consequential_cer',
|
|
@@ -6,10 +7,10 @@ export const TOOL_NAMES = [
|
|
|
6
7
|
'nexart_verify_project_bundle',
|
|
7
8
|
];
|
|
8
9
|
export const inputSchema = z.strictObject({
|
|
9
|
-
bundle:
|
|
10
|
+
bundle: anyJsonValue.describe('An inline NexArt artifact. No URLs, paths, credentials or openings.'),
|
|
10
11
|
});
|
|
11
12
|
const state = z.enum(['valid', 'invalid', 'not_performed']);
|
|
12
|
-
const safeSdkResult =
|
|
13
|
+
const safeSdkResult = sdkMetadata;
|
|
13
14
|
export const outputSchema = z.strictObject({
|
|
14
15
|
contractVersion: z.literal('1'),
|
|
15
16
|
tool: z.enum(TOOL_NAMES),
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as z from 'zod/v4';
|
|
2
|
+
/**
|
|
3
|
+
* Discovery-only spelling of the existing unknown/any-JSON wire contract.
|
|
4
|
+
* Keep runtime validation at the existing handler/SDK boundary. Branch
|
|
5
|
+
* annotations prevent Zod from collapsing anyOf into unportable type arrays.
|
|
6
|
+
*/
|
|
7
|
+
export declare const anyJsonValue: z.ZodUnknown;
|
|
8
|
+
/** {} and true are equivalent in this keyword; keep the runtime record intact. */
|
|
9
|
+
export declare const sdkMetadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as z from 'zod/v4';
|
|
2
|
+
/**
|
|
3
|
+
* Discovery-only spelling of the existing unknown/any-JSON wire contract.
|
|
4
|
+
* Keep runtime validation at the existing handler/SDK boundary. Branch
|
|
5
|
+
* annotations prevent Zod from collapsing anyOf into unportable type arrays.
|
|
6
|
+
*/
|
|
7
|
+
export const anyJsonValue = z.unknown().meta({
|
|
8
|
+
anyOf: [
|
|
9
|
+
{ type: 'object', additionalProperties: true },
|
|
10
|
+
{ type: 'array', minItems: 0 },
|
|
11
|
+
{ type: 'string', minLength: 0 },
|
|
12
|
+
{ type: 'number', description: 'Any JSON number.' },
|
|
13
|
+
{ type: 'boolean', description: 'Any JSON boolean.' },
|
|
14
|
+
{ type: 'null', description: 'JSON null.' },
|
|
15
|
+
],
|
|
16
|
+
});
|
|
17
|
+
/** {} and true are equivalent in this keyword; keep the runtime record intact. */
|
|
18
|
+
export const sdkMetadata = z.record(z.string(), z.unknown())
|
|
19
|
+
.meta({ additionalProperties: true });
|
|
20
|
+
//# sourceMappingURL=json-schema.js.map
|
package/dist/lookup/contracts.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as z from 'zod/v4';
|
|
2
|
+
import { sdkMetadata } from '../json-schema.js';
|
|
2
3
|
import { hashSchema } from '../network/contracts.js';
|
|
3
4
|
export const LOOKUP_NAMES = ['nexart_lookup_cer', 'nexart_lookup_project_bundle'];
|
|
4
5
|
export const lookupCerInput = z.strictObject({ certificateHash: hashSchema });
|
|
@@ -13,7 +14,7 @@ export const lookupOutput = z.strictObject({
|
|
|
13
14
|
]).nullable(),
|
|
14
15
|
integrity: z.enum(['valid', 'invalid', 'not_performed', 'indeterminate']),
|
|
15
16
|
integrityScope: z.literal('returned_bundle'),
|
|
16
|
-
sdk:
|
|
17
|
+
sdk: sdkMetadata.nullable(),
|
|
17
18
|
receiptPresent: z.boolean(),
|
|
18
19
|
nodeSignature: z.literal('not_performed'),
|
|
19
20
|
signerTrust: z.literal('not_established'),
|
|
@@ -64,8 +64,8 @@ export declare const keySchema: z.ZodObject<{
|
|
|
64
64
|
publicKey: z.ZodOptional<z.ZodString>;
|
|
65
65
|
publicKeySpkiB64: z.ZodOptional<z.ZodString>;
|
|
66
66
|
status: z.ZodOptional<z.ZodEnum<{
|
|
67
|
-
active: "active";
|
|
68
67
|
deprecated: "deprecated";
|
|
68
|
+
active: "active";
|
|
69
69
|
revoked: "revoked";
|
|
70
70
|
}>>;
|
|
71
71
|
revoked: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -89,8 +89,8 @@ export declare const manifestSchema: z.ZodObject<{
|
|
|
89
89
|
publicKey: z.ZodOptional<z.ZodString>;
|
|
90
90
|
publicKeySpkiB64: z.ZodOptional<z.ZodString>;
|
|
91
91
|
status: z.ZodOptional<z.ZodEnum<{
|
|
92
|
-
active: "active";
|
|
93
92
|
deprecated: "deprecated";
|
|
93
|
+
active: "active";
|
|
94
94
|
revoked: "revoked";
|
|
95
95
|
}>>;
|
|
96
96
|
revoked: z.ZodOptional<z.ZodBoolean>;
|
package/dist/owner/custody.d.ts
CHANGED
|
@@ -12,6 +12,9 @@ export declare class EncryptedCustodyError extends Error {
|
|
|
12
12
|
constructor(reasonCode: 'ENCRYPTED_CUSTODY_CONFIGURATION_REQUIRED' | 'RECOVERY_ENCRYPTION_FAILED' | 'ENCRYPTED_CUSTODY_DURABILITY_FAILED' | 'RECOVERY_BINDING_FAILED' | 'AGE_VERSION_UNSUPPORTED' | 'AGE_VERSION_CHECK_FAILED');
|
|
13
13
|
}
|
|
14
14
|
export declare function checkEncryptedCustody(config: EncryptedCustody): void;
|
|
15
|
+
/** Shared in-memory encryption for a durable hosted storage port. No files or
|
|
16
|
+
* private identity, and no new commitment/encryption implementation. */
|
|
17
|
+
export declare function encryptRecoveryForRecipient(bundle: CerAiExecutionBundleV2, snapshot: Record<string, unknown>, openings: OpeningV2[], config: Pick<EncryptedCustody, 'recipient' | 'ageExecutable'>): Buffer;
|
|
15
18
|
/** Check actual recipient parsing/executable before a paid provider call. */
|
|
16
19
|
export declare function preflightEncryptedCustody(config: EncryptedCustody): void;
|
|
17
20
|
/** Verifies every protected domain, not just a selectively supplied subset. */
|
package/dist/owner/custody.js
CHANGED
|
@@ -35,8 +35,12 @@ function supportedAgeVersion(output) {
|
|
|
35
35
|
}
|
|
36
36
|
function checkConfiguration(config) {
|
|
37
37
|
ownerDirectory(config.directory);
|
|
38
|
-
if (config.ownerApproved !== true || config.decryptionIdentityExcluded !== true
|
|
39
|
-
|
|
38
|
+
if (config.ownerApproved !== true || config.decryptionIdentityExcluded !== true)
|
|
39
|
+
throw Error('ENCRYPTED_CUSTODY_CONFIGURATION_REQUIRED');
|
|
40
|
+
checkAgeRecipient(config);
|
|
41
|
+
}
|
|
42
|
+
function checkAgeRecipient(config) {
|
|
43
|
+
if (!/^age1[023456789acdefghjklmnpqrstuvwxyz]{58}$/.test(config.recipient) ||
|
|
40
44
|
!isAbsolute(config.ageExecutable) || realpathSync(config.ageExecutable) !== config.ageExecutable ||
|
|
41
45
|
!statSync(config.ageExecutable).isFile())
|
|
42
46
|
throw Error('ENCRYPTED_CUSTODY_CONFIGURATION_REQUIRED');
|
|
@@ -62,6 +66,24 @@ function encrypt(config, bytes) {
|
|
|
62
66
|
throw new EncryptedCustodyError('RECOVERY_ENCRYPTION_FAILED');
|
|
63
67
|
}
|
|
64
68
|
}
|
|
69
|
+
/** Shared in-memory encryption for a durable hosted storage port. No files or
|
|
70
|
+
* private identity, and no new commitment/encryption implementation. */
|
|
71
|
+
export function encryptRecoveryForRecipient(bundle, snapshot, openings, config) {
|
|
72
|
+
checkAgeRecipient(config);
|
|
73
|
+
if (!validV2(bundle) || boundedInput(bundle))
|
|
74
|
+
throw Error('INVALID_CUSTODY_CER');
|
|
75
|
+
const recovery = { format: 'nexart-encrypted-recovery-v1', certificateHash: bundle.certificateHash, snapshot, openings };
|
|
76
|
+
try {
|
|
77
|
+
verifyRecovery(bundle, recovery);
|
|
78
|
+
}
|
|
79
|
+
catch {
|
|
80
|
+
throw new EncryptedCustodyError('RECOVERY_BINDING_FAILED');
|
|
81
|
+
}
|
|
82
|
+
const bytes = JSON.stringify(recovery);
|
|
83
|
+
if (Buffer.byteLength(bytes) > LIMIT / 2)
|
|
84
|
+
throw Error('RECOVERY_LIMIT');
|
|
85
|
+
return encrypt(config, bytes);
|
|
86
|
+
}
|
|
65
87
|
/** Check actual recipient parsing/executable before a paid provider call. */
|
|
66
88
|
export function preflightEncryptedCustody(config) {
|
|
67
89
|
checkEncryptedCustody(config);
|
|
@@ -131,19 +153,7 @@ export function verifyRecovery(bundle, recovery) {
|
|
|
131
153
|
/** No plaintext files. Partial ciphertext is preserved, never overwritten/retried. */
|
|
132
154
|
export function retainEncrypted(bundle, snapshot, openings, config) {
|
|
133
155
|
checkEncryptedCustody(config);
|
|
134
|
-
|
|
135
|
-
throw Error('INVALID_CUSTODY_CER');
|
|
136
|
-
const recovery = { format: 'nexart-encrypted-recovery-v1', certificateHash: bundle.certificateHash, snapshot, openings };
|
|
137
|
-
try {
|
|
138
|
-
verifyRecovery(bundle, recovery);
|
|
139
|
-
}
|
|
140
|
-
catch {
|
|
141
|
-
throw new EncryptedCustodyError('RECOVERY_BINDING_FAILED');
|
|
142
|
-
}
|
|
143
|
-
const plaintext = JSON.stringify(recovery);
|
|
144
|
-
if (Buffer.byteLength(plaintext) > LIMIT / 2)
|
|
145
|
-
throw Error('RECOVERY_LIMIT');
|
|
146
|
-
const ciphertext = encrypt(config, plaintext);
|
|
156
|
+
const ciphertext = encryptRecoveryForRecipient(bundle, snapshot, openings, config);
|
|
147
157
|
const dir = join(config.directory, bundle.certificateHash.replace(':', '-'));
|
|
148
158
|
try {
|
|
149
159
|
mkdirSync(dir, { mode: 0o700 });
|
|
@@ -152,7 +162,7 @@ export function retainEncrypted(bundle, snapshot, openings, config) {
|
|
|
152
162
|
exclusive(join(dir, 'cer.json'), JSON.stringify(bundle));
|
|
153
163
|
exclusive(join(dir, 'committed.json'), JSON.stringify({
|
|
154
164
|
format: 'nexart-custody-commit-v1', certificateHash: bundle.certificateHash,
|
|
155
|
-
recoveryFormat: recovery
|
|
165
|
+
recoveryFormat: 'nexart-encrypted-recovery-v1', ciphertextSha256: digest(ciphertext),
|
|
156
166
|
recipientSha256: digest(config.recipient),
|
|
157
167
|
}));
|
|
158
168
|
syncDirectory(dir);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/** Redact diagnostics without replacing the SDK's protocol-era wire envelope. */
|
|
2
|
+
export function redactProtocolMessage(message) {
|
|
3
|
+
if ('error' in message)
|
|
4
|
+
return {
|
|
5
|
+
...message, error: { code: message.error.code, message: 'MCP request rejected' },
|
|
6
|
+
};
|
|
7
|
+
if ('result' in message && typeof message.result === 'object' &&
|
|
8
|
+
message.result !== null && 'isError' in message.result && message.result.isError === true) {
|
|
9
|
+
return { ...message, result: {
|
|
10
|
+
...message.result, isError: true,
|
|
11
|
+
content: [{ type: 'text', text: 'Invalid MCP tool request' }],
|
|
12
|
+
} };
|
|
13
|
+
}
|
|
14
|
+
return message;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=protocol-safety.js.map
|
|
@@ -45,16 +45,16 @@ export declare const receiptOutput: z.ZodObject<{
|
|
|
45
45
|
mismatch: "mismatch";
|
|
46
46
|
}>;
|
|
47
47
|
keyStatus: z.ZodEnum<{
|
|
48
|
+
deprecated: "deprecated";
|
|
48
49
|
unknown: "unknown";
|
|
49
50
|
active: "active";
|
|
50
|
-
deprecated: "deprecated";
|
|
51
51
|
revoked: "revoked";
|
|
52
52
|
unavailable: "unavailable";
|
|
53
53
|
}>;
|
|
54
54
|
keyLifecycle: z.ZodEnum<{
|
|
55
|
+
unknown: "unknown";
|
|
55
56
|
valid: "valid";
|
|
56
57
|
invalid: "invalid";
|
|
57
|
-
unknown: "unknown";
|
|
58
58
|
}>;
|
|
59
59
|
lifecycleCode: z.ZodString;
|
|
60
60
|
signerTrust: z.ZodEnum<{
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as z from 'zod/v4';
|
|
2
|
+
import { anyJsonValue } from '../json-schema.js';
|
|
2
3
|
import { boundedString, hashSchema } from '../network/contracts.js';
|
|
3
4
|
export const RECEIPT_TOOL = 'nexart_verify_node_receipt';
|
|
4
5
|
export const receiptSchema = z.strictObject({
|
|
@@ -14,7 +15,7 @@ export const receiptSchema = z.strictObject({
|
|
|
14
15
|
export const receiptInput = z.strictObject({
|
|
15
16
|
source: z.enum(['inline', 'public_lookup']),
|
|
16
17
|
certificateHash: hashSchema,
|
|
17
|
-
receipt:
|
|
18
|
+
receipt: anyJsonValue.optional(),
|
|
18
19
|
signatureB64Url: z.string().min(1).max(128).optional(),
|
|
19
20
|
});
|
|
20
21
|
export const receiptOutput = z.strictObject({
|