mirror of
https://github.com/DeusData/codebase-memory-mcp.git
synced 2026-11-09 09:11:00 +08:00
MCP server that indexes codebases into a queryable knowledge graph. Single Go binary, SQLite storage, 12 languages via tree-sitter. Features: call graph, cross-service HTTP linking, dead code detection, route nodes, Cypher queries, incremental reindex, JSON config scanning.
28 lines
689 B
Go
28 lines
689 B
Go
package lang
|
|
|
|
func init() {
|
|
Register(&LanguageSpec{
|
|
Language: CSharp,
|
|
FileExtensions: []string{".cs"},
|
|
FunctionNodeTypes: []string{
|
|
"destructor_declaration",
|
|
"local_function_statement",
|
|
"function_pointer_type",
|
|
"constructor_declaration",
|
|
"anonymous_method_expression",
|
|
"lambda_expression",
|
|
"method_declaration",
|
|
},
|
|
ClassNodeTypes: []string{
|
|
"class_declaration",
|
|
"struct_declaration",
|
|
"enum_declaration",
|
|
"interface_declaration",
|
|
},
|
|
ModuleNodeTypes: []string{"compilation_unit"},
|
|
CallNodeTypes: []string{"invocation_expression"},
|
|
ImportNodeTypes: []string{"using_directive"},
|
|
ImportFromTypes: []string{"using_directive"},
|
|
})
|
|
}
|