MCP Catalogs
首页

everything vs swiftlens

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

everything
by modelcontextprotocol
swiftlens
by swiftlens
Stars★ 85,748★ 124
30天用量
综合分7744
官方
分类
开发者工具AI / LLM 工具其它
开发者工具AI / LLM 工具其它
实现语言TypeScriptPython
最近提交本月10 个月前

everything · 概述

官方 MCP 测试服务器,展示协议全部功能,供客户端开发者使用。

swiftlens · 概述

SwiftLens MCP 服务器通过 SourceKit-LSP 集成,让 AI 模型能以编译器级精度理解 Swift 代码库。

everything · 使用场景

  • 测试 MCP 客户端实现是否支持所有协议功能
  • 通过参考服务器学习 MCP 协议能力
  • 验证客户端对不同传输方式的兼容性

swiftlens · 使用场景

  • AI 辅助的 Swift 应用代码重构和现代化
  • Swift 项目的深度代码分析和文档生成
  • 代码变更过程中的跨引用和影响分析

everything · 安装

NPX(推荐)

{
  "mcpServers": {
    "everything": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-everything"]
    }
  }
}

Windows 用户请使用 cmd /c

{
  "mcpServers": {
    "everything": {
      "command": "cmd",
      "args": ["/c", "npx", "-y", "@modelcontextprotocol/server-everything"]
    }
  }
}

Docker

{
  "mcpServers": {
    "everything": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "mcp/everything"]
    }
  }
}

全局安装

npm install -g @modelcontextprotocol/server-everything@latest
npx @modelcontextprotocol/server-everything

swiftlens · 安装

安装

前置条件

  • macOS(SourceKit-LSP 需要)
  • Python 3.10+
  • Xcode(从 App Store 完整安装)

快速开始

为 Claude Code / Gemini CLI 配置

添加到您的 JSON 配置文件的 mcpServers 部分:

{
  "mcpServers": {
    "swiftlens": {
      "command": "uvx",
      "args": ["swiftlens"]
    }
  }
}
构建 SourceKit LSP 索引

SwiftLens 需要索引存储进行跨文件分析。使用以下命令构建:

# 导航到您的 Swift 项目
cd /path/to/your/swift/project

# 使用索引构建
swift build -Xswiftc -index-store-path -Xswiftc .build/index/store

**重要**:当您添加新的 Swift 文件、更改公共接口或发现缺少符号引用时,需要重新构建索引。

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