Skip to main content

Module graph

Module graph 

Source
Expand description

Graph tool execution handlers.

Implements MCP tool handlers for knowledge graph operations:

  • Entity CRUD operations
  • Relationship management
  • Graph traversal and queries
  • LLM-powered entity extraction
  • Entity deduplication
  • Relationship inference
  • Graph visualization

Functionsยง

execute_entities
Executes the entities tool (CRUD operations on entities).
execute_entity_create ๐Ÿ”’
execute_entity_delete ๐Ÿ”’
execute_entity_extract ๐Ÿ”’
Handles the extract action for subcog_entities.
execute_entity_find_duplicates ๐Ÿ”’
Finds duplicate entities for the merge action.
execute_entity_get ๐Ÿ”’
execute_entity_list ๐Ÿ”’
execute_entity_merge
Executes the entity merge tool (deduplication).
execute_entity_merge_action ๐Ÿ”’
Handles the merge action for subcog_entities.
execute_entity_merge_impl ๐Ÿ”’
Merges entities for the merge action.
execute_extract_entities
Executes the extract entities tool (LLM-powered extraction).
execute_find_duplicates ๐Ÿ”’
execute_graph
Executes the consolidated subcog_graph tool.
execute_graph_neighbors ๐Ÿ”’
Handles the neighbors operation for subcog_graph.
execute_graph_path ๐Ÿ”’
Handles the path operation for subcog_graph.
execute_graph_query
Executes the graph query tool (traversal operations).
execute_graph_stats ๐Ÿ”’
Handles the stats operation for subcog_graph.
execute_graph_visualize
Executes the graph visualization tool.
execute_graph_visualize_action ๐Ÿ”’
Handles the visualize operation for subcog_graph.
execute_merge ๐Ÿ”’
execute_query_neighbors ๐Ÿ”’
execute_query_path ๐Ÿ”’
execute_query_stats ๐Ÿ”’
execute_relationship_create ๐Ÿ”’
execute_relationship_delete ๐Ÿ”’
execute_relationship_infer
Executes the relationship inference tool.
execute_relationship_infer_action ๐Ÿ”’
Handles the infer action for subcog_relationships.
execute_relationship_list ๐Ÿ”’
execute_relationships
Executes the relationships tool (CRUD operations on relationships).
format_type_counts ๐Ÿ”’
generate_ascii ๐Ÿ”’
generate_dot ๐Ÿ”’
generate_mermaid ๐Ÿ”’
sanitize_dot_id ๐Ÿ”’
sanitize_mermaid_id ๐Ÿ”’
sanitize_mermaid_label ๐Ÿ”’