[Feature] MCP server: explicit '*' to read across every group, and report the scope searched
Before you file
- I searched existing issues and did not find an existing proposal.
- I read the contributing guide and will not open a feature pull request until the Graphiti team has discussed this issue and added
rfc-approved.
Affected component
MCP server
Size
Small improvement to existing behavior
User problem
An MCP server that holds several partitions gives callers no way to read across them. search_memory_facts and search_nodes take group_ids. When the argument is omitted, they fall back to config.graphiti.group_id. A caller that does not know the partition names therefore cannot query the whole graph.
The failure is also silent. On a deployment whose configured default points to a group with no data, every search that omits group_ids returns "No relevant facts found". The agent cannot tell that apart from "the graph knows nothing about this", and it concludes the latter. We measured this on a production graph with 7 populated partitions and a stale default. Two searches that had clear answers in the graph both came back empty.
Related background: #838 (closed by the stale bot, not resolved), where the reporter asked for a "search everywhere" option in the MCP server.
Desired outcome
- A caller can explicitly widen a read to every group.
- Every read response names the scope that was actually searched, so an empty result reads as "nothing in these groups" and not as "nothing at all".
- The default stays fail-closed. A single-tenant deployment must never start answering across tenants because a caller left an argument out (see #1716).
Proposed design
- Accept
'*'ingroup_idsas a sentinel meaning "every group" onsearch_memory_factsandsearch_nodes. The tools passNoneto core, which already treats a missing group filter as "all groups".'*'cannot collide with a real group:validate_group_idonly accepts[a-zA-Z0-9_-]+. - Add
searched_group_idsto every read response (Nonemeans all groups). get_episodesdoes not accept'*', because it needs a concrete list forget_by_group_ids. When no group resolves, it returns an error instead of an empty list.clear_graphexplicitly rejects'*'. Without that guard, the sentinel reachesclear_dataas a literal group name, matches nothing, and the tool still reports success.
A draft implementation with tests is in #1791. It stays in draft until this design is approved.
Alternatives considered
Make "all groups" the default when group_ids is omitted. That fixes the same symptom, but it turns a fail-closed scope into a fail-open one for every existing deployment.
— Claude Opus 5.5
Source: getzep/graphiti