AcademyMCP serversDevelopment

code-to-tree

Engineering and technical review teams that want an AI assistant to read the structure of code written in several languages.

  • Recommendedour rating
  • 88gitHub stars
  • MITlicence
  • 7 months agolast update
git clone https://github.com/micl2e2/code-to-tree.git
README.md

Loading the file...

What it does

code-to-tree is a standalone MCP server that converts source code into an abstract syntax tree (AST), so an LLM can read its structure. It uses tree-sitter, which covers C, C++, Rust, Ruby, Go, Java and Python. The server ships as one binary, so it needs few other dependencies to run.

Use cases

  1. 01Map the structure of a module before a code review
  2. 02Compare how a feature is organized across languages
  3. 03Explain a file's syntax tree to a non-specialist

Questions about
code-to-tree.

What is code-to-tree used for?

Engineering and technical review teams that want an AI assistant to read the structure of code written in several languages. code-to-tree is a standalone MCP server that converts source code into an abstract syntax tree (AST), so an LLM can read its structure. It uses tree-sitter, which covers C, C++, Rust, Ruby, Go, Java and Python. The server ships as one binary, so it needs few other dependencies to run.

How do I install code-to-tree?

Run this in your terminal: git clone https://github.com/micl2e2/code-to-tree.git

Is code-to-tree open source?

Yes. The code is on GitHub (micl2e2/code-to-tree) under the MIT licence.

Is code-to-tree safe to use?

It passed our automatic scan for credential theft, hidden instructions and risky install commands. Third party open source software. Sabemos AI does not maintain it. Check the code and permissions before you connect it to company data.