事件管理协议服务器

一个用于与Incident.io集成的事件管理协议服务器,提供事件查询、创建和严重性管理功能。

  • by stuartphilp
  • JavaScript
  • 本地部署
  • 1 星标
  • 更新于
在 GitHub 查看 stuartphilp/incident-io-mcp-server

使用说明

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:创建新事件