AT

aimasteracc/tree-sitter-analyzer

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

61 stars 17 forks 품질 91 트렌드 33MIT

Cross-language-safe code-intelligence MCP for AI Agent: 13개 언어, 가족 전화 그래프, 폭발 반경, 건강 등급, 8개의 정면 도구, JSON 봉투, 100% 로컬.

개요

- 지원되는 언어 재고, 대리인 고유 (MCP + CLI)의 맞은 cross-language 구조. TSA는 트리 시터와 코드베이스를 색인하고 정확한 통화 그래프, 기호 검색 및 AI 코딩 에이전트에 구조 쿼리를 제공합니다. 지역적으로, telemetry. * 혼자서 이름 일치는 십자가 언어 가장자리를 창조하지 않으며, 이것을 실행하는 문은 규칙 보다는 오히려 실행할 수 있는 시험입니다. * 8개의 MCP 공구는 CLI 접근 및 curated 워크플로우와 더불어 구조화된 JSON 출력과 verdict envelopes를 제공합니다. * 이름 생성된 지원 심층적인 재고는 unverified cross-file 행동에서 파이프라인 증거를 구별합니다. v1.x에서 업그레이드? docs/MIGRATION.md를 참조하십시오. (체크: python3 --version). 필요한 경우 python.org에서 설치하십시오. 누락된 경우 자동 설치 uv, Claude Desktop / Claude Code / Cursor / VS Code를 감지하고 MCP 항목을 작성합니다. tree-sitter-analyzer --doctor를 실행합니다.

개요(AI 번역)

English |日本語 | 简体中文

** Code Intelligence AI Agent는 지원되는 언어 재고, 에이전트-native (MCP + CLI)에 걸쳐 정확한 크로스 언어 구조를 신뢰할 수 있습니다.

TSA는 트리 시터와 코드베이스를 색인하고 정확한 통화 그래프, 기호 검색 및 AI 코딩 에이전트에 구조 쿼리를 제공합니다. 지역적으로, telemetry.

**왜 다른가요? **

  • **Cross-language 바인딩은 언어 가족이 문을 닫습니다. ** 혼자서 이름 일치는 교차 언어 가장자리를 창조하지 않으며, 이것을 실행하는 문은 규칙 보다는 오히려 실행할 수 있는 시험입니다. *Built Agent-native. 8 MCP 도구는 CLI 액세스 및 curated 워크플로우와 함께 JSON 출력 및 verdict envelope를 구성합니다.
  • Broad 및 올바르게 분류. 생성된 지원 심층적인 재고는 unverified cross-file 행동에서 파이프라인 증거를 구별합니다.

v1.x에서 업그레이드? docs/MIGRATION.md를 참조하십시오.


시작하기

** Python 3.10+**(check: python3 --version)를 요구합니다. 필요한 경우 python.org에서 설치하십시오.

자동화 설치 (추천)

Auto-installs uv 누락되면 Claude Desktop / Claude Code / Cursor / VS Code를 감지하고 MCP 항목을 작성합니다.

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

🌳 Tree-sitter Analyzer

English | 日本語 | 简体中文

Code intelligence AI agents can trust — correct cross-language structure across the supported language inventory, agent-native (MCP + CLI).

TSA indexes your codebase with tree-sitter and serves correct call graphs, symbol search, and structural queries to AI coding agents — locally, with no telemetry.

Why it’s different:

  • Cross-language bindings are gated by language family. A name match alone does not create a cross-language edge, and the gates that enforce this are executable tests rather than a convention.
  • Built agent-native. 8 MCP tools provide structured JSON output and verdict envelopes, with CLI access and curated workflows.
  • Broad and correctly classified. The generated support-depth inventory distinguishes pipeline evidence from unverified cross-file behavior.

Upgrading from v1.x? See docs/MIGRATION.md.


Get Started

Requires Python 3.10+ (check: python3 --version). Install from python.org if needed.

curl -fsSL https://raw.githubusercontent.com/aimasteracc/tree-sitter-analyzer/main/install.sh | bash

Auto-installs uv if missing, detects Claude Desktop / Claude Code / Cursor / VS Code, and writes the MCP entry. Run tree-sitter-analyzer --doctor to verify.

Bootstrap trust: for convenience, the command above downloads and executes the official uv installer when uv is missing or outdated. That installer is mutable and not content-bound; TSA warns before downloading it to a temporary file over TLS and performs a strict post-install version check. To avoid this unverified bootstrap, install uv >= 0.11.0 manually first, or use the secure opt-out (which exits with manual-install instructions when bootstrap is needed):

curl -fsSL https://raw.githubusercontent.com/aimasteracc/tree-sitter-analyzer/main/install.sh \
  | TSA_DISABLE_UNVERIFIED_UV_BOOTSTRAP=1 bash

Install command for Claude Code:

claude mcp add tree-sitter-analyzer \
  --env TREE_SITTER_PROJECT_ROOT="$PWD" \
GitHub에서 전체 README 보기

설치

uvx --from tree-sitter-analyzer[mcp
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "tree-sitter-analyzer": { "command": "uvx", "args": ["--from", "tree-sitter-analyzer[mcp]", "tree-sitter-analyzer-mcp"], "env": { "TREE_SITTER_PROJECT_ROOT": "/absolute/path/to/your/project" } } } }