状态_mcp
Ruby gem提供状态页信息 很棒的状态 通过MCP(模型上下文协议)服务器工具。与MCP兼容的客户端集成,如Cursor IDE、Claude Desktop和其他启用MCP的工具。
赞助 好吧。.
需求
- Ruby 3.1或更高版本 (不支持Ruby 3.0及更早版本)
快速开始
gem install status_mcp光标IDE配置
对于Cursor IDE,创建或更新 .cursor/mcp.json 在您的项目中:
{
"mcpServers": {
"status": {
"command": "gem",
"args": ["exec", "status_mcp"],
"env": {
"RUBY_VERSION": "3.4.7"
}
}
}
}备注:使用 gem exec 确保使用正确的Ruby版本。
Claude桌面配置
对于Claude Desktop,编辑MCP配置文件:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json\ 视窗: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"status": {
"command": "gem",
"args": ["exec", "status_mcp"],
"env": {
"RUBY_VERSION": "3.4.7"
}
}
}
}备注:更新配置后,重新启动Claude Desktop以使更改生效。
手动运行MCP服务器
安装后,您可以立即启动MCP服务器:
# With bundler
gem install status_mcp && bundle exec status_mcp
# Or if installed globally
status_mcp服务器将使用MCP协议通过STDIN/STDOUT启动和通信。
特性
- 状态页面信息:访问1700多个状态页链接
awesome-status - MCP服务器集成:即用型MCP服务器,带有搜索和检索状态页面详细信息的工具
- 不要求进行验证:所有数据都与gem捆绑在一起
- 离线功能:安装后,数据在本地可用
MCP工具
MCP服务器提供以下工具:
- 搜索服务 -按名称搜索服务
- 参数: query (字符串)
- get_service_details -获取特定服务的详细状态链接
- 参数: name (字符串)
- list_services -列出所有可用服务(如果太多,则仅限于前50项)
- 参数: limit (可选整数,默认值:50)
发展
# Install dependencies
bundle install
# Run tests
bundle exec rspec
# Run tests across multiple Ruby versions
bundle exec appraisal install
bundle exec appraisal rspec
# Run linting
bundle exec standardrb --fix贡献
欢迎在GitHub上提交Bug报告和拉取请求,网址为https://github.com/amkisko/status_mcp.rb.
有关更多信息,请参见 贡献.md.
安全
如果您发现安全漏洞,请负责任地报告。看 安全.md 了解详情。
许可证
根据以下条款,gem可作为开源软件使用 MIT许可证.
