cf-memory-mcp 3.8.8 → 3.8.9
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 +20 -4
- package/package.json +1 -1
package/bin/cf-memory-mcp.js
CHANGED
|
@@ -903,8 +903,17 @@ class CFMemoryMCP {
|
|
|
903
903
|
|
|
904
904
|
let filesList = [];
|
|
905
905
|
try {
|
|
906
|
-
|
|
907
|
-
if (
|
|
906
|
+
const parsed = JSON.parse(listFilesRes.result.content[0].text);
|
|
907
|
+
if (Array.isArray(parsed)) {
|
|
908
|
+
filesList = parsed;
|
|
909
|
+
} else if (parsed && parsed.error) {
|
|
910
|
+
// Server returned {error, hint} — surface it instead of
|
|
911
|
+
// pretending there are zero indexed files.
|
|
912
|
+
return respond({
|
|
913
|
+
error: parsed.error,
|
|
914
|
+
hint: parsed.hint || `find_stale_files needs a valid project_id; got "${projectIdOrName}"`,
|
|
915
|
+
});
|
|
916
|
+
}
|
|
908
917
|
} catch (_) {
|
|
909
918
|
return respond({ error: 'Failed to list indexed files' });
|
|
910
919
|
}
|
|
@@ -984,8 +993,15 @@ class CFMemoryMCP {
|
|
|
984
993
|
});
|
|
985
994
|
let filesList = [];
|
|
986
995
|
try {
|
|
987
|
-
|
|
988
|
-
if (
|
|
996
|
+
const parsed = JSON.parse(listRes.result.content[0].text);
|
|
997
|
+
if (Array.isArray(parsed)) {
|
|
998
|
+
filesList = parsed;
|
|
999
|
+
} else if (parsed && parsed.error) {
|
|
1000
|
+
return respond({
|
|
1001
|
+
error: parsed.error,
|
|
1002
|
+
hint: parsed.hint || `refresh_stale needs a valid project_id; got "${projectIdOrName}"`,
|
|
1003
|
+
});
|
|
1004
|
+
}
|
|
989
1005
|
} catch (_) {
|
|
990
1006
|
return respond({ error: 'Failed to list indexed files' });
|
|
991
1007
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cf-memory-mcp",
|
|
3
|
-
"version": "3.8.
|
|
3
|
+
"version": "3.8.9",
|
|
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": {
|