mirror of
https://github.com/DeusData/codebase-memory-mcp.git
synced 2026-11-04 08:13:37 +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.
21 lines
634 B
Go
21 lines
634 B
Go
package lang
|
|
|
|
func init() {
|
|
Register(&LanguageSpec{
|
|
Language: JavaScript,
|
|
FileExtensions: []string{".js", ".jsx"},
|
|
FunctionNodeTypes: []string{
|
|
"function_declaration",
|
|
"generator_function_declaration",
|
|
"function_expression",
|
|
"arrow_function",
|
|
"method_definition",
|
|
},
|
|
ClassNodeTypes: []string{"class_declaration", "class"},
|
|
ModuleNodeTypes: []string{"program"},
|
|
CallNodeTypes: []string{"call_expression"},
|
|
ImportNodeTypes: []string{"import_statement", "lexical_declaration", "export_statement"},
|
|
ImportFromTypes: []string{"import_statement", "lexical_declaration", "export_statement"},
|
|
})
|
|
}
|