@nexart/mcp-server 0.0.0-stage → 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 +108 -0
- package/CONTRIBUTING.md +58 -0
- package/LICENSE +202 -0
- package/NOTICE +14 -0
- package/README.md +356 -2
- package/SECURITY.md +77 -0
- package/THIRD_PARTY_NOTICES.md +111 -0
- package/dist/adapters.d.ts +16 -0
- package/dist/adapters.js +48 -0
- package/dist/approve-public.d.ts +2 -0
- package/dist/approve-public.js +65 -0
- package/dist/contracts.d.ts +48 -0
- package/dist/contracts.js +35 -0
- package/dist/create-confidential.d.ts +2 -0
- package/dist/create-confidential.js +34 -0
- package/dist/instrumentation/openai-worker.d.ts +1 -0
- package/dist/instrumentation/openai-worker.js +26 -0
- package/dist/instrumentation/openai.d.ts +51 -0
- package/dist/instrumentation/openai.js +197 -0
- package/dist/json-schema.d.ts +9 -0
- package/dist/json-schema.js +20 -0
- package/dist/limits.d.ts +15 -0
- package/dist/limits.js +62 -0
- package/dist/lookup/contracts.d.ts +38 -0
- package/dist/lookup/contracts.js +23 -0
- package/dist/lookup/verify.d.ts +54 -0
- package/dist/lookup/verify.js +110 -0
- package/dist/network/client.d.ts +26 -0
- package/dist/network/client.js +188 -0
- package/dist/network/contracts.d.ts +104 -0
- package/dist/network/contracts.js +54 -0
- package/dist/network-tools.d.ts +5 -0
- package/dist/network-tools.js +32 -0
- package/dist/owner/create.d.ts +52 -0
- package/dist/owner/create.js +117 -0
- package/dist/owner/custody.d.ts +36 -0
- package/dist/owner/custody.js +210 -0
- package/dist/owner/host.d.ts +10 -0
- package/dist/owner/host.js +70 -0
- package/dist/owner/publisher.d.ts +21 -0
- package/dist/owner/publisher.js +27 -0
- package/dist/owner/reconcile.d.ts +16 -0
- package/dist/owner/reconcile.js +109 -0
- package/dist/protocol-safety.d.ts +3 -0
- package/dist/protocol-safety.js +16 -0
- package/dist/receipts/contracts.d.ts +72 -0
- package/dist/receipts/contracts.js +34 -0
- package/dist/receipts/verify.d.ts +4 -0
- package/dist/receipts/verify.js +104 -0
- package/dist/record/contracts.d.ts +323 -0
- package/dist/record/contracts.js +75 -0
- package/dist/record/customer.d.ts +40 -0
- package/dist/record/customer.js +99 -0
- package/dist/record/policy.d.ts +46 -0
- package/dist/record/policy.js +67 -0
- package/dist/record/publication.d.ts +23 -0
- package/dist/record/publication.js +148 -0
- package/dist/record/record.d.ts +15 -0
- package/dist/record/record.js +97 -0
- package/dist/record/state.d.ts +44 -0
- package/dist/record/state.js +84 -0
- package/dist/record-tools.d.ts +13 -0
- package/dist/record-tools.js +95 -0
- package/dist/recover-confidential.d.ts +2 -0
- package/dist/recover-confidential.js +13 -0
- package/dist/results.d.ts +8 -0
- package/dist/results.js +83 -0
- package/dist/server.d.ts +12 -0
- package/dist/server.js +39 -0
- package/dist/stdio.d.ts +2 -0
- package/dist/stdio.js +88 -0
- package/dist/trust/lifecycle.d.ts +13 -0
- package/dist/trust/lifecycle.js +42 -0
- package/dist/trust/policy.d.ts +14 -0
- package/dist/trust/policy.js +6 -0
- package/dist/verify.d.ts +3 -0
- package/dist/verify.js +56 -0
- package/dist/write/approval.d.ts +5 -0
- package/dist/write/approval.js +95 -0
- package/dist/write/attest.d.ts +17 -0
- package/dist/write/attest.js +141 -0
- package/dist/write/config.d.ts +11 -0
- package/dist/write/config.js +12 -0
- package/dist/write/contracts.d.ts +229 -0
- package/dist/write/contracts.js +61 -0
- package/dist/write/post.d.ts +11 -0
- package/dist/write/post.js +105 -0
- package/dist/write/profile.d.ts +19 -0
- package/dist/write/profile.js +114 -0
- package/dist/write/seal.d.ts +3 -0
- package/dist/write/seal.js +49 -0
- package/dist/write-tools.d.ts +4 -0
- package/dist/write-tools.js +36 -0
- package/docs/consumer-guide.md +133 -0
- package/docs/examples/customer-claude-desktop.json +14 -0
- package/docs/examples/customer-consent.json +15 -0
- package/docs/examples/customer-custody.json +8 -0
- package/docs/examples/customer-policy.json +43 -0
- package/package.json +58 -4
- package/server.json +20 -0
package/README.md
CHANGED
|
@@ -1,3 +1,357 @@
|
|
|
1
|
-
#
|
|
1
|
+
# NexArt MCP Server
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
NexArt evidence verification, bounded public lookup and opt-in confidential AI
|
|
4
|
+
recording and customer-authorised Node certification over MCP stdio.
|
|
5
|
+
|
|
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
|
+
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).
|
|
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).
|
|
21
|
+
|
|
22
|
+
## Relationship to NexArt
|
|
23
|
+
|
|
24
|
+
[NexArt's AI Evidence Layer](https://docs.nexart.io/docs/getting-started)
|
|
25
|
+
provides Certified Execution Records (CERs) and verification protocols. This
|
|
26
|
+
package exposes selected published NexArt SDK operations to MCP clients; it is
|
|
27
|
+
not the Canonical Node, an AI model provider or a hosted verification service.
|
|
28
|
+
The Canonical Node at `https://node.nexart.io` handles authorised certification
|
|
29
|
+
and public resolution. Local integrity verification remains separate from Node
|
|
30
|
+
certification and independently approved signer trust.
|
|
31
|
+
|
|
32
|
+
## Capabilities
|
|
33
|
+
|
|
34
|
+
Seven read-only tools are available without credentials:
|
|
35
|
+
|
|
36
|
+
| Tool | Scope |
|
|
37
|
+
| --- | --- |
|
|
38
|
+
| `nexart_verify_ai_cer` | AI V1/V2 integrity using AI SDK 1.4.0 |
|
|
39
|
+
| `nexart_verify_consequential_cer` | Consequential V1 using SDK 0.1.0 |
|
|
40
|
+
| `nexart_verify_governed_execution` | Governed envelope 0.1/0.2 using SDK 0.4.2 |
|
|
41
|
+
| `nexart_verify_project_bundle` | AI Project Bundle V1, including Project hash verification |
|
|
42
|
+
| `nexart_lookup_cer` | Exact-hash public CER lookup and local integrity verification |
|
|
43
|
+
| `nexart_lookup_project_bundle` | Exact-hash public Project lookup and local verification |
|
|
44
|
+
| `nexart_verify_node_receipt` | CER receipt signature, hash binding, Node identity, lifecycle and separate signer trust |
|
|
45
|
+
|
|
46
|
+
The original four verification tools operate offline and take `{bundle}`.
|
|
47
|
+
Lookup and receipt tools use their own exact-hash/receipt contracts and bounded
|
|
48
|
+
reads from the fixed `https://node.nexart.io` origin. Inline receipt verification
|
|
49
|
+
still requires the online key manifest. No arbitrary URL or filesystem input is exposed.
|
|
50
|
+
|
|
51
|
+
Opt-in `nexart_record_execution` creates confidential AI V2 evidence from
|
|
52
|
+
producer-supplied execution data and retains complete age-encrypted recovery
|
|
53
|
+
material in owner-configured custody. It can automatically certify with Node
|
|
54
|
+
using the customer's API key **only after explicit initial consent and bounded
|
|
55
|
+
disclosure/budget policy setup**. A key alone never enables submission.
|
|
56
|
+
Omitted certification intent selects Node/public; explicit private and local-only
|
|
57
|
+
modes remain available. Missing authorisation returns setup-required, not a
|
|
58
|
+
silent local/private fallback. No per-CER human prompt is required in delegated mode.
|
|
59
|
+
|
|
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).
|
|
63
|
+
The recording tool is not automatic observation of all client activity.
|
|
64
|
+
Its MCP provenance is `producer_supplied`, not authenticated provider evidence.
|
|
65
|
+
|
|
66
|
+
Legacy opt-in `nexart_seal_ai_v2` and `nexart_attest_cer` remain separate,
|
|
67
|
+
with their existing [write boundaries](docs/consumer-guide.md#customer-recording-setup) and owner-approval
|
|
68
|
+
requirements. Legacy ordinary sealing does not silently become confidential.
|
|
69
|
+
The stricter [isolated-owner mode](docs/consumer-guide.md#customer-recording-setup) remains separate from
|
|
70
|
+
customer-authorised delegation; ordinary delegated setup needs no Mac root policy.
|
|
71
|
+
|
|
72
|
+
## Requirements
|
|
73
|
+
|
|
74
|
+
- **Node.js 24.x**; automated validation used 24.22.1.
|
|
75
|
+
- A client that can launch an MCP **stdio** subprocess.
|
|
76
|
+
- For confidential recording/recovery only: a configured absolute `age` path,
|
|
77
|
+
supported stable age **>=1.2.1 and <2**, owner-protected custody and recipient.
|
|
78
|
+
Both `1.3.2` and Homebrew's `v1.3.2` version output are accepted.
|
|
79
|
+
- No Node key, database, hosted service, Replit workspace, pnpm or TypeScript
|
|
80
|
+
is needed for an installed package's default verification tools.
|
|
81
|
+
|
|
82
|
+
## Install and configure
|
|
83
|
+
|
|
84
|
+
### Public npm installation
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
npm install @nexart/mcp-server@0.2.0
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
Launch the installed `node_modules/.bin/nexart-mcp-server` (or its `mcp-server`
|
|
91
|
+
alias), with Node 24 on PATH. For clients that use an `mcpServers` configuration:
|
|
92
|
+
|
|
93
|
+
```json
|
|
94
|
+
{
|
|
95
|
+
"mcpServers": {
|
|
96
|
+
"nexart": {
|
|
97
|
+
"command": "npx",
|
|
98
|
+
"args": ["--yes", "--package=@nexart/mcp-server@0.2.0", "nexart-mcp-server"]
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
### Claude Desktop
|
|
105
|
+
|
|
106
|
+
For Claude Desktop on macOS, add the `mcpServers` block above to
|
|
107
|
+
`~/Library/Application Support/Claude/claude_desktop_config.json`, preserving
|
|
108
|
+
other configured servers, and fully restart Claude Desktop. This example enables
|
|
109
|
+
only the seven read-only tools. If desktop PATH resolution fails, install locally
|
|
110
|
+
and use the absolute executable path, with an empty `args` array.
|
|
111
|
+
The [delegated recording example](docs/examples/customer-claude-desktop.json)
|
|
112
|
+
and [setup guide](docs/consumer-guide.md#customer-recording-setup) add recording/custody/consent settings.
|
|
113
|
+
Do not enable certification until the owner has approved those settings.
|
|
114
|
+
|
|
115
|
+
### Generic stdio clients
|
|
116
|
+
|
|
117
|
+
The explicit executable avoids client ambiguity. The `mcp-server` alias also
|
|
118
|
+
supports npm's default executable selection:
|
|
119
|
+
|
|
120
|
+
```bash
|
|
121
|
+
npx --yes @nexart/mcp-server@0.2.0
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
An idle server waits for MCP messages; it is not an interactive terminal UI.
|
|
125
|
+
Use an absolute Node/executable path if a desktop host does not inherit your
|
|
126
|
+
terminal PATH. Do not launch through `pnpm start`: script banners may corrupt
|
|
127
|
+
protocol stdout. Application diagnostics go to stderr.
|
|
128
|
+
|
|
129
|
+
No `env` block is needed for the seven default tools. Configure opt-in recording,
|
|
130
|
+
encrypted custody and delegated certification using the setup guide, not model
|
|
131
|
+
arguments or chat. Keep credentials, identities and recovery material out of
|
|
132
|
+
client-visible evidence and source control.
|
|
133
|
+
|
|
134
|
+
### Contributor validation: local archive
|
|
135
|
+
|
|
136
|
+
```bash
|
|
137
|
+
pnpm install --frozen-lockfile --ignore-scripts
|
|
138
|
+
pnpm run validate:release
|
|
139
|
+
# Use the archive path printed by validation, in a separate consumer:
|
|
140
|
+
npm install /absolute/path/to/nexart-mcp-server-0.2.0.tgz
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
The archive contains compiled runtime/types, documentation, Registry metadata
|
|
144
|
+
and notices. Source, tests, fixtures, source maps, workspace configuration,
|
|
145
|
+
credentials and recovery material are excluded. Consumers need no repository.
|
|
146
|
+
|
|
147
|
+
## Public CER lookup and verification
|
|
148
|
+
|
|
149
|
+
Invoke `nexart_lookup_cer` with an exact public certificate hash:
|
|
150
|
+
|
|
151
|
+
```json
|
|
152
|
+
{
|
|
153
|
+
"certificateHash": "sha256:0000000000000000000000000000000000000000000000000000000000000000"
|
|
154
|
+
}
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
This illustrative hash is not a promised live record. Use a known public hash.
|
|
158
|
+
Then call `nexart_verify_node_receipt` separately:
|
|
159
|
+
|
|
160
|
+
```json
|
|
161
|
+
{
|
|
162
|
+
"source": "public_lookup",
|
|
163
|
+
"certificateHash": "sha256:0000000000000000000000000000000000000000000000000000000000000000"
|
|
164
|
+
}
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
Lookup returns bounded safe summaries, not full evidence or openings. A private,
|
|
168
|
+
hidden, deleted or absent record is not anonymously resolvable; a missing result
|
|
169
|
+
is not proof of invalid integrity. To verify an exported CER offline, pass its
|
|
170
|
+
complete JSON as `bundle` to `nexart_verify_ai_cer`. Project lookup instead takes
|
|
171
|
+
`projectHash` through `nexart_lookup_project_bundle`.
|
|
172
|
+
|
|
173
|
+
The [public verifier](https://verify.nexart.io/) can inspect supplied/public
|
|
174
|
+
evidence. Public CER links use `https://verify.nexart.io/c/{certificateHash}`;
|
|
175
|
+
Project links use `/p/{projectHash}`. Its capabilities and trust policy are
|
|
176
|
+
separate from this MCP adapter's limited receipt checks.
|
|
177
|
+
|
|
178
|
+
## Record an AI execution
|
|
179
|
+
|
|
180
|
+
The host or integration must **explicitly invoke** `nexart_record_execution`.
|
|
181
|
+
Installation does not intercept or capture every model invocation, conversation
|
|
182
|
+
or coding-agent action. Supply truthful execution data; recording is not proof
|
|
183
|
+
that the claimed provider/model actually produced it.
|
|
184
|
+
|
|
185
|
+
First enable `NEXART_ENABLE_RECORD=true` in trusted host configuration and set
|
|
186
|
+
`NEXART_RECORD_CUSTODY_CONFIG` to an absolute owner-only custody configuration.
|
|
187
|
+
Provision the public age recipient and protected custody directory using the
|
|
188
|
+
setup guide; keep the decryption identity outside the agent-accessible boundary.
|
|
189
|
+
Use local-only recording first, without any Node key:
|
|
190
|
+
|
|
191
|
+
```json
|
|
192
|
+
{
|
|
193
|
+
"kind": "execution",
|
|
194
|
+
"execution": {
|
|
195
|
+
"executionId": "owner-selected-unique-id",
|
|
196
|
+
"timestamp": "2026-11-13T12:00:00.000Z",
|
|
197
|
+
"provider": "producer-declared",
|
|
198
|
+
"model": "producer-declared",
|
|
199
|
+
"input": "synthetic input",
|
|
200
|
+
"output": "synthetic output",
|
|
201
|
+
"parameters": {"temperature": 0, "maxTokens": 8, "topP": null, "seed": null},
|
|
202
|
+
"executionRole": "advisory"
|
|
203
|
+
},
|
|
204
|
+
"createdAt": "2026-11-13T12:00:01.000Z",
|
|
205
|
+
"certification": {"mode": "local"}
|
|
206
|
+
}
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
Replace sample identifiers/timestamps with the actual execution metadata.
|
|
210
|
+
Sensitive fields receive fresh SDK commitments, while complete recovery material
|
|
211
|
+
is retained with age encryption. Readable metadata still needs disclosure review.
|
|
212
|
+
Use the owner-only `nexart-recover-confidential` command and the recovery guide;
|
|
213
|
+
never return the decryption identity, plaintext or openings through MCP.
|
|
214
|
+
Losing recovery material can make later disclosure impossible.
|
|
215
|
+
|
|
216
|
+
### Customer-owned key and automatic certification
|
|
217
|
+
|
|
218
|
+
1. Obtain your own NexArt API key through your account at
|
|
219
|
+
[nexart.io](https://nexart.io/). Do not use a shared publisher key.
|
|
220
|
+
2. Inject `NEXART_NODE_API_KEY` using a trusted host/secret-store launcher.
|
|
221
|
+
Do not paste keys into prompts, tool arguments, tracked configuration or logs.
|
|
222
|
+
A desktop JSON `env` entry stores the key in plaintext on disk; if used,
|
|
223
|
+
restrict access and accept that limitation explicitly.
|
|
224
|
+
3. Set `NEXART_RECORD_CERTIFICATION_CONFIG` to an owner-only versioned consent
|
|
225
|
+
file, with policy/state/approval paths from the [customer setup guide](docs/consumer-guide.md#customer-recording-setup).
|
|
226
|
+
4. Explicitly acknowledge automation, public disclosure and quota consumption.
|
|
227
|
+
Configure the allowed visibility, credential fingerprint, readable fields,
|
|
228
|
+
validity/expiry and maximum certification attempts.
|
|
229
|
+
5. Restart the host. After authorisation, omitting `certification` requests
|
|
230
|
+
automatic Node/public certification. Use
|
|
231
|
+
`{"mode":"node","visibility":"private"}` for private Node certification,
|
|
232
|
+
or `{"mode":"local"}` for no Node operation. Local mode rejects visibility.
|
|
233
|
+
|
|
234
|
+
Consent and policy are rechecked before submission; expiry, revocation, missing
|
|
235
|
+
configuration, mismatches and exhausted limits fail closed. There is no silent
|
|
236
|
+
fallback, automatic POST retry or per-CER human prompt in delegated mode.
|
|
237
|
+
Ambiguous outcomes require reconciliation rather than blind resubmission.
|
|
238
|
+
Local limits count reserved attempts, not only successful certifications.
|
|
239
|
+
They are not server-enforced account quotas or a hard financial cap; Node key
|
|
240
|
+
permissions and account limits must be managed separately. Rotation must preserve
|
|
241
|
+
the applicable policy/account attempt history. Same-user code that obtains the
|
|
242
|
+
key can bypass local policy by calling Node directly.
|
|
243
|
+
|
|
244
|
+
Public/private visibility controls Node access, not whether protected content is
|
|
245
|
+
committed. Confidential CERs can be public or private. Public metadata may be
|
|
246
|
+
cached permanently; review it before enabling automatic public certification.
|
|
247
|
+
|
|
248
|
+
## Clients and platforms
|
|
249
|
+
|
|
250
|
+
- **Claude Desktop on macOS:** owner-reported successful live acceptance with
|
|
251
|
+
Node 24 and Homebrew age 1.3.2: tool discovery, confidential creation, encrypted
|
|
252
|
+
recovery, customer-authorised Node certification and public verification.
|
|
253
|
+
- **Official MCP client 2.4.0:** automated installed-process coverage for legacy
|
|
254
|
+
`2025-11-25` and modern `2026-07-28`, including errors, redaction and shutdown.
|
|
255
|
+
- **Linux:** automated package and synthetic integration validation.
|
|
256
|
+
- **Codex / Claude Code / other stdio clients / enterprise applications:**
|
|
257
|
+
configure the equivalent subprocess command in the host's format. Individual
|
|
258
|
+
host acceptance is not claimed. No remote multi-tenant service is included.
|
|
259
|
+
- **Replit:** developers can install the Node package inside a project.
|
|
260
|
+
Replit Agent's documented custom MCP integration accepts an HTTPS endpoint;
|
|
261
|
+
this stdio-only package is not directly connectable through that URL-based UI.
|
|
262
|
+
The separate hosted endpoint offers verification-only access; recording is disabled.
|
|
263
|
+
- **Windows:** not validated; recording/custody relies on POSIX ownership,
|
|
264
|
+
permissions and external age. Do not infer Windows support from npm availability.
|
|
265
|
+
|
|
266
|
+
MCP Registry listing enables discovery, not automatic installation or approval
|
|
267
|
+
in every client. The intended identity is
|
|
268
|
+
`io.github.artnames/nexart-mcp-server`; registration and namespace authorisation
|
|
269
|
+
remain separate release gates.
|
|
270
|
+
|
|
271
|
+
## Assurance and limitations
|
|
272
|
+
|
|
273
|
+
Integrity is not proof that an execution occurred, that content is true, or that
|
|
274
|
+
the history is complete. Receipt signature validity, hash binding, Node identity,
|
|
275
|
+
key lifecycle and signer trust are distinct results. **No production key pins
|
|
276
|
+
or historical exceptions are approved**: a valid production receipt may report
|
|
277
|
+
`UNAPPROVED_KEY` / signer trust not established. Manifest discovery is not trust approval.
|
|
278
|
+
|
|
279
|
+
Verification-envelope signatures and RFC 3161 timestamp cryptography are not
|
|
280
|
+
verified. Project receipts, authenticated producers and completeness are not
|
|
281
|
+
established. Recovery verification requires the complete retained recovery set.
|
|
282
|
+
|
|
283
|
+
Public certification can permanently disclose readable metadata, consume quota
|
|
284
|
+
and persist evidence. Commitments protect selected fields, not all metadata.
|
|
285
|
+
Encryption at rest does not hide plaintext from an agent that already handled it.
|
|
286
|
+
Same-UID agents may read credentials or modify local policy; local budgets are
|
|
287
|
+
not Node-enforced account quotas. See [security boundaries](docs/consumer-guide.md#recovery-and-security).
|
|
288
|
+
|
|
289
|
+
## Development and release validation
|
|
290
|
+
|
|
291
|
+
```bash
|
|
292
|
+
pnpm install --frozen-lockfile --ignore-scripts
|
|
293
|
+
pnpm run build
|
|
294
|
+
pnpm test
|
|
295
|
+
pnpm run validate:release
|
|
296
|
+
```
|
|
297
|
+
|
|
298
|
+
`pnpm test` covers both top-level and validation test directories. Release
|
|
299
|
+
validation independently installs/builds a temporary checkout, runs the complete
|
|
300
|
+
suite, packs with npm, installs a production-only
|
|
301
|
+
consumer and checks both MCP revisions, all existing executable paths, encrypted
|
|
302
|
+
recovery and npm's implicit binary discovery. No production Node submissions
|
|
303
|
+
or credentials are used. Every run writes a new directory under
|
|
304
|
+
`generated-artifacts/npm-release/`; historical evidence is never overwritten.
|
|
305
|
+
|
|
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)
|
|
315
|
+
and [third-party notices and unresolved permissions](THIRD_PARTY_NOTICES.md).
|
|
316
|
+
Original MCP Server code is licensed Apache-2.0; third-party exclusions remain
|
|
317
|
+
unchanged. Final publication requires explicit owner approval.
|
|
318
|
+
|
|
319
|
+
## Troubleshooting
|
|
320
|
+
|
|
321
|
+
| Symptom | Check |
|
|
322
|
+
| --- | --- |
|
|
323
|
+
| Executable not found / unsupported Node | Use Node 24 and an absolute executable path; desktop PATH may differ from Shell |
|
|
324
|
+
| `npx` waits without displaying a prompt | Expected for stdio: connect an MCP client, rather than typing shell commands into the server |
|
|
325
|
+
| Recording tool missing | Set `NEXART_ENABLE_RECORD=true` in host configuration and restart the client |
|
|
326
|
+
| 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 |
|
|
327
|
+
| Certification reports setup-required/denied | Check consent, policy expiry/revocation, fingerprint, allowed fields/visibility and durable attempt limits; a key alone is insufficient |
|
|
328
|
+
| Node outcome unknown | Retain custody/attempt records and follow reconciliation; do not automatically retry |
|
|
329
|
+
| Public lookup returns not found | Confirm the exact hash and public availability; private/hidden records are deliberately indistinguishable from absence |
|
|
330
|
+
| Valid signature with `UNAPPROVED_KEY` | Expected without independently approved production trust pins; do not convert it to trusted success |
|
|
331
|
+
| Client fails schema/protocol negotiation | Use the documented command and tested protocol versions; host-specific compatibility beyond reported tests is not established |
|
|
332
|
+
|
|
333
|
+
Share only constant reason codes and sanitized environment/version information.
|
|
334
|
+
Do not publish raw CERs, policies, keys, identities, openings or customer logs.
|
|
335
|
+
|
|
336
|
+
## Documentation, security and licence
|
|
337
|
+
|
|
338
|
+
- [NexArt documentation](https://docs.nexart.io/)
|
|
339
|
+
- [Getting started and the AI Evidence Layer](https://docs.nexart.io/docs/getting-started)
|
|
340
|
+
- [Verification guide](https://docs.nexart.io/docs/verification)
|
|
341
|
+
- [Public verifier](https://verify.nexart.io/)
|
|
342
|
+
- [Security reporting policy](SECURITY.md) and [security boundaries](docs/consumer-guide.md#recovery-and-security)
|
|
343
|
+
- [Contribution policy](CONTRIBUTING.md)
|
|
344
|
+
- [Changelog](CHANGELOG.md) and [release policy](docs/consumer-guide.md#release-policy)
|
|
345
|
+
- [Third-party rights and exclusions](THIRD_PARTY_NOTICES.md)
|
|
346
|
+
|
|
347
|
+
Copyright 2026 Artnames Ltd. Original standalone MCP Server code is licensed
|
|
348
|
+
under Apache-2.0, including applicable development contributions as confirmed by
|
|
349
|
+
the owner. This does not relicense SDKs, Node, Verification Terminal, upstream
|
|
350
|
+
fixtures or other products. Upstream material retains its own rights and notices.
|
|
351
|
+
Public npm distribution was authorised by the owner. Future publication remains
|
|
352
|
+
manual and requires owner approval, publishing authority and a reviewed archive.
|
|
353
|
+
The archive does not bundle SDKs or fixtures;
|
|
354
|
+
upstream SDK notice corrections and public-repository fixture/history clearance
|
|
355
|
+
are separate from this npm release. Public GitHub visibility is not required.
|
|
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
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# Security policy
|
|
2
|
+
|
|
3
|
+
## Release/support scope
|
|
4
|
+
|
|
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;
|
|
8
|
+
macOS/Claude Desktop live acceptance is owner-reported. Windows and other
|
|
9
|
+
individual hosts are not validated. No support period, response deadline or
|
|
10
|
+
remediation SLA is promised.
|
|
11
|
+
|
|
12
|
+
## Report privately
|
|
13
|
+
|
|
14
|
+
Email **security@nexart.io** for private vulnerability reporting. Artnames Ltd
|
|
15
|
+
has designated this contact for the standalone MCP Server. Do not open a
|
|
16
|
+
public issue containing a vulnerability,
|
|
17
|
+
customer evidence, credentials, recovery material or an exploit.
|
|
18
|
+
|
|
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;
|
|
22
|
+
agree a secure transfer method before sending sensitive reproductions.
|
|
23
|
+
No response deadline, named security team or remediation SLA is promised.
|
|
24
|
+
|
|
25
|
+
Public npm distribution does **not** require making the GitHub repository public.
|
|
26
|
+
The email route is intended to work without private-repository membership.
|
|
27
|
+
|
|
28
|
+
### Optional future GitHub route
|
|
29
|
+
|
|
30
|
+
GitHub documents this feature for **public repositories**. Once repository
|
|
31
|
+
redistribution is authorised and the standalone repository is made public,
|
|
32
|
+
an owner/admin should open **Settings → Advanced Security → Private vulnerability
|
|
33
|
+
reporting → Enable**. Then confirm that a non-maintainer can open
|
|
34
|
+
**Security → Advisories → Report a vulnerability** for this repository and that
|
|
35
|
+
the owner receives/monitors notifications. No real exploit or customer evidence
|
|
36
|
+
is needed to check route availability.
|
|
37
|
+
|
|
38
|
+
This setting has not been enabled or verified by this preparation. Do not mark
|
|
39
|
+
the gate complete merely because SECURITY.md or the conditional link exists.
|
|
40
|
+
GitHub enablement is not a prerequisite for the owner-designated email route.
|
|
41
|
+
Official instructions:
|
|
42
|
+
https://docs.github.com/en/code-security/how-tos/report-and-fix-vulnerabilities/configure-vulnerability-reporting/configure-for-a-repository
|
|
43
|
+
|
|
44
|
+
A private report should include the affected version, Node/OS/client versions,
|
|
45
|
+
impact, prerequisites and a minimal synthetic reproduction. Use reason codes,
|
|
46
|
+
not raw customer artifacts. Agree coordinated disclosure with the maintainer;
|
|
47
|
+
do not assume a fixed publication timeline. Do not probe production systems,
|
|
48
|
+
consume paid quota, or submit live certifications without separate authority.
|
|
49
|
+
|
|
50
|
+
## Boundaries to understand
|
|
51
|
+
|
|
52
|
+
- A local MCP host controls process arguments, environment and OS account.
|
|
53
|
+
Same-user code may steal keys or rewrite local policy. Consent and counters
|
|
54
|
+
are not a malicious-same-user containment mechanism.
|
|
55
|
+
- Customer-owned Node keys must be provisioned in trusted host configuration,
|
|
56
|
+
not prompts/tool arguments. Desktop JSON environment entries are plaintext
|
|
57
|
+
storage. Use an established secret-store launcher where possible.
|
|
58
|
+
- Confidential commitments protect selected fields; readable metadata may leak
|
|
59
|
+
sensitive information. Age encryption protects recovery at rest, not memory
|
|
60
|
+
already visible to the agent/host. Preserve complete recovery and exclude the
|
|
61
|
+
decryption identity from the agent's effective access.
|
|
62
|
+
- MCP recording is explicitly invoked and producer-supplied, not independent
|
|
63
|
+
observation of every model execution. Instrumentation assertions are not
|
|
64
|
+
provider-authenticated signatures.
|
|
65
|
+
- Artifact integrity, receipt mathematics and signer trust are distinct.
|
|
66
|
+
No approved production trust anchors are shipped; `UNAPPROVED_KEY` is not
|
|
67
|
+
trusted success. Key discovery alone does not establish trust.
|
|
68
|
+
- Local limits conservatively reserve attempts and do not enforce Node-wide
|
|
69
|
+
quota, credential scopes or a financial cap. No automatic POST retries.
|
|
70
|
+
- Public certification can permanently disclose metadata. Private visibility
|
|
71
|
+
does not replace commitments, and does not make same-account key access safe.
|
|
72
|
+
- The package is not an authenticated remote/multi-tenant server.
|
|
73
|
+
|
|
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
|
|
76
|
+
relevant upstream's verified private process; this repository cannot promise
|
|
77
|
+
changes to NexArt Node, SDKs or the Verification Terminal.
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
# Licensing and third-party provenance
|
|
2
|
+
|
|
3
|
+
## Original MCP project code
|
|
4
|
+
|
|
5
|
+
Artnames Ltd expressly confirmed ownership of the original standalone NexArt MCP
|
|
6
|
+
Server code, including applicable development contributions, and authorised its
|
|
7
|
+
release under Apache License 2.0. LICENSE contains the standard text; NOTICE
|
|
8
|
+
records Copyright 2026 Artnames Ltd and the limited scope of that authorisation.
|
|
9
|
+
|
|
10
|
+
This supersedes the earlier UNLICENSED preparation status. It does not extend
|
|
11
|
+
to NexArt Canonical Node, separately maintained SDKs, Verification Terminal or
|
|
12
|
+
other products. No third-party fixture/dependency is relicensed as original code.
|
|
13
|
+
The scope is based on the owner's confirmation, not inferred from a repository
|
|
14
|
+
name or npm scope. The repository retains a separate internal rights inventory.
|
|
15
|
+
|
|
16
|
+
The owner authorised public-distribution configuration and removal of
|
|
17
|
+
`private:true`; publication remains manual. The owner will check npm authority
|
|
18
|
+
and test the designated security@nexart.io mailbox before publishing.
|
|
19
|
+
Excluded fixtures/private Git history are not npm release blockers.
|
|
20
|
+
SDK packaging findings below belong to their separate distributions.
|
|
21
|
+
|
|
22
|
+
## SDK declarations inspected
|
|
23
|
+
|
|
24
|
+
| Published package | Version | Manifest license |
|
|
25
|
+
| --- | --- | --- |
|
|
26
|
+
| `@nexart/ai-execution` | 1.4.0 | MIT |
|
|
27
|
+
| `@nexart/consequential-execution` | 0.1.0 | MIT |
|
|
28
|
+
| `@nexart/governed-execution` | 0.4.2 | MIT |
|
|
29
|
+
|
|
30
|
+
The exact public npm tarballs were downloaded and verified against their
|
|
31
|
+
registry SHA-512 integrity. All three tarball manifests and registry manifests
|
|
32
|
+
declare MIT. None contains a LICENSE/COPYING/NOTICE file at any level.
|
|
33
|
+
MIT permits use, modification and redistribution, subject to keeping its
|
|
34
|
+
copyright and permission notice in copies/substantial portions, with its
|
|
35
|
+
disclaimer. Public SPDX declarations are ordinary licensing evidence, not a
|
|
36
|
+
claim of independently verified title.
|
|
37
|
+
|
|
38
|
+
The AI SDK itself embeds Noble ed25519/hash code, including source-map sources,
|
|
39
|
+
with MIT attribution to Paul Miller (2019/2022), but no full MIT permission
|
|
40
|
+
text was found. The Governed SDK ships `schemas/provider_02/types.ts` with
|
|
41
|
+
Copyright 2026 Google LLC and an Apache-2.0 header/link. That material is not
|
|
42
|
+
relicensed by the SDK's general MIT declaration. Apache redistribution requires
|
|
43
|
+
the licence copy and applicable notices, plus change notices where relevant;
|
|
44
|
+
an upstream NOTICE, if supplied, must be preserved.
|
|
45
|
+
|
|
46
|
+
These are SDK-side licence/notice packaging findings. Their maintainers should
|
|
47
|
+
include the applicable MIT grants/copyrights and Apache-2.0 text/notices in their
|
|
48
|
+
own distributions. No SDK repository/package is modified by this review.
|
|
49
|
+
An absent SDK licence file is not by itself an adapter publication blocker:
|
|
50
|
+
the MCP tarball does not contain those SDKs or the embedded Noble/Google files,
|
|
51
|
+
and no conflicting restriction on this external dependency use was identified.
|
|
52
|
+
Bundling/copying those materials later would require a fresh notice review.
|
|
53
|
+
|
|
54
|
+
## Repository-only fixtures — excluded from npm
|
|
55
|
+
|
|
56
|
+
Fixture files are retained in the repository, not repackaged as original code. They contain
|
|
57
|
+
synthetic/public test examples, not customer evidence.
|
|
58
|
+
|
|
59
|
+
- `tests/fixtures/ai/compat-vectors-v1.json` and `compat-vectors-v2.json` came
|
|
60
|
+
from the published AI 1.4.0 npm distribution.
|
|
61
|
+
- `tests/fixtures/governed/*.json` came from `artnames/governed-execution` at
|
|
62
|
+
source revision `c45cba5972157bbc872009b21cdf066cb97c05e2`.
|
|
63
|
+
The package manifest at that revision declares MIT. Its root listing
|
|
64
|
+
contains no LICENSE, and that revision is not asserted identical to the
|
|
65
|
+
npm release. `01_single_path_happy.json` explicitly records deterministic
|
|
66
|
+
correction of invalid non-v4 identifiers; not all current governed files
|
|
67
|
+
should be described as byte-identical upstream copies.
|
|
68
|
+
- Consequential and additional integration inputs are generated with the
|
|
69
|
+
official SDK constructors from synthetic test data; they are not independent
|
|
70
|
+
upstream compatibility vectors.
|
|
71
|
+
|
|
72
|
+
The AI compatibility examples include fixed public test openings/salts.
|
|
73
|
+
They remain repository test fixtures only: no such opening/salt values are copied to
|
|
74
|
+
validation output or returned by the MCP server. The npm release allowlist excludes
|
|
75
|
+
all tests and fixtures, source files and source maps. They are not embedded in
|
|
76
|
+
the compiled runtime; the release consumer is tested using an external harness.
|
|
77
|
+
This reduces npm redistribution exposure but does not authorise public GitHub
|
|
78
|
+
redistribution of those files or erase their provenance/permission requirements.
|
|
79
|
+
|
|
80
|
+
## Dependency distribution
|
|
81
|
+
|
|
82
|
+
The three SDKs are external, exact-version npm dependencies of the MCP adapter,
|
|
83
|
+
not vendored or bundled into this archive. npm separately downloads their own
|
|
84
|
+
published distributions; the AI SDK internally bundles code as noted above.
|
|
85
|
+
The adapter's manifest has no bundleDependencies/bundledDependencies, and its
|
|
86
|
+
compiled JavaScript retains SDK imports. This adapter does not grant or change
|
|
87
|
+
rights in those dependencies, strip their notices or redistribute their files.
|
|
88
|
+
The three SDKs declare no ordinary runtime dependencies; AI declares optional
|
|
89
|
+
peers `pkijs` (^3.4.0) and `asn1js` (^3.0.5). They are not bundled into MCP and
|
|
90
|
+
are not required for its validated installation or supported verification scope.
|
|
91
|
+
The installed MCP server/core/client distributions declare Apache-2.0 and include
|
|
92
|
+
LICENSE files; Zod declares MIT with a LICENSE. Other installed dependency
|
|
93
|
+
declarations and licence-file presence are inventoried in
|
|
94
|
+
the repository's internal rights review, including development dependencies.
|
|
95
|
+
|
|
96
|
+
## Release gate
|
|
97
|
+
|
|
98
|
+
Original-code authorisation is complete on the owner's express confirmation.
|
|
99
|
+
For npm specifically, no additional third-party permission/notice blocker was
|
|
100
|
+
identified in the inspected MCP archive. SDK notice corrections belong upstream;
|
|
101
|
+
fixture permissions/private history concern public repository distribution,
|
|
102
|
+
not this tarball. Original-code confirmation is not SDK/fixture authorisation.
|
|
103
|
+
No existing notice was removed from a fixture or dependency.
|
|
104
|
+
|
|
105
|
+
Owner-side npm publishing authority and testing of the designated security
|
|
106
|
+
mailbox remain pre-publication checks, not blockers to preparing the public
|
|
107
|
+
configuration expressly requested by the owner. No npm login is performed by
|
|
108
|
+
this preparation, and publishing authority is not claimed as confirmed.
|
|
109
|
+
A public GitHub repository or Registry listing is not required for npm publication.
|
|
110
|
+
|
|
111
|
+
This is a provenance review, not an independent legal opinion.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ToolName } from './contracts.js';
|
|
2
|
+
export type SdkOutcome = Record<string, unknown> & {
|
|
3
|
+
ok: boolean;
|
|
4
|
+
code: string;
|
|
5
|
+
};
|
|
6
|
+
export type DispatchResult = {
|
|
7
|
+
result: SdkOutcome;
|
|
8
|
+
family: string;
|
|
9
|
+
} | {
|
|
10
|
+
rejection: 'UNSUPPORTED_RECORD_FAMILY' | 'UNSUPPORTED_RECORD_VERSION' | 'SCHEMA_ERROR';
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Only dispatch; all schema, hash, canonicalization and evidence checks belong
|
|
14
|
+
* to the published SDKs. Never retry a failed record under a different verifier.
|
|
15
|
+
*/
|
|
16
|
+
export declare function dispatch(tool: ToolName, bundle: unknown): DispatchResult;
|
package/dist/adapters.js
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { verifyCer, verifyCerV2, verifyProjectBundle, } from '@nexart/ai-execution';
|
|
2
|
+
import { verifyCer as verifyConsequential } from '@nexart/consequential-execution';
|
|
3
|
+
import { verifyGovernedExecution, verifyGovernedExecutionV2, } from '@nexart/governed-execution';
|
|
4
|
+
import { isObject } from './limits.js';
|
|
5
|
+
/**
|
|
6
|
+
* Only dispatch; all schema, hash, canonicalization and evidence checks belong
|
|
7
|
+
* to the published SDKs. Never retry a failed record under a different verifier.
|
|
8
|
+
*/
|
|
9
|
+
export function dispatch(tool, bundle) {
|
|
10
|
+
if (!isObject(bundle))
|
|
11
|
+
return { rejection: 'SCHEMA_ERROR' };
|
|
12
|
+
const family = bundle.bundleType;
|
|
13
|
+
const result = (outcome) => ({
|
|
14
|
+
result: outcome, family: family,
|
|
15
|
+
});
|
|
16
|
+
switch (tool) {
|
|
17
|
+
case 'nexart_verify_ai_cer':
|
|
18
|
+
if (family !== 'cer.ai.execution.v1' && family !== 'cer.ai.execution.v2') {
|
|
19
|
+
return { rejection: 'UNSUPPORTED_RECORD_FAMILY' };
|
|
20
|
+
}
|
|
21
|
+
// V1 validates envelope.version, including its specific pre-protocol
|
|
22
|
+
// vintage tolerance. Preserve the SDK's gate rather than replacing it.
|
|
23
|
+
// The SDK itself selects/rejects snapshot.protocolVersion without fallback.
|
|
24
|
+
return result(family === 'cer.ai.execution.v1'
|
|
25
|
+
? verifyCer(bundle)
|
|
26
|
+
: verifyCerV2(bundle));
|
|
27
|
+
case 'nexart_verify_consequential_cer':
|
|
28
|
+
if (family !== 'cer.consequential.execution.v1') {
|
|
29
|
+
return { rejection: 'UNSUPPORTED_RECORD_FAMILY' };
|
|
30
|
+
}
|
|
31
|
+
return result(verifyConsequential(bundle));
|
|
32
|
+
case 'nexart_verify_governed_execution':
|
|
33
|
+
if (family !== 'cer.governed.execution.v1') {
|
|
34
|
+
return { rejection: 'UNSUPPORTED_RECORD_FAMILY' };
|
|
35
|
+
}
|
|
36
|
+
if (bundle.version === '0.1')
|
|
37
|
+
return result(verifyGovernedExecution(bundle));
|
|
38
|
+
if (bundle.version === '0.2')
|
|
39
|
+
return result(verifyGovernedExecutionV2(bundle));
|
|
40
|
+
return { rejection: 'UNSUPPORTED_RECORD_VERSION' };
|
|
41
|
+
case 'nexart_verify_project_bundle':
|
|
42
|
+
if (family !== 'cer.project.bundle.v1') {
|
|
43
|
+
return { rejection: 'UNSUPPORTED_RECORD_FAMILY' };
|
|
44
|
+
}
|
|
45
|
+
return result(verifyProjectBundle(bundle));
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=adapters.js.map
|