@exaudeus/memory-mcp 1.9.6 → 1.9.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.
- package/dist/index.js +10 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -652,9 +652,13 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
652
652
|
break;
|
|
653
653
|
}
|
|
654
654
|
case 'global-only': {
|
|
655
|
-
// No project lobes matched — ask agent to specify
|
|
655
|
+
// No project lobes matched — ask agent to specify or bootstrap
|
|
656
|
+
const lobeNames = configManager.getLobeNames();
|
|
657
|
+
const recallHint = lobeNames.length === 0
|
|
658
|
+
? `No lobes configured. Run memory_bootstrap(lobe: "your-project-name", root: "/absolute/path/to/repo") to create one, then retry.`
|
|
659
|
+
: `Cannot determine which lobe to search. Specify the lobe: recall(lobe: "...", context: "${context}")\nAvailable: ${lobeNames.join(', ')}\nIf this is a new project, run memory_bootstrap(lobe: "your-project-name", root: "/absolute/path/to/repo") to create a lobe.`;
|
|
656
660
|
return {
|
|
657
|
-
content: [{ type: 'text', text:
|
|
661
|
+
content: [{ type: 'text', text: recallHint }],
|
|
658
662
|
isError: true,
|
|
659
663
|
};
|
|
660
664
|
}
|
|
@@ -1780,8 +1784,10 @@ async function main() {
|
|
|
1780
1784
|
await writeCrashReport(report).catch(() => { });
|
|
1781
1785
|
}
|
|
1782
1786
|
}
|
|
1783
|
-
// Determine server mode based on lobe health
|
|
1784
|
-
|
|
1787
|
+
// Determine server mode based on lobe health.
|
|
1788
|
+
// Zero configured lobes is a valid operational state: tools should stay available
|
|
1789
|
+
// so the agent can bootstrap the first project lobe.
|
|
1790
|
+
if (lobeConfigs.size > 0 && healthyLobes === 0) {
|
|
1785
1791
|
serverMode = {
|
|
1786
1792
|
kind: 'safe-mode',
|
|
1787
1793
|
error: `All ${lobeConfigs.size} lobes failed to initialize.`,
|