Back to Home
aimasteracc icon

tree-sitter-analyzer

Verified Safe

by aimasteracc

Overview

Enterprise-grade code analysis and structural extraction across multiple programming languages, optimized for AI assistant integration via MCP protocol to assist in development workflows and token optimization.

Installation

Run Command
uvx --from tree-sitter-analyzer[mcp] tree-sitter-analyzer-mcp

Environment Variables

  • TREE_SITTER_PROJECT_ROOT
  • TREE_SITTER_OUTPUT_PATH
  • TREE_SITTER_ANALYZER_ENABLE_FILE_LOG
  • TREE_SITTER_ANALYZER_LOG_DIR
  • TREE_SITTER_ANALYZER_FILE_LOG_LEVEL
  • LOG_LEVEL

Security Notes

The project demonstrates a strong focus on security, with dedicated modules for path validation, input sanitization, and project boundary enforcement. It explicitly mentions protection against path traversal, null byte injection, and Unicode normalization attacks, and removes sensitive information from error responses. While Python's `subprocess.run` is used for integrating `fd` and `ripgrep`, the implementation appears to sanitize inputs and control commands, reducing common attack vectors. No direct 'eval' or obvious hardcoded secrets were found in the truncated code.

Similar Servers

Stats

Interest Score40
Security Score9
Cost ClassLow
Avg Tokens100
Stars15
Forks2
Last Update2025-12-05

Tags

code analysisAI integrationmulti-languagestatic analysisdeveloper toolMCP protocoltoken optimizationsearch