@nexart/mcp-server 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/CHANGELOG.md +63 -8
  2. package/CONTRIBUTING.md +7 -5
  3. package/README.md +47 -31
  4. package/SECURITY.md +8 -7
  5. package/THIRD_PARTY_NOTICES.md +2 -2
  6. package/dist/contracts.js +3 -2
  7. package/dist/json-schema.d.ts +9 -0
  8. package/dist/json-schema.js +20 -0
  9. package/dist/lookup/contracts.js +2 -1
  10. package/dist/network/contracts.d.ts +2 -2
  11. package/dist/owner/custody.d.ts +3 -0
  12. package/dist/owner/custody.js +26 -16
  13. package/dist/protocol-safety.d.ts +3 -0
  14. package/dist/protocol-safety.js +16 -0
  15. package/dist/receipts/contracts.d.ts +2 -2
  16. package/dist/receipts/contracts.js +2 -1
  17. package/dist/record/contracts.d.ts +42 -0
  18. package/dist/record/contracts.js +5 -0
  19. package/dist/record/record.d.ts +3 -0
  20. package/dist/record/record.js +6 -2
  21. package/dist/record-tools.d.ts +3 -0
  22. package/dist/record-tools.js +15 -5
  23. package/dist/server.d.ts +11 -1
  24. package/dist/server.js +5 -5
  25. package/dist/stdio.js +3 -19
  26. package/dist/write/attest.d.ts +3 -0
  27. package/dist/write/attest.js +2 -1
  28. package/dist/write/contracts.d.ts +2 -2
  29. package/docs/consumer-guide.md +133 -0
  30. package/package.json +11 -4
  31. package/server.json +2 -2
  32. package/docs/age-version-compatibility.md +0 -46
  33. package/docs/architecture.md +0 -72
  34. package/docs/compatibility.md +0 -163
  35. package/docs/contracts.md +0 -127
  36. package/docs/licensing-review.md +0 -109
  37. package/docs/milestone-1-validation.md +0 -110
  38. package/docs/milestone-2.md +0 -291
  39. package/docs/milestone-3.2.md +0 -291
  40. package/docs/milestone-3.md +0 -274
  41. package/docs/milestone-4a.md +0 -221
  42. package/docs/milestone-4b1.md +0 -220
  43. package/docs/milestone-4b2.md +0 -260
  44. package/docs/public-default.md +0 -263
  45. package/docs/recording-schema-compatibility.md +0 -46
  46. package/docs/release.md +0 -311
  47. package/docs/security-fixes.md +0 -47
  48. package/docs/security.md +0 -195
  49. package/docs/standalone-acceptance.md +0 -81
  50. package/docs/validation.md +0 -85
