graphiti
graphiti copied to clipboard
bug(mcp): read tools reject scalar group_ids even in single-workspace use cases
Passing a single workspace id to the MCP read tools currently fails validation even though the intent is clear.
For example, calls like search_memory_facts(query="...", group_ids="ideadb") or get_episodes(group_ids="ideadb") error out because the server only accepts group_ids as a list. That works, but it’s awkward for the common single-workspace case and it breaks clients that surface scalar inputs for simple tool calls.
I think the server should accept either form:
group_ids=["ideadb"]group_ids="ideadb"
and normalize the string form internally.
I’ve opened a PR with a small patch that does exactly that for search_nodes, search_memory_facts, get_episodes, and clear_graph, along with focused tests.