返回 MCP 目录
public公开dns本地运行

incident-io-mcp-server

一个用于Incident.io集成的模型上下文协议(MCP)服务器,提供事件管理和严重性查询功能。

article

README

🚀 Incident.io MCP 服务器

一个用于集成 Incident.io 的 Model Context Protocol (MCP) 服务器,可助力实现与 Incident.io 的高效集成。

🚀 快速开始

📦 安装指南

可通过以下两种方式进行安装:

# 直接从 GitHub 安装
npm install -g github:stuartphilp/incident-io-mcp-server

# 或者克隆并本地安装
git clone https://github.com/stuartphilp/incident-io-mcp-server.git
cd incident-io-mcp-server
npm install
npm run build

💻 使用示例

基础用法

运行服务器:

# 如果全局安装
incident-io-mcp-server

# 或者在本地运行
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: 创建新的事件
help

运行方式说明

cloud

托管运行

托管运行通常表示这个 MCP Server 由服务方环境承载,用户一般按页面提供的连接方式或授权流程接入,不需要在本地长期启动一个 MCP 进程

  1. 打开服务方连接页
  2. 完成授权或复制端点
  3. 在 MCP 客户端中连接
terminal

本地运行 / 其它方式

本地运行通常需要用户在自己的电脑或服务器上安装依赖,把 server_config 复制到 MCP 客户端,并按 env_schema 补齐环境变量、密钥或其它配置

  1. 复制 server_config
  2. 安装所需依赖
  3. 补齐环境变量后重启客户端