@@ -1,263 +0,0 @@
1
- # Public-default certification and owner confidential creation
2
-
3
- ## Independent concepts and compatibility
4
-
5
- - **Confidential evidence:** SDK commitments hide selected content without
6
- encrypting the CER. Readable metadata and hashes remain public/correlatable.
7
- - **Ordinary evidence:** raw producer content; the MCP `from_execution` path
8
- remains ordinary. `from_snapshot` preserves ordinary or precommitted evidence.
9
- Neither contract silently changes confidentiality.
10
- - **Public certification:** omitted visibility or explicit `public`. The MCP
11
- always sends `X-NexArt-Visibility: public` after authorization.
12
- - **Private certification:** explicit `visibility: "private"` and explicit private
13
- HTTP header. Fixture A and its private runner remain unchanged.
14
- - **Publication authorization:** separate host enablement (off by default) and
15
- owner TTY grant binding the exact serialized CER, including unhashed metadata,
16
- credential, destination, account context and disclosure profile. Five-minute
17
- authenticated expiry and atomic single use remain mandatory. No POST retries.
18
- - **Identity:** optional SDK identity is integrity-bound producer declaration;
19
- `verified: true` is not authentication by MCP, Node API key, or an identity provider.
20
- - **Integrity/trust:** SDK integrity and valid Ed25519 signatures do not establish
21
- independently trusted signer identity. Production trust pins remain empty.
22
- - **Execution:** attestation verifies evidence, not observed execution, truth,
23
- completeness, or model/provider provenance.
24
-
25
- Changing the omitted visibility default is intentionally behavior-incompatible
26
- for callers that relied on omission meaning private. They must send explicit
27
- private. Public capability remains off; omitted unapproved requests fail before
28
- POST, never fall back to private. Existing sealed CERs/hashes are never rewritten.
29
- No Node/SDK changes, new cryptography, database or hosted custody service.
30
-
31
- ## Owner confidential creation
32
-
33
- Use a trusted isolated owner account/device, not an agent shell or MCP client.
34
- The owner explicitly approves local file custody at the controlling terminal.
35
- The `nexart-create-confidential` command is not an MCP tool and makes no HTTP
36
- requests. Use an owner-encrypted volume (for example an encrypted APFS volume)
37
- for custody and arrange an owner-only offline backup. The command does not
38
- create encryption or claim to verify the encryption/backup configuration.
39
-
40
- From the validated package directory:
41
-
42
- ```sh
43
- umask 077
44
- mkdir -m 700 /absolute/owner-encrypted-volume/nexart-custody
45
- # Owner writes input.json locally with mode 0600. Do NOT paste plaintext in chat.
46
- chmod 600 /absolute/owner-only/input.json
47
- node dist/create-confidential.js /absolute/owner-only/input.json \
48
- /absolute/owner-encrypted-volume/nexart-custody
49
- ```
50
-
51
- Owner input structure:
52
-
53
- ```json
54
- {
55
- "execution": {
56
- "executionId": "owner-chosen-id",
57
- "timestamp": "2026-11-11T00:00:00.000Z",
58
- "provider": "producer-declared",
59
- "model": "producer-declared",
60
- "input": {"text": "owner-only content"},
61
- "output": {"text": "owner-only result"},
62
- "parameters": {"temperature": 0, "maxTokens": 8, "topP": null, "seed": null},
63
- "executionRole": "advisory"
64
- },
65
- "createdAt": "2026-11-11T00:00:01.000Z"
66
- }
67
- ```
68
-
69
- Input and output always receive SDK 1.4.0 confidential commitments using fresh
70
- SDK-generated 32-byte random salts. No caller salt option exists. Optional
71
- `protectInstruction: true` requires an SDK-supported instruction;
72
- `decisionRefIndexes: [0]` commits selected existing public-string SDK decision
73
- references. Other sensitive-field options are rejected, not silently ignored.
74
- Identity is optional and remains readable. Protecting additional SDK-supported
75
- fields does not automatically make that CER eligible for the narrower existing
76
- MCP submission disclosure profile; it may correctly reject it without alteration.
77
-
78
- After the owner types `RETAIN OWNER RECOVERY`, the command exclusively creates
79
- a certificate-hash-named directory with:
80
-
81
- - `recovery.json`: original execution plaintext **and** SDK openings (salts),
82
- mode 0600. Openings alone do not contain the plaintext needed to verify them.
83
- - `cer.json`: unmodified SDK CER, written only after recovery material is
84
- retained and synchronized. Only this file may be exported after metadata review.
85
-
86
- The directory is mode 0700, existing files are never overwritten, and stdout
87
- contains only a constant status and certificate hash. Failures emit a constant
88
- message, not SDK diagnostics. Private partial files are intentionally retained
89
- for owner recovery. Unsaved openings from a failed creation cannot be recovered;
90
- no successful export is authorized on failure. Do not export any incomplete transaction. There is no
91
- automatic deletion, backup, encrypted file format, remote vault, secure erase,
92
- power-loss guarantee across all filesystems, or protection against same-UID
93
- agents/root/malware. Losing plaintext or salts prevents later opening
94
- verification; it does not invalidate the sealed CER's commitment authenticity.
95
- These are explicit limits of this approved local custody mechanism.
96
-
97
- ## Fixture C and offline Mac preflight
98
-
99
- C is entirely synthetic; its repeated salts are a test vector, **never production
100
- defaults**. Expected SDK 1.4.0 hash:
101
-
102
- `sha256:96d4f83ed3d023030fa44ec08e435cde4f2322f19d59695062b8654f847858f4`
103
-
104
- Minimum: Node 24.x, pnpm 10.26.1, frozen package and local terminal. Extract the
105
- new release archive into a new directory; do not mix it with the 306-test release.
106
- Compare its SHA-256 to the new validation report, not the old archive checksum.
107
-
108
- ```sh
109
- shasum -a 256 /absolute/path/nexart-mcp-server-0.1.0.tgz
110
- # In a fresh directory:
111
- tar -xzf /absolute/path/nexart-mcp-server-0.1.0.tgz
112
- cd package
113
- unset NODE_OPTIONS NODE_PATH
114
- pnpm install --frozen-lockfile --ignore-scripts
115
- pnpm run build
116
- node tests/acceptance/private-run.mjs --preflight A "$HOME/nexart-private-preflight"
117
- node tests/acceptance/public-run.mjs --preflight C "$HOME/nexart-public-acceptance"
118
- ```
119
-
120
- Preflight reads no key, starts no MCP child, and makes no network request. Review
121
- the generated `public-C/request.json`, `preflight.json`, and
122
- `disclosure-review.json`. The last is a complete **source-backed synthetic**
123
- resolver projection, not a captured live response. It includes display bundle,
124
- canonical certificate/envelope payloads, identity/descriptors, proof, verification,
125
- context, timestamps and links. All are checked for C's protected plaintext and
126
- openings. Node-generated signatures/timestamps are public, not secrecy boundaries.
127
-
128
- On the Mac itself (offline, **synthetic credential only**):
129
-
130
- ```sh
131
- node tests/acceptance/public-run.mjs --check-approval C "$HOME/nexart-public-acceptance"
132
- ```
133
-
134
- This runs the existing approval command, requires the owner to type the displayed
135
- `PUBLISH sha256:...` confirmation, then proves single use. It makes no Node call,
136
- never asks for a live key, and saves the actual OS in its validation record.
137
- Linux pseudo-terminal validation does not establish Mac validation or isolation.
138
- Do not rerun in the same output directory after an existing evidence record.
139
-
140
- ## Enforceable host isolation before public enablement
141
-
142
- A controlling terminal, mode 0600, API key, typed declaration, or model argument
143
- does not isolate an agent that has the same UID. There is no trustworthy automatic
144
- test for all possible agent access. The simplest safe deployment is a separate
145
- owner-controlled Mac with no agent shell, remote-control agent, agent-accessible
146
- account credentials, or shared writable installation/approval/custody paths.
147
- Alternatively an administrator can enforce a dedicated account with agents
148
- unable to log in, execute as that UID, read secrets, control its terminal or
149
- modify its executable/dependencies. Exclude shared mounts and remote-control access.
150
-
151
- The live C runner requires administrative provisioning, not an owner/model flag:
152
-
153
- - Root-owned, non-group/world-writable package **and entire dependency tree**
154
- under a dedicated real installation root, including pnpm link targets.
155
- - Root-controlled actual Node executable and all ancestor directories. A normal
156
- user-writable Node manager installation will fail this check.
157
- - Extended macOS ACLs are conservatively rejected, even deny-only ACLs, because
158
- POSIX ownership/modes alone cannot prove that no other account can write.
159
- - A root-owned regular, single-link policy file at
160
- `/Library/Application Support/NexArt/public-acceptance-host.json`, with
161
- root-controlled ancestors and exactly these keys:
162
-
163
- ```json
164
- {
165
- "version": 1,
166
- "ownerUid": 501,
167
- "agentAccess": "denied_by_administrator",
168
- "installationRoot": "/Library/NexArt",
169
- "nodeExecutable": "/absolute/root-controlled/real/node"
170
- }
171
- ```
172
-
173
- 501 is only an example; the administrator must use the actual isolated owner UID
174
- and real Node path. Do not run acceptance as root. Provisioning requires a real
175
- administrator and independent review of agent exclusion; the JSON alone cannot
176
- enforce or discover it. Do not install this policy on a same-UID agent host. The
177
- runner enforces the non-owner-writable policy and executable boundary and refuses
178
- preloads/alternate module paths. It cannot defend a compromised administrator,
179
- Node, OS, owner UID or a false administrative isolation assertion.
180
-
181
- ```sh
182
- node tests/acceptance/public-run.mjs --check-isolation C "$HOME/nexart-public-acceptance"
183
- ```
184
-
185
- **Current blocker:** this project environment is not an isolated Mac. Actual Mac
186
- policy provisioning, owner-command validation and exclusion of agent access have
187
- not been established. No public capability is enabled by this milestone.
188
-
189
- ## Separately authorized one-shot live procedure — NOT authorized now
190
-
191
- Only after a separate owner authorization for C, the account/destination, one
192
- quota-consuming attempt and readback, and after isolation checks pass:
193
-
194
- 1. Owner checks C does not already exist with conflicting visibility; no attempt
195
- to change fixture A or republish an existing private certificate.
196
- 2. Owner executes the command below only on the provisioned isolated Mac.
197
- 3. Runner requires disclosure consent, owner account context, then hidden
198
- terminal entry of the authorized test key. No argv/chat/diagnostic credential.
199
- 4. Existing approval CLI displays the full CER and requests exact `PUBLISH`
200
- confirmation. Approval is not auto-generated from consent or model input.
201
- 5. Existing `nexart_attest_cer` MCP tool is invoked once with omitted visibility.
202
- It sends explicit public only after consuming the exact-body grant.
203
- 6. A permanent attempt marker is created before the call. Any interruption,
204
- rejection or ambiguous result requires owner GET reconciliation, never an
205
- automatic replacement approval or POST retry.
206
- 7. Owner GET must return the exact original CER/hash and public state. SDK
207
- integrity/authenticity and receipt signature/binding/lifecycle are checked
208
- independently; trust remains `not_established`.
209
- 8. A bounded anonymous GET to the fixed exact-hash resolver must return 200 and
210
- pass complete C disclosure/canonical producer-binding checks. Unknown producer
211
- fields fail closed. Raw response bodies, account records and diagnostics are
212
- not retained. The runner saves selected redacted acceptance summaries only.
213
-
214
- ```sh
215
- # FUTURE ONLY — separate live authorization required:
216
- node tests/acceptance/public-run.mjs --execute-authorized C "$HOME/nexart-public-acceptance"
217
- ```
218
-
219
- One-shot markers/evidence files must never be removed to “retry.” Reconcile
220
- unknown outcomes by separately authorized exact-hash GETs. Retire the credential
221
- only after reconciliation according to owner policy. Dedicated keys are not
222
- proof of endpoint-scoped permissions or a hard per-key certification budget.
223
-
224
- ## Browser verifier acceptance
225
-
226
- Open **https://verify.nexart.io**, select **Verify by Certificate Hash**, and paste
227
- the complete SHA-256 certificate identifier. The deployed hash form was inspected
228
- during the accepted audit; no hash deep-link route is assumed.
229
-
230
- Check exact identifier, certificate canonical SHA-256, Ed25519 envelope signature
231
- and producer/attestation/key bindings. The audited AI verifier path's “Verified”
232
- label does not independently verify the SDK receipt or establish pinned signer
233
- trust. Those are separate checks; if the UI implies trusted identity without an
234
- independent trust basis, record a verifier acceptance gap, do not approve pins.
235
-
236
- After the actual live lookup, the owner can record structured manual results:
237
-
238
- ```sh
239
- node tests/acceptance/public-run.mjs --verifier-review C "$HOME/nexart-public-acceptance"
240
- ```
241
-
242
- This records explicit PASS/FAIL owner observations; it does not claim automated
243
- browser verification. A Node-acceptance PASS is not completion of this separate
244
- manual verifier stage. Neither stage was performed during implementation.
245
-
246
- ## Validation and release evidence
247
-
248
- The original 306-test archive/evidence under `security-fixes-validation` is
249
- preserved. Run the new isolated release suite once per new output directory:
250
-
251
- ```sh
252
- node tests/validation/run.mjs --public-default
253
- ```
254
-
255
- It creates `generated-artifacts/public-default-validation`, frozen-installs/builds
256
- in isolation, runs all baseline tests plus focused additions, benchmarks, checks
257
- an exact production-change allowlist against the frozen archive, packs a separate
258
- archive, and independently installs and invokes both MCP protocol revisions.
259
- Two private-path test setup arguments explicitly select private to retain their
260
- original intent; assertions are not weakened. Approval races, tampering, strict
261
- protectedSet validation and all seven read-only/opt-in write tool tests remain.
262
- The package remains private and UNLICENSED; no Git mutations, npm publication,
263
- upstream changes, production key access or live Node attestation are authorized.
@@ -1,46 +0,0 @@
1
- # Recording input discovery compatibility
2
-
3
- The recording tool now advertises a conventional strict root object with five
4
- named properties: `kind`, `execution`, `bundle`, `createdAt`, `certification`.
5
- Only `kind` is required at discovery level. There is no root `oneOf`, `anyOf`
6
- or `allOf`; unknown root properties remain forbidden.
7
-
8
- This addresses hosts that only expose root properties and otherwise display
9
- the prior branch-only schema as an empty object. Nested execution, parameter,
10
- identity and CER constraints remain advertised. Identity hash prefixes use
11
- standard `pattern:"^sha256:"` rather than the nonstandard `starts_with` format.
12
- The JSON Schema draft URI remains `https://json-schema.org/draft/2020-12/schema`.
13
-
14
- Discovery optionality does not change accepted calls. The handler explicitly
15
- parses every request through the original strict `mcpRecordInput` discriminated
16
- union before invoking recording or accessing runtime custody. Invalid branch
17
- combinations return the constant `INVALID_RECORDING_ARGUMENTS`, without echoing
18
- rejected input. The SDK may reject invalid nested/unknown fields even earlier.
19
- Both rejection routes preserve protocol-era response envelopes.
20
-
21
- - `kind:"execution"` requires the existing complete execution shape and a
22
- nonempty `createdAt`; `bundle` is forbidden.
23
- - `kind:"cer"` requires the existing CER shape; execution-only fields are forbidden.
24
- - Local mode plus visibility is rejected; node/public defaults are unchanged.
25
- - Identity runtime checks retain their existing SDK-compatible prefix-only
26
- semantics. Discovery does not impose a new complete-hash requirement.
27
- - SDK artifact integrity/commitment checks still reject corrupt CERs before
28
- invoking the publisher. No CER is stripped, resealed or rewritten for discovery.
29
-
30
- Only the recording contracts/registration sources change. Credentials, customer
31
- consent, policy, encrypted custody, hashing, Node transport, exact-payload
32
- authorization, attempts, usage and receipt/trust verification are not modified.
33
-
34
- Validation uses both MCP revisions (`2025-11-25`, `2026-07-28`), direct handler
35
- side-effect guards and an independently installed tarball. It preserves all 512
36
- baseline tests. The new suite runs with:
37
-
38
- ```sh
39
- node tests/validation/run.mjs --recording-schema
40
- ```
41
-
42
- Evidence is separate from the frozen 512-test package. Actual Claude Desktop
43
- remote-device discovery must still be confirmed by the owner on their Mac:
44
- install the new archive, restart/reconnect the server, ensure cached discovery
45
- is refreshed, confirm all five fields appear and first invoke explicit local
46
- mode. No live Node submission is authorized by this compatibility fix.
package/docs/release.md DELETED
@@ -1,311 +0,0 @@
1
- # First npm and MCP Registry release
2
-
3
- Release version: `0.1.0`
4
-
5
- ## Approval gates
6
-
7
- Final public-distribution configuration is authorised; the owner alone executes
8
- publication manually. Name/version remain
9
- `@nexart/mcp-server@0.1.0`, subject to a final registry availability check.
10
- Artnames Ltd confirmed original-code ownership and authorised Apache-2.0, now
11
- applied in LICENSE/NOTICE and the manifest. The owner explicitly authorised
12
- removing `private:true` for the final candidate. SECURITY.md uses the designated
13
- security@nexart.io contact. The owner independently tests mailbox delivery and
14
- monitoring and confirms npm publishing authority before executing publication;
15
- this preparation does not claim those checks complete.
16
- Public npm distribution does not require a public GitHub repository.
17
-
18
- Before public release the owner must:
19
-
20
- 1. **Completed:** original-code ownership confirmation and Apache-2.0 licence
21
- authorisation from Artnames Ltd, with standard LICENSE and scoped NOTICE.
22
- This does not authorise third-party SDKs/fixtures. See [the rights review](licensing-review.md).
23
- 2. **Completed for the inspected npm archive:** external SDK MIT declarations
24
- and archive boundaries were reviewed. No third-party redistribution blocker
25
- was identified in the MCP tarball. SDK notice packaging corrections belong
26
- upstream; excluded fixtures/private history are public-GitHub concerns only.
27
- Do not publish those excluded materials without separate clearance.
28
- 3. **Completed configuration:** removal of `private:true` is expressly authorised
29
- for this final preparation. The agent must not publish. Prepared
30
- `publishConfig` targets public access on `https://registry.npmjs.org/`.
31
- 4. Confirm npm `@nexart` scope publishing permission after owner browser login/
32
- 2FA. The current CLI returned ENEEDAUTH; no account was available for a
33
- permission check, and no login/token was requested or performed by the agent.
34
- Registry namespace `artnames` authority is a separate later Registry step,
35
- not an npm publication gate. Matching metadata does not prove authority.
36
- 5. Test delivery and monitoring of the owner-designated security@nexart.io route
37
- documented in [SECURITY.md](../SECURITY.md). No response SLA is promised.
38
- GitHub private vulnerability reporting is one option for a public repository,
39
- not a requirement to make this repository public. A real monitored alternative
40
- suffices for npm while the source repository remains private.
41
-
42
- SDK-side findings and public-repository fixture permissions are tracked in
43
- [the rights review](licensing-review.md), not conflated with npm gates.
44
-
45
- No approved production trust pin is added. Do not claim trusted production
46
- signer verification; `UNAPPROVED_KEY` remains an expected fail-closed result.
47
-
48
- ## Versioning and release management
49
-
50
- Use Semantic Versioning. PATCH releases are backward-compatible corrections;
51
- MINOR releases add backward-compatible capabilities. For stable versions >=1.0.0,
52
- breaking changes require MAJOR and a migration guide.
53
-
54
- During 0.x development, a breaking change must increment MINOR and reset PATCH
55
- (for example 0.1.3 → 0.2.0), never hide in a patch. Compatible additions also use
56
- MINOR; document breaking changes prominently so users do not infer stability from
57
- 0.x ranges. Transition to 1.0.0 is an explicit stable-contract decision. Keep
58
- client commands version-pinned where repeatability matters.
59
-
60
- For each approved version update, synchronise:
61
-
62
- - `package.json.version`;
63
- - `server.json.version` and its npm package version;
64
- - the matching `CHANGELOG.md` entry and current status;
65
- - this document's release-version marker, commands, README examples and any
66
- current release instructions (historical milestone records stay unchanged);
67
- - release assertions when tied to the intended release contract.
68
-
69
- The pnpm v9 lockfile has no root package version, so a version-only change needs
70
- no invented lockfile edit. Regenerate/review it with the pinned pnpm when
71
- dependencies/importer data actually change; verify frozen install afterward.
72
- Use tags `v0.1.0`, `v0.1.1`, `v0.2.0`, etc. Do not reuse tags or npm versions.
73
- Do not use an automatic versioning command that commits/tags without explicit
74
- owner approval.
75
-
76
- ### Release checklist
77
-
78
- 1. **Change review:** verify scope, backwards compatibility and rights/notices;
79
- exclude separate Node/SDK/Terminal changes and customer data.
80
- 2. **Version selection:** apply the policy above, check registry availability,
81
- and approve the version.
82
- 3. **Changelog:** move reviewed Unreleased items to the matching version;
83
- at the actual release cut finalise status/date without inventing history.
84
- 4. **Security checks:** review dependency audit and security regressions,
85
- trust/consent/disclosure limits, archive contents and private reporting route.
86
- Run additional security scanning when warranted; findings are not cleared by
87
- a passing test count.
88
- 5. **Complete tests:** run all top-level and validation test files, no skips.
89
- 6. **Build:** frozen clean checkout, compilation and typecheck on Node 24.
90
- 7. **Archive inspection:** use the npm-created archive, verify metadata,
91
- licence/notices, file boundary and retained hash.
92
- 8. **Clean installation:** npm production-only tarball consumer; both protocols,
93
- implicit executable discovery, recording/recovery and fail-closed consent.
94
- 9. **npm publication:** only after rights, final licence/private changes and
95
- explicit approval; publish the exact newly validated archive with 2FA.
96
- 10. **MCP Registry:** confirm namespace control; validate matching metadata and
97
- register the already-public exact npm version.
98
- 11. **Public verification:** anonymous npm metadata/download/install, compare
99
- published `dist.integrity` to the validated candidate, client protocol check
100
- and Registry lookup. No new live certifications are needed.
101
- 12. **Git/GitHub release:** owner reviews/commits the exact release state, creates
102
- the matching annotated tag and pushes branch/tag manually. Create the GitHub
103
- release through the owner UI using the changelog and approved artifact/hash.
104
-
105
- Any change to packed files after validation requires a newly validated archive.
106
- Publication is manual; validation runs no Git, npm publish or Registry publish.
107
-
108
- ## Replit Shell: after all gates are approved
109
-
110
- Execute the blocks in the same private Bash session. They deliberately stop
111
- while the package remains private or UNLICENSED. Do not paste tokens into
112
- commands, chat, logs or repository files. Never enable shell tracing.
113
-
114
- The final candidate is already configured without private:true under explicit
115
- owner authorisation. Before publishing, the owner must test mailbox delivery/
116
- monitoring and confirm npm authority; no agent authentication is needed.
117
-
118
- ### 1. Validate and select the fresh archive
119
-
120
- ```bash
121
- set -euo pipefail
122
- set +x
123
- cd /home/runner/workspace
124
- node --input-type=module <<'NODE'
125
- import assert from 'node:assert/strict';
126
- import fs from 'node:fs';
127
- const p = JSON.parse(fs.readFileSync('package.json'));
128
- assert.equal(process.versions.node.split('.')[0], '24');
129
- assert.equal(p.name, '@nexart/mcp-server');
130
- assert.equal(p.version, '0.1.0');
131
- assert.notEqual(p.private, true, 'STOP: publication has not been enabled');
132
- assert.ok(p.license && p.license !== 'UNLICENSED', 'STOP: approve licensing first');
133
- assert.ok(['LICENSE', 'LICENSE.md', 'LICENSE.txt'].some(f => fs.existsSync(f)),
134
- 'STOP: approved licence file is missing');
135
- assert.equal(p.mcpName, 'io.github.artnames/nexart-mcp-server');
136
- NODE
137
-
138
- pnpm install --frozen-lockfile --ignore-scripts
139
- pnpm run validate:release
140
- export SUMMARY="$(ls -t generated-artifacts/npm-release/run-*/release-summary.json | head -n 1)"
141
- export TGZ="$(node -e '
142
- const fs=require("node:fs"),path=require("node:path");
143
- const s=JSON.parse(fs.readFileSync(process.argv[1]));
144
- if(s.result!=="PASS" || s.manifest.private===true || s.manifest.license==="UNLICENSED")
145
- throw Error("STOP: no approved passing candidate");
146
- process.stdout.write(path.resolve(s.package.archive));
147
- ' "$SUMMARY")"
148
- sha256sum "$TGZ"
149
- tar -tzf "$TGZ"
150
- ```
151
-
152
- Review the archive listing and recorded test/installed results before continuing.
153
- The archive includes the approved Apache licence and scoped NOTICE.
154
- Historical private preparation archives must not be published. Use only the
155
- newly validated public-configuration archive, after owner-side checks.
156
-
157
- ### 2. Check availability and authenticate
158
-
159
- Enable account 2FA on npm's website, preferably a security key/passkey, and
160
- confirm scope/team permissions. A public 404 is not a reservation or proof of
161
- scope control. If 0.1.0 is already published, stop; do not overwrite it or change
162
- version without approval.
163
-
164
- ```bash
165
- node --input-type=module <<'NODE'
166
- const r=await fetch('https://registry.npmjs.org/@nexart%2fmcp-server/0.1.0');
167
- if(r.status===200) throw Error('STOP: 0.1.0 is already published');
168
- if(r.status!==404) throw Error(`STOP: availability check failed (${r.status})`);
169
- console.log('0.1.0 is not publicly visible; confirm scope permission separately.');
170
- NODE
171
-
172
- umask 077
173
- export AUTH_DIR="$(mktemp -d "$HOME/.cache/nexart-npm-auth.XXXXXX")"
174
- export NPM_CONFIG_USERCONFIG="$AUTH_DIR/npmrc"
175
- install -m 600 /dev/null "$NPM_CONFIG_USERCONFIG"
176
- npm login --auth-type=web --registry=https://registry.npmjs.org/
177
- npm whoami --registry=https://registry.npmjs.org/
178
- npm org ls nexart --json --registry=https://registry.npmjs.org/
179
- npm access list packages "$(npm whoami --registry=https://registry.npmjs.org/)" \
180
- --json --registry=https://registry.npmjs.org/
181
- ```
182
-
183
- Review organisation role/team settings and confirm permission to create the
184
- new @nexart/mcp-server package. Write permission on a different SDK is not
185
- proof of new-package creation permission. If these queries do not establish it,
186
- confirm with an npm organisation owner in npm's website before continuing.
187
- No package-creation permission is claimed by a publication dry run.
188
-
189
- Open npm's displayed URL in your browser. Current interactive publication
190
- requires 2FA. Legacy access tokens are no longer supported. Granular
191
- bypass-2FA tokens are not needed for this procedure; do not create one for it.
192
- The login file contains credentials: do not print/share it. npm CLI documentation
193
- contains some stale legacy-token wording; use the current account-security rules.
194
-
195
- ### 3. Publish the exact tested archive
196
-
197
- ```bash
198
- npm publish "$TGZ" --dry-run --ignore-scripts \
199
- --access public --registry=https://registry.npmjs.org/
200
- read -r -p "Type PUBLISH to publish @nexart/mcp-server@0.1.0 publicly: " CONFIRM
201
- test "$CONFIRM" = PUBLISH
202
- npm publish "$TGZ" --ignore-scripts \
203
- --access public --tag latest --registry=https://registry.npmjs.org/
204
- ```
205
-
206
- Complete any browser/2FA challenge; do not pass a token or OTP in command-line
207
- arguments. Name/version combinations cannot be reused after publication.
208
-
209
- ### 4. Verify anonymous access and install
210
-
211
- ```bash
212
- env -i PATH="$PATH" HOME="$HOME" NPM_CONFIG_USERCONFIG=/dev/null \
213
- npm view @nexart/mcp-server@0.1.0 name version license bin dist.integrity \
214
- --registry=https://registry.npmjs.org/
215
-
216
- export PUBLIC_CONSUMER="$(mktemp -d "$HOME/.cache/nexart-public-consumer.XXXXXX")"
217
- printf '{"name":"nexart-public-check","version":"1.0.0","private":true}\n' \
218
- > "$PUBLIC_CONSUMER/package.json"
219
- (
220
- cd "$PUBLIC_CONSUMER"
221
- env -i PATH="$PATH" HOME="$HOME" NPM_CONFIG_USERCONFIG=/dev/null \
222
- npm install --omit=dev --ignore-scripts --registry=https://registry.npmjs.org/ \
223
- @nexart/mcp-server@0.1.0
224
- )
225
- npm logout --registry=https://registry.npmjs.org/
226
- rm -f "$NPM_CONFIG_USERCONFIG"
227
- rmdir "$AUTH_DIR"
228
- unset NPM_CONFIG_USERCONFIG AUTH_DIR
229
- ```
230
-
231
- The package page is https://www.npmjs.com/package/@nexart/mcp-server.
232
- Use the README's explicit subprocess command with an MCP client to verify the
233
- published version's protocol behaviour; an idle terminal launch is not a protocol test.
234
-
235
- ## Official MCP Registry
236
-
237
- The Registry is a separate metadata publication, currently in preview.
238
- `server.json.name` equals the package's `mcpName`; package identifier and
239
- version match the npm release, with `stdio` transport and no required secret.
240
- Default verification requires no certification API key.
241
-
242
- Install the official `mcp-publisher` binary using the official quickstart.
243
- Do not regenerate/overwrite the prepared server.json with `init`.
244
- After npm publication and separate Registry approval:
245
-
246
- ```bash
247
- cd /home/runner/workspace
248
- mcp-publisher login github
249
- mcp-publisher validate
250
- mcp-publisher publish
251
- curl --fail --silent --show-error \
252
- 'https://registry.modelcontextprotocol.io/v0.1/servers?search=io.github.artnames/nexart-mcp-server'
253
- ```
254
-
255
- Authenticate as an account authorised for the `artnames` GitHub namespace.
256
- Do not share device codes or credentials. Registration is not client-specific
257
- marketplace approval, nor a hosted endpoint. Replit's custom MCP connection UI
258
- requires HTTPS; this release adds no HTTP transport or bridge.
259
-
260
- ## Manual Git release tag and GitHub release
261
-
262
- These are owner-executed instructions only. No Git operation was performed
263
- during preparation. Do not push unresolved upstream fixtures or other unapproved
264
- material. First clear repository redistribution checks, review and manually
265
- commit the approved release files;
266
- confirm `origin` is the standalone `artnames/nexart-mcp-server` repository and
267
- the HEAD commit is the source of the validated/published archive.
268
-
269
- ```bash
270
- set -euo pipefail
271
- cd /home/runner/workspace
272
- git remote get-url origin
273
- git status --short
274
- git add -- LICENSE NOTICE package.json server.json README.md CHANGELOG.md \
275
- SECURITY.md CONTRIBUTING.md THIRD_PARTY_NOTICES.md replit.md \
276
- docs/release.md docs/licensing-review.md docs/security.md \
277
- docs/compatibility.md docs/validation.md \
278
- tests/installed-package.mjs tests/release-validation.mjs \
279
- tests/release-packaging.test.mjs
280
- git diff --cached --check
281
- git diff --cached --stat
282
- read -r -p "Type COMMIT after reviewing the staged release and rights clearance: " CONFIRM
283
- test "$CONFIRM" = COMMIT
284
- git commit -m "Prepare NexArt MCP Server 0.1.0 release"
285
- test -z "$(git status --porcelain)"
286
- node -e 'if(require("./package.json").version!=="0.1.0") throw Error("Version mismatch")'
287
- export RELEASE_BRANCH="$(git symbolic-ref --quiet --short HEAD)"
288
- git tag -a v0.1.0 -m "NexArt MCP Server 0.1.0"
289
- git push origin "$RELEASE_BRANCH"
290
- git push origin refs/tags/v0.1.0
291
- git ls-remote --tags origin refs/tags/v0.1.0 'refs/tags/v0.1.0^{}'
292
- ```
293
-
294
- Stop if the working tree is not clean, origin is wrong or the tag exists.
295
- The explicit add list avoids blanket staging of customer/generated material.
296
- It does not grant permission to push upstream fixtures already in repository
297
- history; review that history/rights before publishing the repository.
298
- Do not force-push or move an existing release tag. In GitHub's release UI select
299
- `v0.1.0`, use the reviewed changelog, and attach only approved distribution/hash
300
- evidence—not the workspace, credentials, policies, recovery or upstream fixtures
301
- without redistribution authority.
302
-
303
- ## Sources
304
-
305
- - https://docs.npmjs.com/creating-and-publishing-scoped-public-packages
306
- - https://docs.npmjs.com/requiring-2fa-for-package-publishing-and-settings-modification
307
- - https://docs.npmjs.com/about-access-tokens
308
- - https://docs.npmjs.com/cli/v11/commands/npm-exec
309
- - https://modelcontextprotocol.io/registry/quickstart
310
- - https://modelcontextprotocol.io/registry/package-types
311
- - https://docs.replit.com/build/connect-via-mcp
@@ -1,47 +0,0 @@
1
- # Disclosure and approval-integrity corrections
2
-
3
- These are two narrowly scoped corrections following the comprehensive local
4
- security validation. Neither changes SDK cryptography, the CER body, Node
5
- visibility semantics, trust pins, dependency versions or public-off defaults.
6
-
7
- ## Confidential submission descriptors
8
-
9
- Private and public confidential submissions accept only the supported
10
- `protectedSet` descriptor keys: `stabilitySchemeId`, `protectedSetId` and
11
- `protectedFields`. The pinned SDK still validates their values and commitments.
12
- Additional descriptor keys are rejected before HTTP, not removed or resealed.
13
- Read-only SDK verification remains unchanged.
14
-
15
- This closes a disclosure-policy gap: a certificate can have valid SDK integrity
16
- while containing extra, hash-covered descriptor data that must not be sent.
17
-
18
- ## Authenticated local approvals
19
-
20
- New local approval files use grant version `1` and authenticate the version,
21
- profile, context digest, issuance and expiry with a domain-separated HMAC. The
22
- context digest still binds the exact CER body, account, destination and public
23
- visibility. Consumption checks the MAC in constant time, enforces the existing
24
- five-minute window and retains exclusive creation and atomic single-use claims.
25
-
26
- Unsigned legacy files fail closed. Owners must create a fresh approval using the
27
- updated owner CLI; existing grants are not silently upgraded. Rejected claimed
28
- files are consumed and removed, as before.
29
-
30
- This only protects against editing grant files without the credential. A process
31
- controlling the owner's OS user, terminal or credentials is not separated from
32
- the owner by this mechanism. Keep public submission off on an agent-controlled
33
- same-user host; a genuinely separate trusted operator boundary is still needed.
34
-
35
- ## Validation
36
-
37
- Run `node tests/validation/run.mjs` for an isolated frozen install, build,
38
- all original and expanded tests, benchmark, package inspection and installed
39
- CLI checks on both MCP protocol revisions. It requires zero failed/skipped tests
40
- and permits only these two production source changes relative to the retained
41
- pre-fix baseline. Evidence is written separately under
42
- `generated-artifacts/security-fixes-validation/`, preserving the original
43
- failure report.
44
-
45
- All network exercise uses synthetic fixtures and loopback servers. Passing this
46
- validation does not prove live Canonical Node acceptance, public-host isolation
47
- or production release readiness, and does not authorize any live submission.