You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**Three resources** - File index in XML, JSON, and Markdown formats with subscription support
29
29
-**Three prompts** - Built-in prompts for file analysis, search context, and summary explanation
30
-
-**Fallback operation** - Graceful degradation to in-memory index when daemon unavailable
30
+
-**Partial fallback** - Two tools (get_file_metadata, list_recent_files) degrade to in-memory index when daemon unavailable
31
31
-**Real-time updates** - SSE client receives index changes and notifies subscribed clients
32
32
33
33
## Design Principles
@@ -42,7 +42,7 @@ Tool handlers implement a common Handler interface with Name, Execute, and ToolD
42
42
43
43
### Dual-Source Fallback Strategy
44
44
45
-
Three of the five tools (search_files, get_file_metadata, list_recent_files) implement dual-source logic: they first attempt the daemon HTTP API for current graph data, then fall back to the in-memory index if the daemon is unavailable. This enables degraded operation without complete failure. The remaining tools (get_related_files, search_entities) require the daemon's graph database and cannot fall back.
45
+
Two of the five tools (get_file_metadata, list_recent_files) implement dual-source logic: they first attempt the daemon HTTP API for current graph data, then fall back to the in-memory index if the daemon is unavailable. This enables degraded operation without complete failure. The remaining three tools (search_files, get_related_files, search_entities) require the daemon's graph database for their full functionality and return clear error messages when the daemon is unavailable.
46
46
47
47
### Thread-Safe Index Updates
48
48
@@ -74,7 +74,7 @@ The protocol package defines all JSON-RPC 2.0 and MCP message types. Core types
74
74
75
75
Five tool handlers implement the Handler interface:
76
76
77
-
**search_files** - Semantic search with query, optional categories filter, and max_results limit. Tries daemon API first, falls back to index search with fuzzy matching.
77
+
**search_files** - Semantic search with query, optional categories filter, and max_results limit. Requires daemon for graph-powered search across filenames, tags, topics, and entities.
78
78
79
79
**get_file_metadata** - Complete metadata for a file by path. Tries daemon API first, falls back to case-insensitive index lookup with substring matching.
80
80
@@ -150,7 +150,7 @@ The cmd/mcp/subcommands/start.go command initializes the MCP server. It loads co
150
150
A feature supported by the MCP server or client, exchanged during initialization. Server capabilities include resources (with subscribe and listChanged), tools, and prompts.
151
151
152
152
**Fallback**
153
-
The strategy of attempting the daemon API first, then using the in-memory index if unavailable. Enables degraded operation without complete failure.
153
+
The strategy of attempting the daemon API first, then using the in-memory index if unavailable. Two tools (get_file_metadata, list_recent_files) support fallback for degraded operation.
154
154
155
155
**Handler**
156
156
An implementation of tool logic that receives dependencies and returns results. Handlers are registered by name and invoked on tools/call requests.
Description: "Search for files in the memory index using semantic search. Returns ranked results based on relevance to the query.",
118
+
Description: "Search for files in the memory index using semantic search. Returns ranked results based on relevance to the query. Requires FalkorDB to be running.",
0 commit comments