Back to MCP directory
publicPublicdnsLocal runtime

OpsLevel

OpsLevel MCP服务器是一个基于Model Context Protocol的工具,允许AI通过API令牌与OpsLevel账户进行交互,支持读取多种资源数据。

article

README

🚀 OpsLevel MCP 服务端

OpsLevel MCP 服务端基于模型上下文协议(MCP),为您提供了强大的工具,能让 AI 与您的 OpsLevel 账户进行交互,助力您更高效地管理账户资源。

mcp_image

🚀 快速开始

功能概述

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

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

安装指南

  1. 安装 MCP 服务端
    • Homebrew:使用命令 brew install opslevel/tap/opslevel-mcp 进行安装。
    • Docker:使用命令 docker pull public.ecr.aws/opslevel/mcp:latest 拉取镜像。您也可以使用固定版本,查看画廊中的可用标记
    • 手动安装:访问我们的 GitHub 发布页面 并下载适用于您操作系统的二进制文件。
  2. 您需要一个 API 令牌 通过环境变量授权 MCP 服务端与您的账户通信。
  3. 设置 MCP 配置以适合您选择的 AI 工具。

不同工具配置示例

Claude

Claude Desktop

  1. 编辑指定路径下的文件(根据 Claude Desktop 文档)
    • Mac OS${HOME}/Library/Application\ 支持/Claude/claude_desktop_config.json
    • Windows%APPDATA%\Claude\claude_desktop_config.json
  2. 启动(或重新启动)Claude Desktop
{
    "mcpServers": {
        "opslevel": {
            "command": "opslevel-mcp",
            "env": {
                "OPSLEVEL_API_TOKEN": "XXXXXXX"
            }
        }
    }
}

VS Code

VS Code 用户设置

  1. 打开设置菜单(Command + Comma)并选择正确的选项卡,位于页面顶部
    • 工作区:在工作区上下文中配置 MCP 服务端
  2. 根据需要复制以下内容到 settings.json 或直接通过 UI 配置
{
    "copilot.mcp.configurations": {
        "opslevel": {
            "command": "opslevel-mcp",
            "env": {
                "OPSLEVEL_API_TOKEN": "XXXXXX"
            }
        }
    }
}

Cursor

Cursor 文档

  1. 根据需要复制以下内容到 ~/.config/cursor/settings.json 或直接通过 UI 配置
{
    "mcpServers": {
        "opslevel": {
            "command": "opslevel-mcp",  
            "env": {
                "OPSLEVEL_API_TOKEN": "XXXXXX"
            }
        }
    }
}

Docker

如果您没有直接安装二进制文件,而是拉取了 docker 镜像,则需要调整上述 MCP 配置以支持通过 docker 运行服务器

{
    "mcpServers": {
        "opslevel": {
            "command": "docker",
            "args": [
                "run",
                "-i",
                "--rm",
                "-e",
                "OPSLEVEL_API_TOKEN",
                "public.ecr.aws/opslevel/mcp:latest"
            ]
        }
    }
}
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