MCP Catalogs
首页

code-to-tree vs filesystem

并排对比,帮你在这两个 MCP server 之间做选择。

code-to-tree
by micl2e2
filesystem
by modelcontextprotocol
Stars★ 83★ 85,748
30天用量
综合分4377
官方
分类
开发者工具AI / LLM 工具
本地文件系统开发者工具效率工具
实现语言CTypeScript
最近提交2 个月前本月

code-to-tree · 概述

无运行时的 MCP 服务器,使用 tree-sitter 将源代码转换为 AST,依赖最小化。

filesystem · 概述

功能丰富的文件系统操作 MCP 服务器,具有动态目录访问控制功能。

code-to-tree · 使用场景

  • LLM 进行代码分析和重构
  • 跨语言代码结构比较
  • 基于代码结构的自动化文档生成

filesystem · 使用场景

  • 使 AI 模型能够读取和写入项目文件进行开发
  • 允许 Claude 或其他 MCP 客户端浏览和分析代码库
  • 为内容生成提供对特定目录的安全沙盒访问

code-to-tree · 安装

安装

  1. 从 [GitHub 发布页面](https://github.com/micl2e2/code-to-tree/releases) 下载预编译的二进制文件
  1. 配置您的 MCP 客户端(以 Claude Desktop 为例):

**Windows:** ``json { "mcpServers": { "code-to-tree": { "command": "C:\\path\\to\\code-to-tree.exe" } } } ``

**macOS:** ``json { "mcpServers": { "code-to-tree": { "command": "/path/to/code-to-tree" } } } ``

  1. 重启您的 MCP 客户端以应用配置

filesystem · 安装

安装

使用 NPX

{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-filesystem",
        "/path/to/allowed/directory"
      ]
    }
  }
}

使用 Docker

{
  "mcpServers": {
    "filesystem": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "--mount", "type=bind,src=/path/to/allowed/dir,dst=/projects/allowed/dir",
        "mcp/filesystem",
        "/projects"
      ]
    }
  }
}

VS Code 扩展

点击 README 中的安装按钮直接在 VS Code 中安装。

对比内容由 README + GitHub 公开数据自动生成,定期更新。