Files
deusdata--codebase-memory-mcp/internal/lang/python.go
T
Martin Vogel f63c70865e Initial release: codebase-memory-mcp v0.0.1
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.
2026-02-25 00:10:39 +01:00

16 lines
482 B
Go

package lang
func init() {
Register(&LanguageSpec{
Language: Python,
FileExtensions: []string{".py"},
FunctionNodeTypes: []string{"function_definition"},
ClassNodeTypes: []string{"class_definition"},
ModuleNodeTypes: []string{"module"},
CallNodeTypes: []string{"call", "with_statement"},
ImportNodeTypes: []string{"import_statement"},
ImportFromTypes: []string{"import_from_statement"},
PackageIndicators: []string{"__init__.py"},
})
}