MCP Catalogs
首页

swift-context-protocol vs filesystem

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

swift-context-protocol
by 1amageek
filesystem
by modelcontextprotocol
Stars★ 11★ 85,748
30天用量
综合分3377
官方
分类
开发者工具AI / LLM 工具其它
本地文件系统开发者工具效率工具
实现语言SwiftTypeScript
最近提交15 个月前本月

swift-context-protocol · 概述

Swift实现的MCP服务器,使用分布式actor为AI上下文提供类型安全的工具、资源和提示。

filesystem · 概述

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

swift-context-protocol · 使用场景

  • 在Swift生态中创建分布式AI工具
  • 为AI应用构建类型安全的MCP服务器
  • 使用Swift actor实现资源管理系统

filesystem · 使用场景

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

swift-context-protocol · 安装

要安装swift-context-protocol,请将其添加到您的Package.swift依赖项中:

dependencies: [
    .package(url: "https://github.com/1amageek/swift-context-protocol.git", from: "1.0.0")
]

然后将其添加到您的目标依赖项中:

targets: [
    .executableTarget(
        name: "YourApp",
        dependencies: [
            "swift-context-protocol"
        ]
    )
]

对于Claude Desktop集成,通常会将服务器添加到您的configuration.json中,但这个Swift服务器可能需要额外的Swift环境设置。

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