@icoretech/warden-mcp 0.1.10 → 0.1.12

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 CHANGED
@@ -121,7 +121,7 @@ docker run --rm -p 3005:3005 ghcr.io/icoretech/warden-mcp
121
121
  ### Global install
122
122
 
123
123
  ```bash
124
- npm install -g @icoretech/warden-mcp
124
+ npm install -g @icoretech/warden-mcp@latest
125
125
  warden-mcp
126
126
  ```
127
127
 
@@ -130,7 +130,7 @@ warden-mcp
130
130
  For local MCP hosts, stdio is the most portable option.
131
131
 
132
132
  ```bash
133
- npx -y @icoretech/warden-mcp --stdio
133
+ npx -y @icoretech/warden-mcp@latest --stdio
134
134
  ```
135
135
 
136
136
  The examples below use Bitwarden API-key auth. If you prefer username/password login, replace `BW_CLIENTID` + `BW_CLIENTSECRET` with `BW_USER`.
@@ -146,10 +146,10 @@ codex mcp add warden \
146
146
  --env BW_CLIENTID=user.xxxxx \
147
147
  --env BW_CLIENTSECRET=xxxxx \
148
148
  --env BW_PASSWORD='your-master-password' \
149
- -- npx -y @icoretech/warden-mcp --stdio
149
+ -- npx -y @icoretech/warden-mcp@latest --stdio
150
150
 
151
151
  # Claude Code
152
- claude mcp add-json warden '{"command":"npx","args":["-y","@icoretech/warden-mcp","--stdio"],"env":{"BW_HOST":"https://vaultwarden.example.com","BW_CLIENTID":"user.xxxxx","BW_CLIENTSECRET":"xxxxx","BW_PASSWORD":"your-master-password"}}'
152
+ claude mcp add-json warden '{"command":"npx","args":["-y","@icoretech/warden-mcp@latest","--stdio"],"env":{"BW_HOST":"https://vaultwarden.example.com","BW_CLIENTID":"user.xxxxx","BW_CLIENTSECRET":"xxxxx","BW_PASSWORD":"your-master-password"}}'
153
153
 
154
154
  # Qwen Code
155
155
  qwen mcp add warden \
@@ -157,7 +157,7 @@ qwen mcp add warden \
157
157
  -e BW_CLIENTID=user.xxxxx \
158
158
  -e BW_CLIENTSECRET=xxxxx \
159
159
  -e BW_PASSWORD=your-master-password \
160
- npx -y @icoretech/warden-mcp --stdio
160
+ npx -y @icoretech/warden-mcp@latest --stdio
161
161
  ```
162
162
 
163
163
  ### JSON config hosts
package/bin/warden-mcp.js CHANGED
@@ -3,9 +3,9 @@
3
3
  // bin/warden-mcp.js — CLI entry for @icoretech/warden-mcp
4
4
 
5
5
  import { spawnSync } from 'node:child_process';
6
- import { accessSync, constants, existsSync } from 'node:fs';
6
+ import { accessSync, constants, existsSync, readFileSync } from 'node:fs';
7
7
  import { createRequire } from 'node:module';
8
- import { dirname, join, resolve } from 'node:path';
8
+ import { dirname, resolve } from 'node:path';
9
9
  import { fileURLToPath } from 'node:url';
10
10
 
11
11
  const __dirname = dirname(fileURLToPath(import.meta.url));
@@ -14,12 +14,12 @@ const __dirname = dirname(fileURLToPath(import.meta.url));
14
14
  if (!process.env.BW_BIN) {
15
15
  try {
16
16
  const require = createRequire(import.meta.url);
17
- // @bitwarden/cli installs the binary at <pkg>/dist/bw (the npm bin shim
18
- // lives at node_modules/.bin/bw, but we resolve to the actual package).
17
+ const { resolveBundledBwCandidate } = await import(
18
+ resolve(__dirname, '../dist/bw/resolveBwBin.js')
19
+ );
19
20
  const pkgManifest = require.resolve('@bitwarden/cli/package.json');
20
- const pkgDir = dirname(pkgManifest);
21
- // The CLI binary is published as `bw` (no extension) inside the package.
22
- const candidate = join(pkgDir, 'dist', 'bw');
21
+ const pkgJson = JSON.parse(readFileSync(pkgManifest, 'utf8'));
22
+ const candidate = resolveBundledBwCandidate(pkgManifest, pkgJson.bin);
23
23
  if (existsSync(candidate)) {
24
24
  try {
25
25
  accessSync(candidate, constants.X_OK);
@@ -0,0 +1,10 @@
1
+ import { dirname, join } from 'node:path';
2
+ export function resolveBundledBwCandidate(pkgManifestPath, pkgBin) {
3
+ const pkgDir = dirname(pkgManifestPath);
4
+ const binEntry = typeof pkgBin === 'string'
5
+ ? pkgBin
6
+ : typeof pkgBin?.bw === 'string'
7
+ ? pkgBin.bw
8
+ : 'dist/bw';
9
+ return join(pkgDir, binEntry);
10
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@icoretech/warden-mcp",
4
- "version": "0.1.10",
4
+ "version": "0.1.12",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "description": "Vaultwarden/Bitwarden MCP server backed by Bitwarden CLI (bw).",
@@ -48,7 +48,7 @@
48
48
  "zod": "^4.3.6"
49
49
  },
50
50
  "optionalDependencies": {
51
- "@bitwarden/cli": "2026.2.0"
51
+ "@bitwarden/cli": "2026.1.0"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@biomejs/biome": "^2.4.8",