Skip to main content

Crate graphify_serve

Crate graphify_serve 

Source
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§

ServeError
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.