rails-ai-context vs filesystem
并排对比,帮你在这两个 MCP server 之间做选择。
rails-ai-context by crisnahine | filesystem by modelcontextprotocol | |
|---|---|---|
| Stars | ★ 139 | ★ 85,748 |
| 30天用量 | — | — |
| 综合分 | 50 | 77 |
| 官方 | — | ✓ |
| 分类 | 开发者工具AI / LLM 工具数据库 | 本地文件系统开发者工具效率工具 |
| 实现语言 | Ruby | TypeScript |
| 最近提交 | 1 个月前 | 本月 |
rails-ai-context · 概述
38个 MCP 工具,为 AI 代理提供直接访问 Rails 应用架构、模型、路由和约定的能力。
filesystem · 概述
功能丰富的文件系统操作 MCP 服务器,具有动态目录访问控制功能。
rails-ai-context · 使用场景
- AI 助手编写与实际架构匹配的 Rails 代码,而不是编造不存在的列
- 生成与现有模式匹配的测试(fixtures 与 factories)
- 在整个代码库中查找方法的所有调用者以了解影响
- 在一次调用中分析模型、控制器、视图和测试中的功能
- 理解视图组件、控制器和前端栈约定
filesystem · 使用场景
- 使 AI 模型能够读取和写入项目文件进行开发
- 允许 Claude 或其他 MCP 客户端浏览和分析代码库
- 为内容生成提供对特定目录的安全沙盒访问
rails-ai-context · 安装
安装
选项 1:作为 gem 安装(推荐)
gem "rails-ai-context", group: :development
rails generate rails_ai_context:install选项 2:独立安装(无需 Gemfile)
gem install rails-ai-context
cd your-rails-app
rails-ai-context init # 交互式设置
rails-ai-context serve # 启动 MCP 服务器Claude Desktop 配置
添加到 claude_desktop_config.json:
{
"mcpServers": {
"rails-ai-context": {
"command": "rails",
"args": ["ai:serve"],
"env": {}
}
}
}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 中安装。