MCP Catalogs
首页

mcp-server-code-execution-mode vs filesystem

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

mcp-server-code-execution-mode
by elusznik
filesystem
by modelcontextprotocol
Stars★ 331★ 85,748
30天用量
综合分5177
官方
分类
开发者工具安全AI / LLM 工具
本地文件系统开发者工具效率工具
实现语言PythonTypeScript
最近提交5 个月前本月

mcp-server-code-execution-mode · 概述

一个在隔离容器中执行 Python 代码并代理 MCP 服务器的服务器,减少上下文膨胀。

filesystem · 概述

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

mcp-server-code-execution-mode · 使用场景

  • 管理多个 MCP 服务器并需要减少 token 使用量的团队
  • 需要编排包含循环和条件的复杂工作流的代理
  • 需要沙盒化代码执行的安全环境

filesystem · 使用场景

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

mcp-server-code-execution-mode · 安装

安装

  1. 安装 Docker 或 Podman
  2. 安装服务器:pip install mcp-server-code-execution-mode
  3. 添加到 Claude Desktop 配置中:
{
  "mcpServers": {
    "code-execution": {
      "command": "python",
      "args": ["-m", "mcp_server_code_execution_mode"],
      "env": {}
    }
  }
}

或直接运行:mcp-server-code-execution-mode

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 公开数据自动生成,定期更新。