@nexart/mcp-server 0.2.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 CHANGED
@@ -4,6 +4,57 @@ Notable changes are recorded following [Keep a Changelog](https://keepachangelog
4
4
  Version selection follows [Semantic Versioning](https://semver.org/) and the
5
5
  [0.x release policy](docs/consumer-guide.md#release-policy).
6
6
 
7
+ ## [0.3.0]
8
+
9
+ ### Compatibility
10
+
11
+ - Use AI Execution SDK 1.4.1. All four V2 sampling parameters remain required
12
+ and accept either a finite number or explicit `null` when unavailable.
13
+ Missing values are rejected; no sampling defaults are invented.
14
+
15
+ ### Added
16
+
17
+ - Hosted customer setup guidance and non-certifying configuration checks using
18
+ the customer's protected API-key header and approved saved policy revision.
19
+ - Normal multi-execution hosted certification through the existing NexArt
20
+ authorisation and Node paths, with account eligibility and Node-enforced
21
+ customer quotas. Normal recording needs no per-execution permit or prompt.
22
+ - Authenticated customer evidence listing and CER, receipt and encrypted recovery
23
+ downloads, with separate current-account/organisation read authority.
24
+
25
+ ### Security
26
+
27
+ - Recording startup always runs the complete existing storage preflight:
28
+ packaged CA and verified database TLS, restricted runtime role and forced
29
+ tenant RLS, immutable operation protections, native age encryption readiness
30
+ and service authentication. Recording requires the versioned policy contract.
31
+ - Distinct executions retain independent durable reservations; identical replay
32
+ cannot dispatch a second Node request. Uncertain outcomes require reconciliation,
33
+ never an automatic retry or replacement execution ID.
34
+ - Installed the production Ed25519 `k1` public-key pin following independent owner
35
+ verification against the active Node signer. Rotation requires separate
36
+ approval; no historical lifecycle exceptions were added. Signature validity
37
+ remains distinct from approved signer identity and certificate binding.
38
+ - Local recording stays disabled by default and requires independently configured
39
+ owner consent, policy and encrypted custody. Hosted recording remains subject
40
+ to customer authorisation and custody checks in a controlled production rollout,
41
+ not unrestricted GA. Preparing the npm release does not change hosted settings.
42
+
43
+ ### Documentation
44
+
45
+ - Updated installation examples for 0.3.0, API-key onboarding, saved policy
46
+ requirements, transport differences and customer evidence retrieval.
47
+ - Recorded the successful real Claude → hosted MCP → NexArt Node certification
48
+ and owner-local confidential recovery, including complete HMAC commitment-opening
49
+ verification with an explicit SDK `VERIFIED` result.
50
+ - Distinguished the tested nine-tool hosted recording-plus-setup configuration,
51
+ its eight-tool recording-disabled rollback, and the seven-tool local stdio
52
+ default with separately enabled/configured local recording.
53
+ - Identified npm 0.2.0 as the current published release and 0.3.0 as the candidate;
54
+ npm and MCP Registry publication remain separate owner-managed actions.
55
+ - Internal operator runbooks, signer candidates, acceptance evidence, credentials
56
+ and customer recovery material remain outside the npm package allowlist.
57
+
7
58
  ## [0.2.0]
8
59
 
9
60
  ### Release hardening
package/README.md CHANGED
@@ -3,21 +3,32 @@
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
- **Published:** `@nexart/mcp-server@0.1.0`, also listed in the official MCP
6
+ **Published:** `@nexart/mcp-server@0.2.0`, also listed in the official MCP
7
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
10
  [third-party exclusions](THIRD_PARTY_NOTICES.md).
11
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
+ **Prepared release:** `@nexart/mcp-server@0.3.0`. It has not been published.
13
+ Installation examples below target 0.3.0 once published; use 0.2.0 until then.
14
+ Release preparation does not activate the hosted service or publish a package.
15
+
16
+ **Hosted service:** `https://mcp.nexart.io/` provides Streamable HTTP, with health
17
+ at `/health`. The tested production configuration exposes **nine tools**: seven
18
+ verification/lookup tools, non-certifying customer setup and
19
+ `nexart_record_execution`. A real Claude → hosted MCP → NexArt Node certification
20
+ and owner-local confidential recovery have passed, including complete HMAC
21
+ commitment-opening verification with an explicit `VERIFIED` result.
22
+ Hosted certification is a **controlled production rollout, not unrestricted GA**:
23
+ current customer eligibility, saved policy revision, visibility, custody and Node
24
+ authorisation/quota checks still apply. Authenticated dashboard evidence access
25
+ is separate from public tool discovery.
26
+
27
+ **Local stdio:** default discovery remains **seven tools**. Local recording must
28
+ be explicitly enabled and independently configured with owner-controlled
29
+ consent, policy and encrypted custody; hosted settings do not configure it.
30
+ The hosted deployment is separate from this npm archive and is not modified by
31
+ release preparation. See the [consumer guide](docs/consumer-guide.md).
21
32
 
22
33
  ## Relationship to NexArt
23
34
 
@@ -35,7 +46,7 @@ Seven read-only tools are available without credentials:
35
46
 
36
47
  | Tool | Scope |
37
48
  | --- | --- |
38
- | `nexart_verify_ai_cer` | AI V1/V2 integrity using AI SDK 1.4.0 |
49
+ | `nexart_verify_ai_cer` | AI V1/V2 integrity using AI SDK 1.4.1 |
39
50
  | `nexart_verify_consequential_cer` | Consequential V1 using SDK 0.1.0 |
40
51
  | `nexart_verify_governed_execution` | Governed envelope 0.1/0.2 using SDK 0.4.2 |
41
52
  | `nexart_verify_project_bundle` | AI Project Bundle V1, including Project hash verification |
@@ -84,7 +95,7 @@ customer-authorised delegation; ordinary delegated setup needs no Mac root polic
84
95
  ### Public npm installation
85
96
 
86
97
  ```bash
87
- npm install @nexart/mcp-server@0.2.0
98
+ npm install @nexart/mcp-server@0.3.0
88
99
  ```
89
100
 
90
101
  Launch the installed `node_modules/.bin/nexart-mcp-server` (or its `mcp-server`
@@ -95,7 +106,7 @@ alias), with Node 24 on PATH. For clients that use an `mcpServers` configuration
95
106
  "mcpServers": {
96
107
  "nexart": {
97
108
  "command": "npx",
98
- "args": ["--yes", "--package=@nexart/mcp-server@0.2.0", "nexart-mcp-server"]
109
+ "args": ["--yes", "--package=@nexart/mcp-server@0.3.0", "nexart-mcp-server"]
99
110
  }
100
111
  }
101
112
  }
@@ -118,7 +129,7 @@ The explicit executable avoids client ambiguity. The `mcp-server` alias also
118
129
  supports npm's default executable selection:
119
130
 
120
131
  ```bash
121
- npx --yes @nexart/mcp-server@0.2.0
132
+ npx --yes @nexart/mcp-server@0.3.0
122
133
  ```
123
134
 
124
135
  An idle server waits for MCP messages; it is not an interactive terminal UI.
@@ -137,7 +148,7 @@ client-visible evidence and source control.
137
148
  pnpm install --frozen-lockfile --ignore-scripts
138
149
  pnpm run validate:release
139
150
  # Use the archive path printed by validation, in a separate consumer:
140
- npm install /absolute/path/to/nexart-mcp-server-0.2.0.tgz
151
+ npm install /absolute/path/to/nexart-mcp-server-0.3.0.tgz
141
152
  ```
142
153
 
143
154
  The archive contains compiled runtime/types, documentation, Registry metadata
@@ -207,6 +218,8 @@ Use local-only recording first, without any Node key:
207
218
  ```
208
219
 
209
220
  Replace sample identifiers/timestamps with the actual execution metadata.
221
+ All four `parameters` fields are required. Supply a finite number when known,
222
+ or explicit `null` when unavailable; do not invent values or omit fields.
210
223
  Sensitive fields receive fresh SDK commitments, while complete recovery material
211
224
  is retained with age encryption. Readable metadata still needs disclosure review.
212
225
  Use the owner-only `nexart-recover-confidential` command and the recovery guide;
@@ -259,7 +272,8 @@ cached permanently; review it before enabling automatic public certification.
259
272
  - **Replit:** developers can install the Node package inside a project.
260
273
  Replit Agent's documented custom MCP integration accepts an HTTPS endpoint;
261
274
  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.
275
+ The separate hosted endpoint supports authorised recording in its tested
276
+ nine-tool configuration during the controlled production rollout.
263
277
  - **Windows:** not validated; recording/custody relies on POSIX ownership,
264
278
  permissions and external age. Do not infer Windows support from npm availability.
265
279
 
@@ -272,9 +286,12 @@ remain separate release gates.
272
286
 
273
287
  Integrity is not proof that an execution occurred, that content is true, or that
274
288
  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.
289
+ key lifecycle and signer trust are distinct results. Version 0.3.0 includes the
290
+ independently owner-approved production Ed25519 `k1` pin for `nexart-node-prod-1`.
291
+ Trust still requires matching key bytes, certificate binding, Node identity and
292
+ valid lifecycle. No historical exceptions are supplied. Unknown keys report
293
+ `UNAPPROVED_KEY`; changed bytes for a pinned key report `PIN_MISMATCH`.
294
+ Manifest discovery is not trust approval.
278
295
 
279
296
  Verification-envelope signatures and RFC 3161 timestamp cryptography are not
280
297
  verified. Project receipts, authenticated producers and completeness are not
@@ -327,7 +344,7 @@ unchanged. Final publication requires explicit owner approval.
327
344
  | Certification reports setup-required/denied | Check consent, policy expiry/revocation, fingerprint, allowed fields/visibility and durable attempt limits; a key alone is insufficient |
328
345
  | Node outcome unknown | Retain custody/attempt records and follow reconciliation; do not automatically retry |
329
346
  | 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 |
347
+ | Valid signature with `UNAPPROVED_KEY` | The signer key is not approved, including an unapproved rotated key; do not convert it to trusted success |
331
348
  | Client fails schema/protocol negotiation | Use the documented command and tested protocol versions; host-specific compatibility beyond reported tests is not established |
332
349
 
333
350
  Share only constant reason codes and sanitized environment/version information.
package/SECURITY.md CHANGED
@@ -63,8 +63,9 @@ consume paid quota, or submit live certifications without separate authority.
63
63
  observation of every model execution. Instrumentation assertions are not
64
64
  provider-authenticated signatures.
65
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.
66
+ Version 0.3.0 ships the independently owner-approved production Ed25519 `k1`
67
+ pin, with no historical exceptions. Unknown keys remain `UNAPPROVED_KEY`,
68
+ which is not trusted success. Key discovery alone does not establish trust.
68
69
  - Local limits conservatively reserve attempts and do not enforce Node-wide
69
70
  quota, credential scopes or a financial cap. No automatic POST retries.
70
71
  - Public certification can permanently disclose metadata. Private visibility
@@ -23,7 +23,7 @@ SDK packaging findings below belong to their separate distributions.
23
23
 
24
24
  | Published package | Version | Manifest license |
25
25
  | --- | --- | --- |
26
- | `@nexart/ai-execution` | 1.4.0 | MIT |
26
+ | `@nexart/ai-execution` | 1.4.1 | MIT |
27
27
  | `@nexart/consequential-execution` | 0.1.0 | MIT |
28
28
  | `@nexart/governed-execution` | 0.4.2 | MIT |
29
29
 
@@ -57,7 +57,7 @@ Fixture files are retained in the repository, not repackaged as original code. T
57
57
  synthetic/public test examples, not customer evidence.
58
58
 
59
59
  - `tests/fixtures/ai/compat-vectors-v1.json` and `compat-vectors-v2.json` came
60
- from the published AI 1.4.0 npm distribution.
60
+ from the published AI 1.4.1 npm distribution.
61
61
  - `tests/fixtures/governed/*.json` came from `artnames/governed-execution` at
62
62
  source revision `c45cba5972157bbc872009b21cdf066cb97c05e2`.
63
63
  The package manifest at that revision declares MIT. Its root listing
@@ -18,8 +18,8 @@ export declare function prepareOwnerConfidential(raw: unknown): {
18
18
  input: string | Record<string, unknown>;
19
19
  output: string | Record<string, unknown>;
20
20
  parameters: {
21
- temperature: number;
22
- maxTokens: number;
21
+ temperature: number | null;
22
+ maxTokens: number | null;
23
23
  topP: number | null;
24
24
  seed: number | null;
25
25
  };
@@ -12,6 +12,10 @@ 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
+ /** Checked raw-payload port for private storage-only acceptance. Shares the
16
+ * exact native-age primitive with CER recovery; grants no recording authority.
17
+ * The CER-bound wrapper below deliberately retains all its existing checks. */
18
+ export declare function encryptCustodyPayload(bytes: string, config: Pick<EncryptedCustody, 'recipient' | 'ageExecutable'>): Buffer;
15
19
  /** Shared in-memory encryption for a durable hosted storage port. No files or
16
20
  * private identity, and no new commitment/encryption implementation. */
17
21
  export declare function encryptRecoveryForRecipient(bundle: CerAiExecutionBundleV2, snapshot: Record<string, unknown>, openings: OpeningV2[], config: Pick<EncryptedCustody, 'recipient' | 'ageExecutable'>): Buffer;
@@ -66,6 +66,15 @@ function encrypt(config, bytes) {
66
66
  throw new EncryptedCustodyError('RECOVERY_ENCRYPTION_FAILED');
67
67
  }
68
68
  }
69
+ /** Checked raw-payload port for private storage-only acceptance. Shares the
70
+ * exact native-age primitive with CER recovery; grants no recording authority.
71
+ * The CER-bound wrapper below deliberately retains all its existing checks. */
72
+ export function encryptCustodyPayload(bytes, config) {
73
+ checkAgeRecipient(config);
74
+ if (typeof bytes !== 'string' || Buffer.byteLength(bytes) > LIMIT / 2)
75
+ throw Error('RECOVERY_LIMIT');
76
+ return encrypt(config, bytes);
77
+ }
69
78
  /** Shared in-memory encryption for a durable hosted storage port. No files or
70
79
  * private identity, and no new commitment/encryption implementation. */
71
80
  export function encryptRecoveryForRecipient(bundle, snapshot, openings, config) {
@@ -14,7 +14,7 @@ export async function verifyReceipt(args, network, policy = TRUST_POLICY, signal
14
14
  artifactIntegrity: 'not_performed', sdk: null,
15
15
  limitations: [
16
16
  'Signature validity does not establish signer trust, artifact integrity or execution truth.',
17
- 'No approved production key pins or historical exceptions are supplied by default.',
17
+ 'Signer trust requires an independently approved matching key pin and valid key lifecycle; discovery alone is not approval.',
18
18
  'Node-issued receipt time is not independently trusted time or RFC 3161 verification.',
19
19
  'A current key manifest is not an authenticated historical key archive.',
20
20
  ],
@@ -58,8 +58,8 @@ export declare const mcpRecordInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
58
58
  input: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
59
59
  output: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
60
60
  parameters: z.ZodObject<{
61
- temperature: z.ZodNumber;
62
- maxTokens: z.ZodNumber;
61
+ temperature: z.ZodNullable<z.ZodNumber>;
62
+ maxTokens: z.ZodNullable<z.ZodNumber>;
63
63
  topP: z.ZodNullable<z.ZodNumber>;
64
64
  seed: z.ZodNullable<z.ZodNumber>;
65
65
  }, z.core.$strict>;
@@ -143,8 +143,8 @@ export declare const recordDiscoveryInput: z.ZodObject<{
143
143
  input: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
144
144
  output: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
145
145
  parameters: z.ZodObject<{
146
- temperature: z.ZodNumber;
147
- maxTokens: z.ZodNumber;
146
+ temperature: z.ZodNullable<z.ZodNumber>;
147
+ maxTokens: z.ZodNullable<z.ZodNumber>;
148
148
  topP: z.ZodNullable<z.ZodNumber>;
149
149
  seed: z.ZodNullable<z.ZodNumber>;
150
150
  }, z.core.$strict>;
@@ -8,6 +8,7 @@ export interface RecordingConfig {
8
8
  publish?: RecordRuntime['publish'];
9
9
  /** Trusted hosted embedding only; no environment/stdio selector. */
10
10
  execute?: (args: unknown) => Promise<RecordResult>;
11
+ requirePolicyRevision?: boolean;
11
12
  }
12
13
  export declare function recordingConfig(env?: NodeJS.ProcessEnv): RecordingConfig;
13
14
  export declare function registerRecordingTool(server: McpServer, config?: RecordingConfig): void;
@@ -15,8 +15,9 @@ const hostedDiscovery = recordDiscoveryInput.omit({ bundle: true }).extend({
15
15
  execution: recordDiscoveryInput.shape.execution.unwrap(),
16
16
  createdAt: recordDiscoveryInput.shape.createdAt.unwrap(),
17
17
  certification: z.strictObject({
18
- mode: z.literal('node').default('node'), visibility: z.enum(['public', 'private']).optional(),
19
- }).optional(),
18
+ mode: z.literal('node').default('node'), visibility: z.enum(['public', 'private']),
19
+ policy_revision: z.number().int().positive().optional(),
20
+ }),
20
21
  });
21
22
  // Constant guidance only: never interpolate credentials, arguments or paths.
22
23
  const SETUP_MESSAGES = Object.freeze({
@@ -66,14 +67,18 @@ export function registerRecordingTool(server, config = recordingConfig()) {
66
67
  return;
67
68
  server.registerTool('nexart_record_execution', {
68
69
  description: config.execute
69
- ? 'Create and certify a new confidential AI V2 execution using the customer API key in the HTTP Authorization header and the approved NexArt dashboard policy. May consume the customer account allowance. Existing CERs and local-only mode are unsupported on hosted HTTP. Model/provider require policy approval; other optional readable metadata is rejected. Structural IDs, timestamps, parameters, roles, SDK version, hashes and commitment descriptors remain readable. Input/output, instructions and decision references receive confidential commitments and durable age-encrypted recovery custody before submission. Producer-supplied data is not an authenticated provider observation. No plaintext/openings returned. Keep a stable executionId on retries; uncertain submissions are never automatically repeated.'
70
+ ? 'Create and certify a new confidential AI V2 execution using the customer API key in the HTTP Authorization header and the approved NexArt dashboard policy. Explicitly select public or private visibility; there is no hosted default. May consume the customer account allowance. Existing CERs and local-only mode are unsupported on hosted HTTP. Model/provider require policy approval; other optional readable metadata is rejected. Structural IDs, timestamps, parameters, roles, SDK version, hashes and commitment descriptors remain readable. Input/output, instructions and decision references receive confidential commitments and durable age-encrypted recovery custody before submission. Producer-supplied data is not an authenticated provider observation. No plaintext/openings returned. Keep a stable executionId on retries; uncertain submissions are never automatically repeated.'
70
71
  : 'Record producer-supplied execution data as confidential AI V2 with encrypted recovery custody, or verify an unchanged existing confidential AI V2 CER. Node/public is the default intent. Automatic submission requires customer-configured API key, explicit delegation consent and disclosure policy; may consume quota. Missing setup is reported, never silently falls back. Explicit private and local-only supported. Does not observe all host interactions or authenticate a provider call. No openings or plaintext returned. No automatic POST retries.',
71
- inputSchema: config.execute ? hostedDiscovery : recordDiscoveryInput, outputSchema: recordOutput,
72
+ inputSchema: config.execute
73
+ ? (config.requirePolicyRevision ? hostedDiscovery.extend({
74
+ certification: hostedDiscovery.shape.certification.required({ policy_revision: true }),
75
+ }) : hostedDiscovery)
76
+ : recordDiscoveryInput, outputSchema: recordOutput,
72
77
  annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: Boolean(config.execute || config.publish) },
73
78
  }, async (args) => {
74
79
  // Discovery optionality never authorizes a partial or mixed branch.
75
80
  // Validate before reading runtime custody or calling any recording path.
76
- const parsed = mcpRecordInput.safeParse(args);
81
+ const parsed = (config.execute ? hostedDiscovery : mcpRecordInput).safeParse(args);
77
82
  if (!parsed.success)
78
83
  return {
79
84
  isError: true, content: [{ type: 'text', text: 'INVALID_RECORDING_ARGUMENTS' }],
package/dist/server.js CHANGED
@@ -11,7 +11,7 @@ const DESCRIPTIONS = [
11
11
  'Verify an inline Project Bundle and embedded AI CERs using the SDK; require project hash integrity.',
12
12
  ];
13
13
  export function createServer(runtime = {}) {
14
- const server = new McpServer({ name: 'nexart-mcp-server', version: '0.2.0' });
14
+ const server = new McpServer({ name: 'nexart-mcp-server', version: '0.3.0' });
15
15
  TOOL_NAMES.forEach((name, index) => {
16
16
  server.registerTool(name, {
17
17
  description: DESCRIPTIONS[index],
@@ -1,6 +1,12 @@
1
1
  export const TRUST_POLICY = Object.freeze({
2
2
  expectedNodeId: 'nexart-node-prod-1',
3
- // Intentionally empty. Adding a pin or historical exception requires separate approval.
4
- pins: Object.freeze([]),
3
+ // Independently approved by the owner against the active Railway production
4
+ // signer. Rotation and historical exceptions require separate approval.
5
+ pins: Object.freeze([
6
+ Object.freeze({
7
+ kid: 'k1',
8
+ publicKeyB64Url: '30ROjmcwj5oowj_fflAqdyacB0ik7eEnndzNKJmy9uU',
9
+ }),
10
+ ]),
5
11
  });
6
12
  //# sourceMappingURL=policy.js.map
@@ -15,8 +15,8 @@ export declare const executionSchema: z.ZodObject<{
15
15
  input: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
16
16
  output: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
17
17
  parameters: z.ZodObject<{
18
- temperature: z.ZodNumber;
19
- maxTokens: z.ZodNumber;
18
+ temperature: z.ZodNullable<z.ZodNumber>;
19
+ maxTokens: z.ZodNullable<z.ZodNumber>;
20
20
  topP: z.ZodNullable<z.ZodNumber>;
21
21
  seed: z.ZodNullable<z.ZodNumber>;
22
22
  }, z.core.$strict>;
@@ -61,8 +61,8 @@ export declare const sealInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
61
61
  input: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
62
62
  output: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
63
63
  parameters: z.ZodObject<{
64
- temperature: z.ZodNumber;
65
- maxTokens: z.ZodNumber;
64
+ temperature: z.ZodNullable<z.ZodNumber>;
65
+ maxTokens: z.ZodNullable<z.ZodNumber>;
66
66
  topP: z.ZodNullable<z.ZodNumber>;
67
67
  seed: z.ZodNullable<z.ZodNumber>;
68
68
  }, z.core.$strict>;
@@ -14,7 +14,8 @@ export const executionSchema = z.strictObject({
14
14
  executionId: text, timestamp: text, provider: text, model: text,
15
15
  input: z.union([z.string(), jsonObject]), output: z.union([z.string(), jsonObject]),
16
16
  parameters: z.strictObject({
17
- temperature: z.number(), maxTokens: z.number(),
17
+ // Required evidence: explicit null means unavailable, never an inferred default.
18
+ temperature: z.number().nullable(), maxTokens: z.number().nullable(),
18
19
  topP: z.number().nullable(), seed: z.number().nullable(),
19
20
  }),
20
21
  executionRole: z.enum(['advisory', 'operative', 'unspecified']),
@@ -1,8 +1,86 @@
1
1
  # NexArt MCP consumer guide
2
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
+
3
81
  ## Installation and compatibility
4
82
 
5
- Use Node.js 24 (`>=24.0.0 <25`) and install `@nexart/mcp-server@0.2.0`
83
+ Use Node.js 24 (`>=24.0.0 <25`) and install `@nexart/mcp-server@0.3.0`
6
84
  after the owner publishes that version. This repository currently prepares an
7
85
  unpublished release candidate; npm/Registry publication is a separate action.
8
86
  The npm package runs over stdio. Use an absolute Node/executable path when a
@@ -111,8 +189,11 @@ Native age decryption and SDK opening verification belong on the owner host.
111
189
 
112
190
  Integrity, receipt signature mathematics, hash binding, Node identity, key
113
191
  lifecycle and independently approved signer trust are separate conclusions.
114
- No production trust pins or historical exceptions are supplied by default.
115
- A valid signature may therefore report `UNAPPROVED_KEY`/trust not established.
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.
116
197
  The tools do not establish execution truth, producer authenticity, completeness
117
198
  or RFC 3161 timestamp cryptography. Receipt verification is not verification
118
199
  of a separate verification-envelope signature.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexart/mcp-server",
3
- "version": "0.2.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": { "node": ">=24.0.0 <25" },
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,20 @@
23
25
  "nexart-recover-confidential": "./dist/recover-confidential.js"
24
26
  },
25
27
  "files": [
26
- "dist/**/*.js", "dist/**/*.d.ts",
28
+ "dist/**/*.js",
29
+ "dist/**/*.d.ts",
27
30
  "docs/consumer-guide.md",
28
31
  "docs/examples/customer-claude-desktop.json",
29
32
  "docs/examples/customer-consent.json",
30
33
  "docs/examples/customer-custody.json",
31
34
  "docs/examples/customer-policy.json",
32
35
  "./server.json",
33
- "./THIRD_PARTY_NOTICES.md", "./CHANGELOG.md", "./SECURITY.md", "./CONTRIBUTING.md",
34
- "./LICENSE", "./NOTICE"
36
+ "./THIRD_PARTY_NOTICES.md",
37
+ "./CHANGELOG.md",
38
+ "./SECURITY.md",
39
+ "./CONTRIBUTING.md",
40
+ "./LICENSE",
41
+ "./NOTICE"
35
42
  ],
36
43
  "scripts": {
37
44
  "build": "tsc -p tsconfig.json",
@@ -46,7 +53,7 @@
46
53
  },
47
54
  "dependencies": {
48
55
  "@modelcontextprotocol/server": "2.4.0",
49
- "@nexart/ai-execution": "1.4.0",
56
+ "@nexart/ai-execution": "1.4.1",
50
57
  "@nexart/consequential-execution": "0.1.0",
51
58
  "@nexart/governed-execution": "0.4.2",
52
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": "Verify NexArt evidence and opt in to confidential AI recording and authorised Node certification.",
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.2.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.2.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
  }