@icoretech/warden-mcp 0.2.33 → 0.2.34
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/README.md +10 -10
- package/bin/patch-bitwarden-cli-lib.js +20 -1
- package/package.json +5 -4
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
[](https://www.npmjs.com/package/@icoretech/warden-mcp)
|
|
6
6
|
[](https://github.com/icoretech/warden-mcp/actions/workflows/ci.yml)
|
|
7
7
|
[](LICENSE)
|
|
8
|
-
[](package.json)
|
|
9
9
|
[](https://ghcr.io/icoretech/warden-mcp)
|
|
10
10
|
|
|
11
11
|
`warden-mcp` lets MCP clients search, create, update, move, and read
|
|
@@ -25,8 +25,8 @@ simplest and most portable setup for desktop agents.
|
|
|
25
25
|
|
|
26
26
|
Prerequisites:
|
|
27
27
|
|
|
28
|
-
- Node.js
|
|
29
|
-
- npm
|
|
28
|
+
- Node.js 22.x
|
|
29
|
+
- npm 10.x
|
|
30
30
|
- a Vaultwarden or Bitwarden account
|
|
31
31
|
- either a Bitwarden API key pair or username/password login
|
|
32
32
|
|
|
@@ -242,24 +242,24 @@ default. If you use a bind mount, make it writable by uid/gid `1000`.
|
|
|
242
242
|
|
|
243
243
|
## Runtime Requirements
|
|
244
244
|
|
|
245
|
-
`warden-mcp` requires Node.js
|
|
246
|
-
image includes the supported Node runtime.
|
|
245
|
+
`warden-mcp` requires Node.js 22.x and npm 10.x when running from npm or source.
|
|
246
|
+
The Docker image includes the supported Node runtime.
|
|
247
247
|
|
|
248
248
|
The server resolves `bw` in this order:
|
|
249
249
|
|
|
250
250
|
1. `BW_BIN`, when set
|
|
251
|
-
2. bundled `@bitwarden/cli`
|
|
251
|
+
2. bundled `@bitwarden/cli` dependency
|
|
252
252
|
3. system `bw` from `PATH`
|
|
253
253
|
|
|
254
|
-
The bundled `@bitwarden/cli` version is currently `2026.
|
|
254
|
+
The bundled `@bitwarden/cli` version is currently `2026.8.0`. This project keeps
|
|
255
255
|
that version vetted instead of blindly tracking every upstream release, because
|
|
256
256
|
auth and unlock behavior can change in ways that break automation.
|
|
257
257
|
|
|
258
|
-
If
|
|
259
|
-
|
|
258
|
+
If `bw` is missing, install the CLI explicitly or point `BW_BIN` to a known
|
|
259
|
+
binary:
|
|
260
260
|
|
|
261
261
|
```bash
|
|
262
|
-
npm install -g @bitwarden/cli@2026.
|
|
262
|
+
npm install -g @bitwarden/cli@2026.8.0
|
|
263
263
|
BW_BIN=/absolute/path/to/bw npx -y @icoretech/warden-mcp@latest --stdio
|
|
264
264
|
```
|
|
265
265
|
|
|
@@ -45,10 +45,29 @@ function buildCompatBlock(indent) {
|
|
|
45
45
|
const strategyMethodRegex =
|
|
46
46
|
/(setAccountCryptographicState\(response, userId\) \{\n\s+return [^\n]+\(\s*this, void 0, void 0, function\* \(\) \{\n)(\s*)yield this\.accountCryptographicStateService\.setAccountCryptographicState\(response\.accountKeysResponseModel\.toWrappedAccountCryptographicState\(\), userId\);\n(\s*\}\);\n\s*\})/g;
|
|
47
47
|
|
|
48
|
+
const guardedStateRegex =
|
|
49
|
+
/(^[ \t]*)if \(response\.accountKeysResponseModel\) \{\n[ \t]+yield this\.accountCryptographicStateService\.setAccountCryptographicState\(response\.accountKeysResponseModel\.toWrappedAccountCryptographicState\(\), userId\);\n\1\}/gm;
|
|
50
|
+
|
|
48
51
|
export function patchBundledBwSource(source) {
|
|
49
52
|
let replacements = 0;
|
|
50
53
|
|
|
51
|
-
const
|
|
54
|
+
const guardedSource = source.replace(
|
|
55
|
+
guardedStateRegex,
|
|
56
|
+
(match, indent, offset, originalSource) => {
|
|
57
|
+
if (
|
|
58
|
+
originalSource
|
|
59
|
+
.slice(0, offset)
|
|
60
|
+
.endsWith(`${indent}/* ${compatMarker} */\n`)
|
|
61
|
+
) {
|
|
62
|
+
return match;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
replacements += 1;
|
|
66
|
+
return buildCompatBlock(indent);
|
|
67
|
+
},
|
|
68
|
+
);
|
|
69
|
+
|
|
70
|
+
const patchedSource = guardedSource.replace(
|
|
52
71
|
strategyMethodRegex,
|
|
53
72
|
(_match, prefix, indent, suffix) => {
|
|
54
73
|
replacements += 1;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"private": false,
|
|
3
3
|
"name": "@icoretech/warden-mcp",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.34",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"description": "Vaultwarden/Bitwarden MCP server backed by Bitwarden CLI (bw).",
|
|
@@ -39,12 +39,12 @@
|
|
|
39
39
|
"start": "node dist/server.js",
|
|
40
40
|
"test": "npm run build && node --test \"dist/**/*.test.js\"",
|
|
41
41
|
"test:coverage": "npm run build && node --test --experimental-test-coverage \"dist/**/*.test.js\"",
|
|
42
|
-
"test:integration": "npm run build && node --test --test-concurrency=1 --test-timeout=
|
|
42
|
+
"test:integration": "npm run build && node --test --test-concurrency=1 --test-timeout=180000 \"dist/integration/**/*.test.js\"",
|
|
43
43
|
"test:session-regression": "node scripts/session-flood-regression.mjs",
|
|
44
44
|
"lint": "biome check --write --assist-enabled=true . && tsc --noEmit"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@bitwarden/cli": "2026.
|
|
47
|
+
"@bitwarden/cli": "2026.8.0",
|
|
48
48
|
"@modelcontextprotocol/sdk": "^1.30.0",
|
|
49
49
|
"express": "^5.2.1",
|
|
50
50
|
"zod": "^4.5.2"
|
|
@@ -66,6 +66,7 @@
|
|
|
66
66
|
"access": "public"
|
|
67
67
|
},
|
|
68
68
|
"engines": {
|
|
69
|
-
"node": "
|
|
69
|
+
"node": "~22",
|
|
70
|
+
"npm": "~10"
|
|
70
71
|
}
|
|
71
72
|
}
|