CTX vs filesystem
并排对比,帮你在这两个 MCP server 之间做选择。
CTX by Alegau03 | filesystem by modelcontextprotocol | |
|---|---|---|
| Stars | ★ 122 | ★ 85,748 |
| 30天用量 | — | — |
| 综合分 | 47 | 77 |
| 官方 | — | ✓ |
| 分类 | 开发者工具AI / LLM 工具效率工具 | 本地文件系统开发者工具效率工具 |
| 实现语言 | Rust | TypeScript |
| 最近提交 | 本月 | 本月 |
CTX · 概述
CTX是一个上下文运行时引擎,通过图记忆、紧凑任务包和缓存机制优化AI编码工作流程,减少token浪费。
filesystem · 概述
功能丰富的文件系统操作 MCP 服务器,具有动态目录访问控制功能。
CTX · 使用场景
- 通过上下文压缩优化OpenCode工作流程,减少token使用
- 在图记忆中管理可重用的代码规则和模式,提高检索效率
- 创建紧凑的任务特定上下文包,减少发送给AI模型的不必要信息
filesystem · 使用场景
- 使 AI 模型能够读取和写入项目文件进行开发
- 允许 Claude 或其他 MCP 客户端浏览和分析代码库
- 为内容生成提供对特定目录的安全沙盒访问
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"]
}
}
}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 中安装。