返回市场
运维级别-MCP

运维级别-MCP

作者:OpsLevel8 星标更新:2025-11-20

项目介绍

技术文档摘要

<p align="center"> <a href="https://github.com/OpsLevel/opslevel-mcp/blob/main/LICENSE"> <img src="https://img.shields.io/github/license/OpsLevel/opslevel-mcp.svg" alt="License" /></a> <a href="https://GitHub.com/OpsLevel/opslevel-mcp/releases/"> <img src="https://img.shields.io/github/v/release/OpsLevel/opslevel-mcp" alt="Release" /></a> <a href="https://masterminds.github.io/stability/active.html"> <img src="https://masterminds.github.io/stability/active.svg" alt="Stability: Active" /></a> <a href="https://github.com/OpsLevel/opslevel-mcp/graphs/contributors"> <img src="https://img.shields.io/github/contributors/OpsLevel/opslevel-mcp" alt="Contributors" /></a> <a href="https://github.com/OpsLevel/opslevel-mcp/pulse"> <img src="https://img.shields.io/github/commit-activity/m/OpsLevel/opslevel-mcp" alt="Activity" /></a> <a href="https://github.com/OpsLevel/opslevel-mcp/releases"> <img src="https://img.shields.io/github/downloads/OpsLevel/opslevel-mcp/total" alt="Downloads" /></a> <a href="https://app.opslevel.com/services/opslevel_mcp/maturity-report"> <img src="https://img.shields.io/endpoint?style=flat&url=https%3A%2F%2Fapp.opslevel.com%2Fapi%2Fservice_level%2Fdlmj6PlFjehv6iLE6IQtEGXi_uz3LF9rA5nxb35wiY8" alt="Overall" /></a>

Trust Score

</p> <p align="center"> <a href="https://glama.ai/mcp/servers/@OpsLevel/opslevel-mcp"> <img width="380" height="200" src="https://gips1.baidu.com/it/u=2220121344,1124236586&fm=3081&app=3081&f=PNG?w=760&h=400" /> </a> </p>

OpsLevel MCP 服务器

此 MCP(模型上下文协议)服务器为AI提供了与您的OpsLevel账户交互的工具。

mcp_image

功能

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

  • 操作
  • 活动
  • 检查
  • 组件
  • 文档(API和技术文档)
  • 域名
  • 过滤器
  • 基础设施
  • 存储库
  • 系统
  • 团队
  • 用户

安装

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

Claude

Claude桌面

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

VS Code

VS Code用户设置

  1. 打开设置菜单(Command + Comma),并根据您的使用情况选择正确的选项卡
    1. 工作区 - 在工作区上下文中配置服务器
    2. 用户 - 在用户上下文中配置服务器
  2. 选择功能 → 聊天
  3. 确保“Mcp”已启用
    1. 您可能需要让您的GitHub管理员在CoPilot设置中为组织启用“预览”功能。
  4. 单击“在settings.json中编辑”以进行如下配置
    1. 也可以直接编辑文件
      1. (Mac OS) ${HOME}/Library/Application\\ Support/Code/User/settings.json
  5. 启动(或重启)VS Code
{
    "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",
                "command": "opslevel-mcp",
                "env": {
                    "OPSLEVEL_API_TOKEN": "${input:opslevel_token}"
                }
            }
        }
    }
}

Cursor

Cursor文档

安装MCP服务器

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

Warp

Warp

  1. 在设置 > AI > 管理MCP服务器下访问您的MCP设置。Warp提供了 其他方式访问此列表的说明
  2. 点击添加按钮
  3. 添加以下配置
{
  "opslevel": {
    "command": "opslevel-mcp",
    "args": [],
    "env": {
      "OPSLEVEL_API_TOKEN": "XXXXXX"
    },
    "start_on_launch": true
  }
}

Windsurf

Windsurf

  1. 导航到Windsurf - 设置 > 高级设置
  2. 向下滚动到Cascade部分,您会找到添加新服务器的选项
  3. 使用以下配置编辑 mpc_config.json
  4. 重启Windsurf
{
  "mcpServers": {
    "opslevel": {
      "command": "opslevel-mcp",  
      "env": {
        "OPSLEVEL_API_TOKEN": "XXXXXX"
      }
    }
  }
}

Docker

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

        "command": "docker",
        "args": [
          "run",
          "-i",
          "--rm",
          "-e",
          "OPSLEVEL_API_TOKEN",
          "public.ecr.aws/opslevel/mcp:latest"
        ],