code-to-tree
If you are the rightful owner of code-to-tree and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
The code-to-tree server is designed to convert source code into an Abstract Syntax Tree (AST) using the tree-sitter library, supporting multiple programming languages.
The code-to-tree server is a Model Context Protocol (MCP) server that enables Language Model Machines (LLMs) to accurately convert source code into an Abstract Syntax Tree (AST) across various programming languages. It is designed to be a standalone binary, minimizing dependencies on the end user's machine. The server leverages the tree-sitter library, which is versatile enough to handle multiple languages including C, C++, Rust, Ruby, Go, Java, and Python. The server is built to carry all necessary capabilities within itself, ensuring ease of use and installation. Users can download the executable from the GitHub release page or build it themselves. The server is compatible with different platforms, including Windows and macOS, and can be configured to work with MCP clients like Claude.
Features
- Standalone Binary: The server is a single executable file, simplifying installation and usage.
- Multi-language Support: Utilizes tree-sitter to support languages like C, C++, Rust, Ruby, Go, Java, and Python.
- Minimal Dependencies: Designed to impose minimal software dependencies on the user's machine.
- Versatile Syntax Parsing: Capable of accurately converting source code into ASTs across different languages.
- Easy Configuration: Can be easily configured with MCP clients such as Claude.
Tools
tree-sitter
Core library for syntax parsing
mcpc
MCP client library for communicating with MCP servers