statuscast mcp服务器
一个模型上下文协议(MCP)服务器,它公开 状态广播 状态页管理作为LLM可调用工具。将其与Claude Desktop、Kiro或任何兼容MCP的客户端一起使用,以创建事件、检查组件状态、管理订阅服务器和使用内容模板-所有这些都通过Statuscast REST API v4实现。
特性
- 9工具 跨越4个API域:
- 事件:创建、获取、更新、搜索 - 组件:列出所有内容,获取历史正常运行时间 - 订阅者:创建 - 内容模板:列表,创建
- 两次运输:stdio(默认,用于本地使用)和Streamable HTTP(用于远程部署)
- 单个二进制:无运行时依赖关系,易于安装
先决条件
- 转到1.26+(从源代码构建)
- A. 状态广播 具有API访问权限的帐户
安装
下载预构建的二进制文件
从以下网址下载适用于您平台的最新版本 .
# macOS arm64
curl -L https://github.com/gunnaraasen/statuscast-mcp-server/releases/latest/download/statuscast-mcp-server_Darwin_arm64.tar.gz | tar xz
chmod +x statuscast-mcp-server
mv statuscast-mcp-server /usr/local/bin/使用go Install进行安装
go install github.com/gunnaraasen/statuscast-mcp-server/cmd/server@latest从源代码构建
git clone https://github.com/gunnaraasen/statuscast-mcp-server.git
cd statuscast-mcp-server
make build
# Binary at: bin/statuscast-mcp-server配置
所有配置都是通过环境变量进行的:
| 变量 | 必填 | 默认 | 描述 |
|---|---|---|---|
STATUSCAST_TOKEN | 是 | - | 非出口账户级API代币 |
STATUSCAST_DOMAIN | 是 | -- | 您的Statuscast域(例如。 myco.statuscast.com) |
TRANSPORT | 没有 | stdio | 运输方式: stdio 或 http |
PORT | 没有 | 8080 | HTTP端口(仅在以下情况下使用 TRANSPORT=http) |
Claude桌面配置
添加到您的 claude_desktop_config.json (~/Library/Application Support/Claude/claude_desktop_config.json 在macOS上):
{
"mcpServers": {
"statuscast": {
"command": "/usr/local/bin/statuscast-mcp-server",
"env": {
"STATUSCAST_TOKEN": "your-api-token",
"STATUSCAST_DOMAIN": "myco.statuscast.com"
}
}
}
}Kiro配置
添加 .kiro/settings/mcp.json 在您的项目中:
{
"mcpServers": {
"statuscast": {
"command": "statuscast-mcp-server",
"env": {
"STATUSCAST_TOKEN": "your-api-token",
"STATUSCAST_DOMAIN": "myco.statuscast.com"
}
}
}
}HTTP传输
对于远程部署,请使用 TRANSPORT=http:
STATUSCAST_TOKEN=your-token STATUSCAST_DOMAIN=myco.statuscast.com TRANSPORT=http PORT=8080 statuscast-mcp-server配置您的MCP客户端以连接到 http://your-host:8080/mcp.
工具参考
| 工具 | 说明 | 关键参数 |
|---|---|---|
create_incident | 创建新事件 | subject*, message*, type, affected_components, auto_publish, auto_close |
get_incident | 按ID获取事件 | incident_id\* |
update_incident | 更新现有事件 | incident_id*, type, subject, message, status |
search_incidents | 搜索并列出事件 | query, status, limit |
list_components | 列出所有组件和当前状态 | -- |
get_component_history | 获取组件正常运行时间历史记录 | component_id, time_range |
create_subscriber | 创建新订阅者 | email*, components, audience_groups |
list_content_templates | 列出所有内容模板 | -- |
create_content_template | 创建内容模板 | name*, subject*, message\*, type |
\*必填参数
time_range 值为 get_component_history
Last7Days, Last30Days, ThisMonth, LastMonth
发展
make build # Build binary to bin/statuscast-mcp-server
make test # Run tests
make lint # Run golangci-lint
make run-stdio # Run with stdio transport
make run-http # Run with HTTP transport on :8080贡献
欢迎捐款。请先打开一个问题来讨论重大更改。
许可证
麻省理工学院
