@icoretech/warden-mcp 0.1.18 → 0.1.20

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.
@@ -156,12 +156,19 @@ export class BwSessionManager {
156
156
  this.configuredHost = null;
157
157
  await runBw(['logout'], { env: this.baseEnv(), timeoutMs: 30_000 }).catch(() => { });
158
158
  const home = this.homeDir;
159
- await rm(join(home, '.config', 'Bitwarden CLI', 'data.json'), {
160
- force: true,
161
- }).catch(() => { });
162
- await rm(join(home, '.config', 'Bitwarden CLI', 'config.json'), {
163
- force: true,
164
- }).catch(() => { });
159
+ const cliStateDirs = [
160
+ join(home, '.config', 'Bitwarden CLI'),
161
+ join(home, 'Library', 'Application Support', 'Bitwarden CLI'),
162
+ join(home, 'AppData', 'Roaming', 'Bitwarden CLI'),
163
+ ];
164
+ for (const dir of cliStateDirs) {
165
+ await rm(join(dir, 'data.json'), {
166
+ force: true,
167
+ }).catch(() => { });
168
+ await rm(join(dir, 'config.json'), {
169
+ force: true,
170
+ }).catch(() => { });
171
+ }
165
172
  }
166
173
  async ensureUnlockedInternal() {
167
174
  // Ensure server config points to BW_HOST.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@icoretech/warden-mcp",
4
- "version": "0.1.18",
4
+ "version": "0.1.20",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "description": "Vaultwarden/Bitwarden MCP server backed by Bitwarden CLI (bw).",