Skip to main content
Glama
dmc5179

RHACS MCP Server

by dmc5179

RHACS MCP Server

面向 Red Hat Advanced Cluster Security for Kubernetes API 的 MCP(Model Context Protocol)服务器。

通过动态代理模式,为 LLM 提供对全部 69 个 RHACS API 服务(361 个端点)的访问能力——6 个元工具让 LLM 能够发现、检查并调用任意 RHACS 端点。

工具

Tool

Description

rhacs_list_services

列出全部 69 个 API 服务及其端点数量

rhacs_list_endpoints

列出指定服务的端点

rhacs_get_endpoint_details

获取端点的完整参数规范

rhacs_get_model

查找数据模型定义(字段、枚举)

rhacs_search_endpoints

跨所有端点进行关键字搜索

rhacs_call_api

调用 RHACS Central API 端点

前 5 个工具可基于随附的 API 规范离线工作。只有 rhacs_call_api 需要与运行中的 RHACS Central 建立连接。

Related MCP server: Red Hat Lightspeed MCP

快速开始

# Install and build
npm install
npm run build

# Run (discovery tools work without env vars)
npm start

# With RHACS Central access
ROX_ENDPOINT=https://central.example.com:443 \
ROX_API_TOKEN=your-token \
npm start

容器

# Build
./build.sh

# Run
podman run -i --rm \
  -e ROX_ENDPOINT=https://central.example.com:443 \
  -e ROX_API_TOKEN=your-token \
  rhacs-mcp

文档

项目结构

src/
  index.ts              # MCP server entry point
  api-client.ts         # HTTP client (auth, TLS, errors)
  registry.ts           # API spec loader and indexer
  types.ts              # TypeScript interfaces
  tools/                # 6 MCP tool implementations
api_spec/               # RHACS 4.10 API spec (69 services, 900 models)
docs/                   # Documentation
Containerfile           # Multi-stage UBI9 container build
podman-compose.yml      # Local testing config

许可证

参见 LICENSE。

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    D
    maintenance
    A generic MCP server that dynamically exposes any OpenAPI-documented REST API to LLMs by auto-discovering endpoints. It provides tools for exploring API capabilities and making authenticated requests directly through natural language interfaces.
    2
    11 npm
    MIT
  • A
    license
    B
    quality
    A
    maintenance
    A lightweight, self-hosted MCP server that connects LLM-based agents to Red Hat Lightspeed services, enabling natural language querying of read-only (and optionally write) operations across Advisor, Image Builder, Inventory, Planning, Remediations, and Vulnerability services.
    45
    25
    Apache 2.0
  • A
    license
    Not graded
    quality
    D
    maintenance
    MCP server for interacting with QUADS infrastructure systems via API, enabling resource management and automation through LLM applications.
    MIT
  • F
    license
    Not graded
    quality
    C
    maintenance
    MCP server for BeyondContainer platform, enabling LLMs to query clusters, nodes, workloads, images, monitoring, and security scans via 58 tools.
    1
    -