@smartergpt/lex-mcp 4.0.0 → 4.0.2

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 (2) hide show
  1. package/README.md +19 -12
  2. package/package.json +4 -3
package/README.md CHANGED
@@ -52,7 +52,7 @@ Not sure which path applies? Give an agent the bounded, read-only
52
52
 
53
53
  ## Smallest reversible smoke test
54
54
 
55
- This POSIX-shell test launches version `4.0.0`, performs only the MCP handshake and `tools/list`,
55
+ This POSIX-shell test launches version `4.0.2`, performs only the MCP handshake and `tools/list`,
56
56
  and confines the package cache and any Lex compatibility state to one temporary directory. It does
57
57
  not call a write tool or modify the repository.
58
58
 
@@ -71,13 +71,13 @@ smoke_dir="$(mktemp -d)"
71
71
  | LEX_WORKSPACE_ROOT="$smoke_dir" \
72
72
  LEX_DB_PATH="$smoke_dir/memory.db" \
73
73
  npm_config_cache="$smoke_dir/npm-cache" \
74
- npx --yes @smartergpt/lex-mcp@4.0.0
74
+ npx --yes @smartergpt/lex-mcp@4.0.2
75
75
  )
76
76
 
77
77
  find "$smoke_dir" -maxdepth 4 -print
78
78
  ```
79
79
 
80
- A successful response identifies `lex-mcp` version `4.0.0` and returns Lex's tool list. Review the
80
+ A successful response identifies `lex-mcp` version `4.0.2` and returns Lex's tool list. Review the
81
81
  printed temporary path, then remove only that directory:
82
82
 
83
83
  ```bash
@@ -103,7 +103,7 @@ Add to `.vscode/mcp.json`:
103
103
  "lex": {
104
104
  "type": "stdio",
105
105
  "command": "npx",
106
- "args": ["--yes", "@smartergpt/lex-mcp@4.0.0"],
106
+ "args": ["--yes", "@smartergpt/lex-mcp@4.0.2"],
107
107
  "env": {
108
108
  "LEX_WORKSPACE_ROOT": "${workspaceFolder}"
109
109
  }
@@ -122,7 +122,7 @@ local workspace:
122
122
  "mcpServers": {
123
123
  "lex": {
124
124
  "command": "npx",
125
- "args": ["--yes", "@smartergpt/lex-mcp@4.0.0"],
125
+ "args": ["--yes", "@smartergpt/lex-mcp@4.0.2"],
126
126
  "env": {
127
127
  "LEX_WORKSPACE_ROOT": "/absolute/path/to/project"
128
128
  }
@@ -230,11 +230,11 @@ wrapper release:
230
230
  - supports the exact same Node.js range as Lex.
231
231
 
232
232
  For this release, the wrapper, dependency pin, installed Lex core, and server-reported version are
233
- all `4.0.0`; the Node range is `>=24`.
233
+ all `4.0.2`; the Node range is `>=24`.
234
234
 
235
- Publish the matching Lex release before publishing this wrapper. Prepublication CI applies the
236
- staged wrapper version only to its disposable Lex checkout, then builds, installs, and packs that
237
- local source. It must not persist a `file:` dependency.
235
+ Publish the matching Lex release before publishing this wrapper. Candidate CI installs the exact
236
+ public dependency graph from the committed lockfile, rebuilds native dependencies, runs the delivery
237
+ gate, and packs one retained wrapper artifact. It must not use or persist a `file:` dependency.
238
238
 
239
239
  After Lex is public:
240
240
 
@@ -243,9 +243,16 @@ After Lex is public:
243
243
  3. verify no `file:` dependency was introduced;
244
244
  4. commit the resulting lockfile before creating the signed release tag or publishing Lex-MCP.
245
245
 
246
- The release workflow verifies the signed tag, exact package/dependency versions, registry lock
247
- integrity, Node alignment, public exports, packed artifact, server version, and canonical tool list.
248
- Publishing remains manual because npm 2FA requires interactive authorization.
246
+ An explicit `workflow_dispatch` from the exact current `main` commit with `publish=true` builds and
247
+ tests the retained candidate on Linux and Windows, rechecks live `main`, and publishes those exact
248
+ bytes through npm Trusted Publishing with provenance. The `npm-release` environment restricts that
249
+ OIDC authority to `main`; npm holds no long-lived automation token for this repository. The workflow
250
+ then verifies public integrity and binds npm's signed provenance to this repository, workflow, ref,
251
+ and source commit.
252
+
253
+ After public verification, create and push the signed annotated release tag at that same commit. The
254
+ tag lane re-verifies the immutable tag, public package, retained artifact, and live `main` identity
255
+ before creating the GitHub release.
249
256
 
250
257
  ## Develop and verify
251
258
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartergpt/lex-mcp",
3
- "version": "4.0.0",
3
+ "version": "4.0.2",
4
4
  "description": "MCP server for Lex episodic memory - stdio transport wrapper",
5
5
  "mcpName": "dev.smartergpt/lex",
6
6
  "type": "module",
@@ -26,8 +26,9 @@
26
26
  "README.md"
27
27
  ],
28
28
  "scripts": {
29
- "test": "npm run test:types && node test-stdio.mjs && node test-contract.mjs && node test-mcp-server.mjs --local --clean",
29
+ "test": "npm run test:types && npm run test:release-policy && node test-stdio.mjs && node test-contract.mjs && node test-mcp-server.mjs --local --clean",
30
30
  "test:types": "tsc --noEmit --skipLibCheck --module NodeNext --moduleResolution NodeNext --target ES2022 stdio.d.ts test-types.mts",
31
+ "test:release-policy": "node test-release-policy.mjs",
31
32
  "test:stdio": "node test-stdio.mjs",
32
33
  "test:contract": "node test-contract.mjs",
33
34
  "test:contract:verbose": "node test-contract.mjs --verbose",
@@ -40,7 +41,7 @@
40
41
  "link:local": "rm -rf node_modules/@smartergpt/lex && mkdir -p node_modules/@smartergpt && ln -s /srv/lex-mcp/lex node_modules/@smartergpt/lex"
41
42
  },
42
43
  "dependencies": {
43
- "@smartergpt/lex": "4.0.0"
44
+ "@smartergpt/lex": "4.0.2"
44
45
  },
45
46
  "publishConfig": {
46
47
  "access": "public",