AST-based code analysis using tree-sitter. Use for parsing code structure, extracting symbols, finding patterns with tree-sitter queries, analyzing complexity, and understanding code architecture. Supports Python, JavaScript, TypeScript, Go, Rust, C, C++, Swift, Java, Kotlin, Julia, and more.
/plugin marketplace add plurigrid/asi/plugin install asi-skills@asi-skillsThis skill inherits all available tools. When active, it can use any tool Claude has access to.
Intelligent code analysis via AST parsing with tree-sitter.
MCP server configured in ~/.mcp.json:
{
"tree-sitter": {
"command": "python3",
"args": ["-m", "mcp_server_tree_sitter.server"],
"cwd": "/Users/alice/mcp-server-tree-sitter"
}
}
register_project_tool(path="/path/to/project", name="my-project")
list_files(project="my-project", pattern="**/*.py")
get_file(project="my-project", path="src/main.py")
get_ast(project="my-project", path="src/main.py", max_depth=3)
get_symbols(project="my-project", path="src/main.py")
find_text(project="my-project", pattern="function", file_pattern="**/*.py")
run_query(
project="my-project",
query='(function_definition name: (identifier) @function.name)',
language="python"
)
analyze_complexity(project="my-project", path="src/main.py")
register_project_tool, list_projects_tool, remove_project_toollist_languages, check_language_availablelist_files, get_file, get_file_metadataget_ast, get_node_at_positionfind_text, run_queryget_symbols, find_usageanalyze_project, get_dependencies, analyze_complexityget_query_template_tool, build_query, adapt_queryfind_similar_codePython, JavaScript, TypeScript, Go, Rust, C, C++, Swift, Java, Kotlin, Julia, APL, and many more via tree-sitter-language-pack.