CTX vs time
并排对比,帮你在这两个 MCP server 之间做选择。
CTX by Alegau03 | time by modelcontextprotocol | |
|---|---|---|
| Stars | ★ 122 | ★ 85,748 |
| 30天用量 | — | — |
| 综合分 | 47 | 77 |
| 官方 | — | ✓ |
| 分类 | 开发者工具AI / LLM 工具效率工具 | 效率工具开发者工具沟通协作 |
| 实现语言 | Rust | TypeScript |
| 最近提交 | 本月 | 本月 |
CTX · 概述
CTX是一个上下文运行时引擎,通过图记忆、紧凑任务包和缓存机制优化AI编码工作流程,减少token浪费。
time · 概述
功能全面的 MCP 服务器,提供时间和时区转换功能,可自动检测系统时区。
CTX · 使用场景
- 通过上下文压缩优化OpenCode工作流程,减少token使用
- 在图记忆中管理可重用的代码规则和模式,提高检索效率
- 创建紧凑的任务特定上下文包,减少发送给AI模型的不必要信息
time · 使用场景
- 协助安排跨时区的国际会议
- 为基于位置的查询提供实时时间信息
- 为旅行计划和行程安排提供时间转换
CTX · 安装
使用以下方法之一安装CTX:
# 通过Cargo安装
cargo install ctx-cli
# 一行安装器
curl -fsSL https://raw.githubusercontent.com/Alegau03/CTX/main/scripts/install.sh | sh
# 通过npm安装
npm i -g @alegau/ctx-bin
# 通过Homebrew安装
brew tap Alegau03/ctx && brew install ctx要与OpenCode集成:
cd /path/to/your/project
ctx init
ctx index
ctx opencode install
opencode对于Claude Desktop集成,添加到claude_desktop_config.json:
{
"mcpServers": {
"ctx": {
"command": "ctx",
"args": ["mcp"]
}
}
}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"]
}
}
}