@nexart/mcp-server 0.1.0 → 0.3.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 +114 -8
- package/CONTRIBUTING.md +7 -5
- package/README.md +69 -36
- package/SECURITY.md +11 -9
- package/THIRD_PARTY_NOTICES.md +4 -4
- 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/create.d.ts +2 -2
- package/dist/owner/custody.d.ts +7 -0
- package/dist/owner/custody.js +35 -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/receipts/verify.js +1 -1
- package/dist/record/contracts.d.ts +46 -4
- 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 +4 -0
- package/dist/record-tools.js +21 -6
- package/dist/server.d.ts +11 -1
- package/dist/server.js +5 -5
- package/dist/stdio.js +3 -19
- package/dist/trust/policy.js +8 -2
- package/dist/write/attest.d.ts +3 -0
- package/dist/write/attest.js +2 -1
- package/dist/write/contracts.d.ts +6 -6
- package/dist/write/contracts.js +2 -1
- package/docs/consumer-guide.md +214 -0
- package/package.json +20 -6
- package/server.json +9 -3
- 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
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
# NexArt MCP consumer guide
|
|
2
|
+
|
|
3
|
+
## Hosted customer setup and certification
|
|
4
|
+
|
|
5
|
+
The hosted endpoint is `https://mcp.nexart.io/` over Streamable HTTP. Its tested
|
|
6
|
+
production configuration exposes **nine tools**: seven public verification/lookup
|
|
7
|
+
tools, `nexart_get_certification_setup` and `nexart_record_execution`. A real Claude
|
|
8
|
+
certification through hosted MCP and NexArt Node has passed, followed by
|
|
9
|
+
owner-local age decryption and complete HMAC commitment-opening verification
|
|
10
|
+
with the SDK's explicit `VERIFIED` result.
|
|
11
|
+
|
|
12
|
+
Hosted certification remains a **controlled production rollout, not unrestricted
|
|
13
|
+
GA**. A customer API key does not override server-side activation, customer
|
|
14
|
+
eligibility, saved policy or custody requirements. The candidate npm release is
|
|
15
|
+
`@nexart/mcp-server@0.3.0`; the current npm release remains **0.2.0** until the
|
|
16
|
+
owner publishes the candidate.
|
|
17
|
+
|
|
18
|
+
The local npm stdio default remains **seven tools**. Its optional recording tool
|
|
19
|
+
must be explicitly enabled and independently configured with local owner consent,
|
|
20
|
+
policy and encrypted custody. Hosted setup is not a local stdio tool, and remote
|
|
21
|
+
dashboard settings do not configure a local process.
|
|
22
|
+
|
|
23
|
+
`nexart_get_certification_setup` gives
|
|
24
|
+
non-certifying setup instructions. A customer signs in at `https://nexart.io/`,
|
|
25
|
+
generates their own key, approves Confidential AI V2 with explicit Private or
|
|
26
|
+
Public visibility, chooses permitted readable metadata, and configures their
|
|
27
|
+
age **public** recipient. The private identity stays with the customer.
|
|
28
|
+
Certification requires an explicitly write-capable key, an eligible account
|
|
29
|
+
and available quota under that customer's own NexArt plan; a read-only or
|
|
30
|
+
legacy key is not upgraded by connecting it to MCP.
|
|
31
|
+
|
|
32
|
+
The signed-in dashboard must provide the **persisted approved** policy revision
|
|
33
|
+
and matching non-secret agent configuration, not unsaved form values. Never
|
|
34
|
+
guess a revision. Store the key in protected client settings as
|
|
35
|
+
`Authorization: Bearer <customer-key>`; not in prompts, tool arguments, URLs,
|
|
36
|
+
source files or shared workspace credentials. Each customer uses their own key.
|
|
37
|
+
Clients must support protected request headers; do not assume every client
|
|
38
|
+
surface does. API-key clients do not require a new OAuth system.
|
|
39
|
+
|
|
40
|
+
The optional `POST /v1/configuration` checks the dashboard's `configuration_request`
|
|
41
|
+
against the existing NexArt authorisation endpoint using that header. It creates
|
|
42
|
+
no CER, operation, custody record, quota reservation or Node submission. A success
|
|
43
|
+
does not guarantee a future certification: the current key, account and policy
|
|
44
|
+
are rechecked on recording, and Node enforces quota.
|
|
45
|
+
|
|
46
|
+
All four V2 sampling parameters (`temperature`, `maxTokens`, `topP`, `seed`)
|
|
47
|
+
are required: use a finite number when observed or explicit `null` when
|
|
48
|
+
unavailable. Missing fields, `undefined` and other types are rejected, not
|
|
49
|
+
silently defaulted. Never invent sampling values.
|
|
50
|
+
|
|
51
|
+
Only once the service is enabled, use `nexart_record_execution` with
|
|
52
|
+
`certification.mode: "node"`, explicit `visibility` and the exact current
|
|
53
|
+
`policy_revision`. Missing/stale revisions or denied authority must not trigger
|
|
54
|
+
automatic submission or a replacement execution ID. Keep the same execution ID
|
|
55
|
+
for the same logical request; an unknown outcome requires reconciliation, not
|
|
56
|
+
a new attempt.
|
|
57
|
+
Normal customer recording supports multiple distinct executions without a
|
|
58
|
+
single-operation permit or approval prompt per execution. This does not bypass
|
|
59
|
+
the initial saved policy approval or server-side recording activation.
|
|
60
|
+
|
|
61
|
+
The tested hosted recording-plus-setup configuration exposes nine tools. The
|
|
62
|
+
recording-disabled rollback configuration exposes eight (including setup), and
|
|
63
|
+
recording calls fail closed. Follow the setup tool's current status rather than
|
|
64
|
+
assuming npm installation activates the hosted endpoint or grants authority.
|
|
65
|
+
|
|
66
|
+
Connect a compatible remote client to `https://mcp.nexart.io/` using Streamable
|
|
67
|
+
HTTP; install the key in that client's protected HTTP-header settings. This
|
|
68
|
+
applies to compatible Replit, Claude, Codex and enterprise clients where that
|
|
69
|
+
client version supports remote MCP with protected headers. Do not assume
|
|
70
|
+
stdio JSON configuration also configures remote HTTP or that OAuth-only clients
|
|
71
|
+
can use an API-key header. Hosted customers do not install age or a database on
|
|
72
|
+
the agent: custody encryption occurs on the hosted service, and recovery
|
|
73
|
+
decryption uses the customer's private identity only on their own device.
|
|
74
|
+
|
|
75
|
+
Retrieve the CER, Node receipt and age-encrypted recovery through the signed-in
|
|
76
|
+
NexArt dashboard. Historical reads use current ownership and organisation
|
|
77
|
+
permissions, separately from the recording key or policy. Do not give the agent
|
|
78
|
+
your private age identity. Verify certificate integrity, receipt signature,
|
|
79
|
+
certificate binding, confidential openings and approved signer trust separately.
|
|
80
|
+
|
|
81
|
+
## Installation and compatibility
|
|
82
|
+
|
|
83
|
+
Use Node.js 24 (`>=24.0.0 <25`) and install `@nexart/mcp-server@0.3.0`
|
|
84
|
+
after the owner publishes that version. This repository currently prepares an
|
|
85
|
+
unpublished release candidate; npm/Registry publication is a separate action.
|
|
86
|
+
The npm package runs over stdio. Use an absolute Node/executable path when a
|
|
87
|
+
desktop client has a different PATH. Protocols `2025-11-25` and `2026-07-28`
|
|
88
|
+
are exercised independently. Host UI compatibility requires a real client test;
|
|
89
|
+
MCP conformance is not a guarantee of every provider's strict-schema subset.
|
|
90
|
+
|
|
91
|
+
The hosted HTTPS service is separate from the npm stdio process. Production
|
|
92
|
+
infrastructure and operator acceptance procedures are not part of this package.
|
|
93
|
+
Connecting through a remote client's Streamable HTTP configuration does not
|
|
94
|
+
enable certification or grant customer authority.
|
|
95
|
+
|
|
96
|
+
## Tools and schemas
|
|
97
|
+
|
|
98
|
+
Default discovery exposes exactly seven read-only verification/lookup tools:
|
|
99
|
+
|
|
100
|
+
| Tool | Scope |
|
|
101
|
+
| --- | --- |
|
|
102
|
+
| `nexart_verify_ai_cer` | AI CER V1/V2 integrity through the published AI SDK |
|
|
103
|
+
| `nexart_verify_consequential_cer` | Consequential CER integrity |
|
|
104
|
+
| `nexart_verify_governed_execution` | Governed execution versions 0.1/0.2 |
|
|
105
|
+
| `nexart_verify_project_bundle` | Project Bundle and embedded artifact integrity |
|
|
106
|
+
| `nexart_lookup_cer` | Bounded public CER lookup and local integrity verification |
|
|
107
|
+
| `nexart_lookup_project_bundle` | Bounded public Project Bundle lookup |
|
|
108
|
+
| `nexart_verify_node_receipt` | CER receipt signature, binding and separate trust checks |
|
|
109
|
+
|
|
110
|
+
The four inline verifiers take a strict `{ "bundle": <JSON value> }` argument
|
|
111
|
+
envelope. Any JSON value is accepted for examination: malformed/non-object
|
|
112
|
+
artifacts produce structured failures, not successful verification. Published
|
|
113
|
+
SDKs own artifact-family, version and cryptographic validation. No second MCP
|
|
114
|
+
artifact schema strips or rewrites evidence. Extra envelope keys are rejected.
|
|
115
|
+
|
|
116
|
+
Lookup arguments are exactly `certificateHash` or `projectHash`, respectively,
|
|
117
|
+
formatted `sha256:<64 lowercase hexadecimal digits>`. Lookup does not forward raw
|
|
118
|
+
evidence, canonical payloads, private identifiers or receipt bodies to the model.
|
|
119
|
+
Not-found and not-public are deliberately indistinguishable.
|
|
120
|
+
|
|
121
|
+
Receipt arguments have `source` (`inline` or `public_lookup`) and an expected
|
|
122
|
+
`certificateHash`. Inline mode requires `receipt` plus `signatureB64Url`;
|
|
123
|
+
public lookup forbids supplying either. Receipts are examined before strict
|
|
124
|
+
supported-version parsing so unsupported versions retain explicit outcomes.
|
|
125
|
+
Project receipts are not supported by the CER receipt verifier.
|
|
126
|
+
|
|
127
|
+
Discovery spells any-JSON inputs with typed `anyOf` branches. SDK metadata maps
|
|
128
|
+
use `additionalProperties: true`. These are equivalent descriptions of the
|
|
129
|
+
existing runtime contracts, not new validation or publication permissions.
|
|
130
|
+
They do not promise compatibility with closed-object grammar-constrained APIs.
|
|
131
|
+
|
|
132
|
+
## Results and limits
|
|
133
|
+
|
|
134
|
+
Logical contract version remains `1`. Outputs separate artifact integrity,
|
|
135
|
+
reason codes and a bounded/redacted SDK projection. Legacy results include
|
|
136
|
+
structured content and JSON text; modern transport encoding may differ.
|
|
137
|
+
Invalid artifacts do not become valid because the MCP call itself succeeded.
|
|
138
|
+
|
|
139
|
+
Inline limits include 1 MiB serialized arguments, depth 64, 25,000 JSON nodes,
|
|
140
|
+
4,096 keys/items per container, 100 project steps and 256 KiB logical output.
|
|
141
|
+
Network tools have additional response, timeout and concurrency bounds.
|
|
142
|
+
Inputs are not truncated. Synchronous SDK verification is not preemptible.
|
|
143
|
+
SDK errors/details/warnings are redacted, not copied as evidence-bearing text.
|
|
144
|
+
|
|
145
|
+
## Customer recording setup
|
|
146
|
+
|
|
147
|
+
Recording is opt-in through `NEXART_ENABLE_RECORD=true`; default discovery has
|
|
148
|
+
no recording tool. Explicit `certification: {"mode":"local"}` performs no Node
|
|
149
|
+
submission. A key alone does not authorise automatic or public certification.
|
|
150
|
+
|
|
151
|
+
Reviewed placeholder examples:
|
|
152
|
+
|
|
153
|
+
- [Claude Desktop configuration](examples/customer-claude-desktop.json)
|
|
154
|
+
- [Disabled customer consent](examples/customer-consent.json)
|
|
155
|
+
- [Age-encrypted custody](examples/customer-custody.json)
|
|
156
|
+
- [Customer policy](examples/customer-policy.json)
|
|
157
|
+
|
|
158
|
+
Replace placeholders locally, never in chat or public logs. The example policy
|
|
159
|
+
is deliberately expired and consent is disabled. Review new dates, account/key
|
|
160
|
+
binding, the actual credential fingerprint, recipient, readable fields,
|
|
161
|
+
visibility and quota/retention consequences before explicitly approving them.
|
|
162
|
+
Never treat an example maximum as a Node-enforced account or per-key quota.
|
|
163
|
+
|
|
164
|
+
Use owner-only configuration files (0600), directories (0700) and safe ancestors.
|
|
165
|
+
Custody requires an approved age X25519 public recipient and an absolute real
|
|
166
|
+
native age executable path. Stable age versions `>=1.2.1 <2` accept both `1.x`
|
|
167
|
+
and `v1.x` version output; malformed/prerelease output fails closed. Keep the
|
|
168
|
+
private age identity on the owner device, outside MCP configuration and custody.
|
|
169
|
+
Missing/invalid custody fails closed. Do not weaken ownership/TLS safeguards.
|
|
170
|
+
|
|
171
|
+
Customer delegation requires explicit enabled consent and matching policy,
|
|
172
|
+
including credential/account context, fingerprint, expiry/revocation, permitted
|
|
173
|
+
disclosure and durable state. Review the complete example before enabling it.
|
|
174
|
+
Omitted certification visibility expresses public intent, not authority.
|
|
175
|
+
Private and local-only modes remain available; there is no silent downgrade.
|
|
176
|
+
Legacy isolated-owner approval and optional seal/attest tools remain separate.
|
|
177
|
+
An agent controlling the same OS account can access that account's credentials
|
|
178
|
+
and policy; local approvals/counters do not create an isolation boundary.
|
|
179
|
+
|
|
180
|
+
## Recovery and security
|
|
181
|
+
|
|
182
|
+
Commitments protect selected fields, not all metadata. Public CERs can expose
|
|
183
|
+
readable metadata, commitments, signatures and canonical proofs permanently.
|
|
184
|
+
Encryption at rest does not hide plaintext from an agent already handling it.
|
|
185
|
+
Recovery requires retained plaintext plus every committed field's opening.
|
|
186
|
+
The owner recovery executables are included, but private recovery files are not.
|
|
187
|
+
Never expose openings, salts, private identities or customer keys through MCP.
|
|
188
|
+
Native age decryption and SDK opening verification belong on the owner host.
|
|
189
|
+
|
|
190
|
+
Integrity, receipt signature mathematics, hash binding, Node identity, key
|
|
191
|
+
lifecycle and independently approved signer trust are separate conclusions.
|
|
192
|
+
Version 0.3.0 includes the independently owner-approved production Ed25519 `k1`
|
|
193
|
+
pin for `nexart-node-prod-1`, with no historical exceptions. Matching key bytes,
|
|
194
|
+
certificate binding, Node identity and valid lifecycle remain required.
|
|
195
|
+
Unknown keys report `UNAPPROVED_KEY`; changed bytes for a pinned key report
|
|
196
|
+
`PIN_MISMATCH`. A valid signature alone is not trusted signer identity.
|
|
197
|
+
The tools do not establish execution truth, producer authenticity, completeness
|
|
198
|
+
or RFC 3161 timestamp cryptography. Receipt verification is not verification
|
|
199
|
+
of a separate verification-envelope signature.
|
|
200
|
+
|
|
201
|
+
A timeout or ambiguous certification response may follow a committed operation.
|
|
202
|
+
Retain ciphertext and attempt evidence; reconcile read-only. Never automatically
|
|
203
|
+
retry, reseal or substitute an execution ID. See [SECURITY.md](../SECURITY.md)
|
|
204
|
+
for private vulnerability reporting and [third-party notices](../THIRD_PARTY_NOTICES.md)
|
|
205
|
+
for licensing boundaries. Original MCP code is Apache-2.0; SDKs retain their own rights.
|
|
206
|
+
|
|
207
|
+
## Release policy
|
|
208
|
+
|
|
209
|
+
Minor 0.x releases may add capabilities; this release hardening preserves the
|
|
210
|
+
existing logical contracts and negative outcomes. Pin versions for repeatability.
|
|
211
|
+
Publication and Registry registration remain owner-controlled. Never overwrite
|
|
212
|
+
a published npm version. Internal deployment/acceptance evidence is intentionally
|
|
213
|
+
excluded from the consumer archive; repository tests validate an exact allowlist,
|
|
214
|
+
synthetic tool execution and installation outside the development workspace.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nexart/mcp-server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"mcpName": "io.github.artnames/nexart-mcp-server",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -14,7 +14,9 @@
|
|
|
14
14
|
},
|
|
15
15
|
"packageManager": "pnpm@10.26.1",
|
|
16
16
|
"type": "module",
|
|
17
|
-
"engines": {
|
|
17
|
+
"engines": {
|
|
18
|
+
"node": ">=24.0.0 <25"
|
|
19
|
+
},
|
|
18
20
|
"bin": {
|
|
19
21
|
"mcp-server": "./dist/stdio.js",
|
|
20
22
|
"nexart-mcp-server": "./dist/stdio.js",
|
|
@@ -23,15 +25,27 @@
|
|
|
23
25
|
"nexart-recover-confidential": "./dist/recover-confidential.js"
|
|
24
26
|
},
|
|
25
27
|
"files": [
|
|
26
|
-
"dist/**/*.js",
|
|
27
|
-
"
|
|
28
|
-
"
|
|
28
|
+
"dist/**/*.js",
|
|
29
|
+
"dist/**/*.d.ts",
|
|
30
|
+
"docs/consumer-guide.md",
|
|
31
|
+
"docs/examples/customer-claude-desktop.json",
|
|
32
|
+
"docs/examples/customer-consent.json",
|
|
33
|
+
"docs/examples/customer-custody.json",
|
|
34
|
+
"docs/examples/customer-policy.json",
|
|
35
|
+
"./server.json",
|
|
36
|
+
"./THIRD_PARTY_NOTICES.md",
|
|
37
|
+
"./CHANGELOG.md",
|
|
38
|
+
"./SECURITY.md",
|
|
39
|
+
"./CONTRIBUTING.md",
|
|
40
|
+
"./LICENSE",
|
|
41
|
+
"./NOTICE"
|
|
29
42
|
],
|
|
30
43
|
"scripts": {
|
|
31
44
|
"build": "tsc -p tsconfig.json",
|
|
32
45
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
33
46
|
"start": "node dist/stdio.js",
|
|
34
47
|
"test": "node --test --test-concurrency=1 tests/*.test.mjs tests/validation/*.test.mjs",
|
|
48
|
+
"test:hosted": "pnpm --filter @nexart/mcp-hosted test",
|
|
35
49
|
"benchmark": "node tests/benchmark.mjs",
|
|
36
50
|
"evidence": "node tests/transport-evidence.mjs",
|
|
37
51
|
"check:clean-install": "node tests/release-validation.mjs",
|
|
@@ -39,7 +53,7 @@
|
|
|
39
53
|
},
|
|
40
54
|
"dependencies": {
|
|
41
55
|
"@modelcontextprotocol/server": "2.4.0",
|
|
42
|
-
"@nexart/ai-execution": "1.4.
|
|
56
|
+
"@nexart/ai-execution": "1.4.1",
|
|
43
57
|
"@nexart/consequential-execution": "0.1.0",
|
|
44
58
|
"@nexart/governed-execution": "0.4.2",
|
|
45
59
|
"zod": "4.6.7"
|
package/server.json
CHANGED
|
@@ -2,19 +2,25 @@
|
|
|
2
2
|
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
|
|
3
3
|
"name": "io.github.artnames/nexart-mcp-server",
|
|
4
4
|
"title": "NexArt MCP Server",
|
|
5
|
-
"description": "
|
|
5
|
+
"description": "Certificate verification and opt-in customer-authorised confidential recording over stdio or HTTP.",
|
|
6
6
|
"repository": {
|
|
7
7
|
"url": "https://github.com/artnames/nexart-mcp-server",
|
|
8
8
|
"source": "github"
|
|
9
9
|
},
|
|
10
|
-
"version": "0.
|
|
10
|
+
"version": "0.3.0",
|
|
11
11
|
"packages": [
|
|
12
12
|
{
|
|
13
13
|
"registryType": "npm",
|
|
14
14
|
"registryBaseUrl": "https://registry.npmjs.org",
|
|
15
15
|
"identifier": "@nexart/mcp-server",
|
|
16
|
-
"version": "0.
|
|
16
|
+
"version": "0.3.0",
|
|
17
17
|
"transport": { "type": "stdio" }
|
|
18
18
|
}
|
|
19
|
+
],
|
|
20
|
+
"remotes": [
|
|
21
|
+
{
|
|
22
|
+
"type": "streamable-http",
|
|
23
|
+
"url": "https://mcp.nexart.io/"
|
|
24
|
+
}
|
|
19
25
|
]
|
|
20
26
|
}
|
|
@@ -1,46 +0,0 @@
|
|
|
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.
|
package/docs/architecture.md
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
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.
|
package/docs/compatibility.md
DELETED
|
@@ -1,163 +0,0 @@
|
|
|
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
|