Back to MCP directory
publicPublicdnsLocal runtime

opslevel-mcp

OpsLevel MCP服务器是一个基于模型上下文协议(MCP)的工具,允许AI与OpsLevel账户进行交互,提供对多种资源的只读访问。

article

README

🚀 OpsLevel MCP 服务器

OpsLevel MCP 服务器借助 模型上下文协议,为人工智能提供了与您的 OpsLevel 账户进行交互的工具,助力您更高效地管理账户资源。

mcp_image

🚀 快速开始

OpsLevel MCP 服务器为人工智能与您的 OpsLevel 账户交互提供了便利,下面为您介绍其功能、安装及配置方法。

✨ 主要特性

目前,MCP 服务器仅使用只读访问您的 OpsLevel 账户,并且可以读取以下资源的数据:

  • 行动
  • 组件
  • 文档(API 和技术文档)
  • 过滤器
  • 基础设施
  • 仓库
  • 系统
  • 团队
  • 用户

📦 安装指南

安装 MCP 服务器

  • 使用 Homebrewbrew install opslevel/tap/opslevel-mcp
  • 使用 Dockerdocker pull public.ecr.aws/opslevel/mcp:latest
    您也可以使用固定版本,查看存储库中的可用标记
  • 手动安装:访问我们的 GitHub 发布页面 并下载适合您操作系统的文件

配置环境变量

确保设置以下环境变量,以便 MCP 服务器能够访问您的 OpsLevel 账户:

OPSLEVEL_API_TOKEN=your_api_token_here

📚 详细文档

针对不同工具的配置

Claude

  1. 打开 Claude 的设置菜单并选择“设置” → “Claude 设置” → “MCP”
  2. 点击“添加新的全局 MCP 服务器”
  3. 添加以下配置:
{
  "mcpServers": {
    "opslevel": {
      "command": "claude-mcp",
      "env": {
        "OPSLEVEL_API_TOKEN": "your_api_token_here"
      }
    }
  }
}

VS Code

  1. 打开 VS Code 的设置
  2. 搜索“mcp”并启用相关选项
  3. 配置以下内容到您的 settings.json 文件中:
{
    "chat.agent.enabled": true,
    "chat.mcp.discovery.enabled": true,
    "mcp": {
        "inputs": [
          {
            "type": "promptString",
            "id": "opslevel_token",
            "description": "OpsLevel API Token",
            "password": true
          }
        ],
        "servers": {
            "opslevel": {
                "type": "stdio"
            }
        }
    }
}
READY-TO-PASTE CONFIG

MCP client config generator

Choose your client, fill the required environment variables, then copy a config generated from this server's published metadata

terminal
Environment variableslockValues stay in this browser tab and are not uploaded or saved
Claude Desktop
{
  "mcpServers": {
    "opslevel": {
      "command": "opslevel-mcp",
      "env": {
        "OPSLEVEL_API_TOKEN": "XXXXXXX"
      }
    }
  }
}
Save toclaude_desktop_config.json
help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client