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.
28 lines
591 B
Go
28 lines
591 B
Go
package lang
|
|
|
|
func init() {
|
|
Register(&LanguageSpec{
|
|
Language: PHP,
|
|
FileExtensions: []string{".php"},
|
|
FunctionNodeTypes: []string{
|
|
"function_static_declaration",
|
|
"anonymous_function",
|
|
"function_definition",
|
|
"arrow_function",
|
|
},
|
|
ClassNodeTypes: []string{
|
|
"trait_declaration",
|
|
"enum_declaration",
|
|
"interface_declaration",
|
|
"class_declaration",
|
|
},
|
|
ModuleNodeTypes: []string{"program"},
|
|
CallNodeTypes: []string{
|
|
"member_call_expression",
|
|
"scoped_call_expression",
|
|
"function_call_expression",
|
|
"nullsafe_member_call_expression",
|
|
},
|
|
})
|
|
}
|