OlympHill
code-to-tree logo

code-to-tree一个无需运行环境的MCP服务器,可将源代码转换为抽象语法树(AST),不受编程语言限制。

(0)
Daniel Nikulshyn审阅者 Daniel Nikulshyn·更新 2026年7月

概览

code-to-tree服务器是一个无需运行环境的MCP服务器,可将源代码转换为抽象语法树(AST),不受编程语言限制。它使用tree-sitter进行语法解析,支持C、C++、Rust、Ruby、Go、Java和Python等语言。服务器设计为自包含,对终端用户的机器依赖最小,并使用mcpc。该工具旨在为大型语言模型(LLMs)准确地将源代码转换为AST。用户需要下载或构建code-to-tree可执行文件,并配置其MCP客户端以使用它。

主要功能

  • 源代码到AST转换
  • 支持C、C++、Rust、Ruby、Go、Java、Python
  • 自包含二进制文件
  • Tree-sitter集成
  • Mcpc集成

价格

模型
Free
评分
暂无评价

使用场景

LLM代码分析

将code-to-tree与LLM结合使用,以分析和理解不同编程语言的源代码结构。

自动化代码审查

将code-to-tree集成到自动化代码审查工具中,为代码质量评估提供详细的AST。

优点 & 缺点

优点

  • 支持多种编程语言
  • 自包含,依赖最小
  • 利用tree-sitter进行灵活的语法解析

缺点

  • 需要手动设置和配置MCP客户端
  • 从源代码构建需要技术专业知识和特定的环境设置

评测

登录以留下评测。

暂无评测。来当第一个吧!

问答

What is required to build from source?

Building from source requires technical expertise and a specific environment setup, including installing MSYS2 and compiling tree-sitter libraries.

Asked by Noelia Campos · Apr 16, 2026

How to use the code-to-tree tool?

To use the code-to-tree tool, download or build the executable and configure your MCP clients to use it. The configuration process varies depending on the operating system.

Asked by Robert Ainsworth · Apr 8, 2026

Is the tool self-contained?

Yes, the code-to-tree server is self-contained with minimal software dependencies on the end user's machine.

Asked by Ingrid Bauer · Mar 15, 2026

What languages are supported?

The code-to-tree server supports C, C++, Rust, Ruby, Go, Java, and Python.

Asked by Ravi Chandrasekaran · Feb 17, 2026

提问

服务配缩器 的替代品