cf-memory-mcp 3.9.1 → 3.9.2
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/bin/cf-memory-mcp.js +17 -1
- package/package.json +1 -1
package/bin/cf-memory-mcp.js
CHANGED
|
@@ -1694,6 +1694,21 @@ class CFMemoryMCP {
|
|
|
1694
1694
|
});
|
|
1695
1695
|
_mcpTrace('AUTO_REFRESH_DONE', `refreshed=${refreshResult.files_refreshed || 0}`);
|
|
1696
1696
|
|
|
1697
|
+
// If refresh itself errored or refreshed 0 files, return the
|
|
1698
|
+
// original response with a clear note rather than re-querying
|
|
1699
|
+
// and pretending the refresh succeeded.
|
|
1700
|
+
if (refreshResult.error || (refreshResult.files_refreshed || 0) === 0) {
|
|
1701
|
+
try {
|
|
1702
|
+
parsed.auto_refresh_failed = {
|
|
1703
|
+
attempted: stalePaths.length,
|
|
1704
|
+
error: refreshResult.error || 'refresh ran but indexed 0 files (paths may be unreadable or project_root mismatched)',
|
|
1705
|
+
skipped: refreshResult.skipped,
|
|
1706
|
+
};
|
|
1707
|
+
response.result.content[0].text = JSON.stringify(parsed);
|
|
1708
|
+
} catch (_) { /* best-effort tag */ }
|
|
1709
|
+
return response;
|
|
1710
|
+
}
|
|
1711
|
+
|
|
1697
1712
|
// Re-run the original retrieve_context (without auto_refresh
|
|
1698
1713
|
// to prevent loops). Server cache invalidates on write so the
|
|
1699
1714
|
// re-query sees fresh data.
|
|
@@ -1712,7 +1727,8 @@ class CFMemoryMCP {
|
|
|
1712
1727
|
if (freshText) {
|
|
1713
1728
|
const freshParsed = JSON.parse(freshText);
|
|
1714
1729
|
freshParsed.auto_refreshed = {
|
|
1715
|
-
files_refreshed: refreshResult.files_refreshed
|
|
1730
|
+
files_refreshed: refreshResult.files_refreshed,
|
|
1731
|
+
chunks_created: refreshResult.chunks_created || 0,
|
|
1716
1732
|
file_paths: stalePaths,
|
|
1717
1733
|
};
|
|
1718
1734
|
fresh.result.content[0].text = JSON.stringify(freshParsed);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cf-memory-mcp",
|
|
3
|
-
"version": "3.9.
|
|
3
|
+
"version": "3.9.2",
|
|
4
4
|
"description": "Cloudflare-hosted MCP server for code indexing, retrieval, and assistant memory with a direct remote MCP endpoint and local stdio bridge.",
|
|
5
5
|
"main": "bin/cf-memory-mcp.js",
|
|
6
6
|
"bin": {
|