@icoretech/warden-mcp 0.1.7 → 0.1.8

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.
@@ -65,7 +65,7 @@ export class BwSessionManager {
65
65
  parsed = JSON.parse(stdout);
66
66
  }
67
67
  catch (err) {
68
- throw new Error(`Failed to parse bw template output: ${stdout.slice(0, 200)}`, { cause: err });
68
+ throw new Error(`Failed to parse bw template output (${stdout.length} bytes)`, { cause: err });
69
69
  }
70
70
  this.templateItem = parsed;
71
71
  return parsed;
@@ -113,7 +113,7 @@ export class BwSessionManager {
113
113
  parsed = JSON.parse(stdout);
114
114
  }
115
115
  catch (err) {
116
- throw new Error(`Failed to parse bw status output: ${stdout.slice(0, 200)}`, { cause: err });
116
+ throw new Error(`Failed to parse bw status output (${stdout.length} bytes)`, { cause: err });
117
117
  }
118
118
  const serverUrl = typeof parsed.serverUrl === 'string' ? parsed.serverUrl : this.env.host;
119
119
  const userEmail = typeof parsed.userEmail === 'string'
@@ -176,7 +176,12 @@ export class KeychainSdk {
176
176
  return JSON.parse(stdout);
177
177
  }
178
178
  catch (err) {
179
- throw new Error(`Failed to parse bw CLI output: ${stdout.slice(0, 200)}`, { cause: err });
179
+ // Do not include raw stdout it may contain unredacted secrets.
180
+ const length = stdout.length;
181
+ const preview = stdout.startsWith('{')
182
+ ? '{...}'
183
+ : stdout.slice(0, 8).replace(/[^\x20-\x7E]/g, '?');
184
+ throw new Error(`Failed to parse bw CLI output (${length} bytes, starts with: ${preview})`, { cause: err });
180
185
  }
181
186
  }
182
187
  tryParseJson(stdout) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@icoretech/warden-mcp",
4
- "version": "0.1.7",
4
+ "version": "0.1.8",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "description": "Vaultwarden/Bitwarden MCP server backed by Bitwarden CLI (bw).",