使用说明
Incident.io MCP服务器
用于Incident.io集成的模型上下文协议服务器。
从GitHub安装
# Install directly from GitHub
npm install -g github:stuartphilp/incident-io-mcp-server
# Or clone and install locally
git clone https://github.com/stuartphilp/incident-io-mcp-server.git
cd incident-io-mcp-server
npm install
npm run build
用法
运行服务器:
# If installed globally
incident-io-mcp-server
# Or if installed locally
node ./dist/index.js
所需的环境变量:
API_KEY:您的Incident.io API密钥
可选环境变量:
PORT:服务器端口(默认值:3000)
配置
全局安装的MCP配置示例:
{
"mcpServers": {
"incident-io": {
"command": "incident-io-mcp-server",
"env": {
"API_KEY": "your-api-key-here",
"PORT": "3000"
}
}
}
}
本地安装的MCP配置示例:
{
"mcpServers": {
"incident-io": {
"command": "node",
"args": ["./node_modules/incident-io-mcp-server/dist/index.js"],
"env": {
"API_KEY": "your-api-key-here",
"PORT": "3000"
}
}
}
}
端点
GET /health:健康检查端点GET /mcp/incidents:获取最新事件GET /mcp/severities:获取可用严重性POST /mcp/incidents:创建新事件