Expand description
MCP server for graph queries.
Provides graph traversal and scoring functions used by the query engine and MCP protocol server. Port of Python query tools.
Modules§
- mcp
- MCP (Model Context Protocol) server implementation.
Enums§
- Serve
Error - Errors from the server.
Functions§
- bfs
- BFS traversal from start nodes up to a maximum depth.
- dfs
- DFS traversal from start nodes up to a maximum depth.
- graph_
stats - Get basic statistics about the graph.
- load_
graph - Load a knowledge graph from a JSON file.
- score_
nodes - Score nodes by relevance to search terms.
- start_
server - Start the MCP server over stdio (JSON-RPC 2.0).
- subgraph_
to_ text - Convert a subgraph (set of nodes and edges) to a text representation suitable for LLM context windows.