sourcesage

sourcesage

5

SourceSage is designed as a Model Context Protocol server that effectively captures and retrieves key features of a codebase, using the analytical capabilities of language models. It focuses on memory efficiency and language-agnostic operation, making dynamic updates effortless.

register_entity

Register code entity to knowledge graph

register_relationship

Relationships between registered entities

register_pattern

Register code mode

register_style_convention

Register coding style agreement

add_entity_observation

Add entity observations

query_entities

Query entities in the knowledge graph

get_entity_details

Get detailed information about an entity

query_patterns

Query code pattern

query_style_conventions

Query coding style conventions

get_knowledge_statistics

Obtain statistics on knowledge graphs

clear_knowledge

Clear all knowledge in the knowledge graph