@icoretech/warden-mcp 0.2.14 → 0.2.15
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/dist/bw/bwSession.js
CHANGED
|
@@ -172,7 +172,9 @@ export class BwSessionManager {
|
|
|
172
172
|
}
|
|
173
173
|
const summaryParts = isUnlocked
|
|
174
174
|
? ['Vault access ready']
|
|
175
|
-
: [
|
|
175
|
+
: [
|
|
176
|
+
'Vault access not ready yet; this lazy status check does not unlock the vault, but keychain tools will attempt unlock/recovery on demand',
|
|
177
|
+
];
|
|
176
178
|
if (userEmail)
|
|
177
179
|
summaryParts.push(`for ${userEmail}`);
|
|
178
180
|
if (serverUrl)
|
|
@@ -183,6 +185,10 @@ export class BwSessionManager {
|
|
|
183
185
|
operational: {
|
|
184
186
|
ready: isUnlocked,
|
|
185
187
|
sessionValid: isUnlocked,
|
|
188
|
+
recoverable: !isUnlocked,
|
|
189
|
+
nextAction: isUnlocked
|
|
190
|
+
? 'continue'
|
|
191
|
+
: 'call a keychain tool such as search_items or get_username to initialize vault access on demand',
|
|
186
192
|
source: 'session_manager',
|
|
187
193
|
},
|
|
188
194
|
};
|
|
@@ -108,7 +108,7 @@ export function registerTools(server, deps) {
|
|
|
108
108
|
}
|
|
109
109
|
registerTool(`${deps.toolPrefix}.status`, {
|
|
110
110
|
title: 'Vault Status',
|
|
111
|
-
description: 'Returns Bitwarden CLI status (locked/unlocked, server, user).',
|
|
111
|
+
description: 'Returns Bitwarden CLI status (locked/unlocked, server, user). This is a lazy check: not-ready status does not mean later keychain tool calls cannot unlock or recover on demand.',
|
|
112
112
|
annotations: { readOnlyHint: true },
|
|
113
113
|
inputSchema: {},
|
|
114
114
|
_meta: toolMeta,
|