MCP Catalogs
首页

time vs swiftlens

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

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

time · 概述

功能全面的 MCP 服务器,提供时间和时区转换功能,可自动检测系统时区。

swiftlens · 概述

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

time · 使用场景

  • 协助安排跨时区的国际会议
  • 为基于位置的查询提供实时时间信息
  • 为旅行计划和行程安排提供时间转换

swiftlens · 使用场景

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

time · 安装

安装选项

**使用 uv(推荐):**

uvx mcp-server-time

**使用 PIP:**

pip install mcp-server-time
python -m mcp_server_time

**为 Claude Desktop 配置:**

{
  "mcpServers": {
    "time": {
      "command": "uvx",
      "args": ["mcp-server-time"]
    }
  }
}

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