Skip to content

fix(memory): return connected relations in openNodes#3160

Closed
majiayu000 wants to merge 1 commit intomodelcontextprotocol:mainfrom
majiayu000:fix/memory-open-nodes-relations
Closed

fix(memory): return connected relations in openNodes#3160
majiayu000 wants to merge 1 commit intomodelcontextprotocol:mainfrom
majiayu000:fix/memory-open-nodes-relations

Conversation

@majiayu000
Copy link

Summary

Fixes #3137

The openNodes method now returns relations where either endpoint
matches the requested entities, instead of requiring both endpoints
to match. This allows traversing the graph from specific nodes.

Fixes modelcontextprotocol#3137

Signed-off-by: majiayu000 <1835304752@qq.com>
@olaservo
Copy link
Member

olaservo commented Mar 7, 2026

Thanks for working on this @majiayu000! You correctly identified the root cause (the && filter in openNodes).

Closing this in favor of PR #3297 which was just merged — it includes the same fix for openNodes plus also fixes the same bug in searchNodes. Appreciate the contribution!

@olaservo olaservo closed this Mar 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Memory MCP open_nodes returns empty relations array despite entity having relations in graph

2 participants