AgentHubAgentHub

OPA MCP

MCP ServerMCP Registry官方收录

io.github.OrygnsCode/opa-mcp · v0.1.3

Author, validate, debug, and explain OPA Rego policies through any MCP-compatible client.

概览

OPA MCP 是一个MCP Server,收录自 官方 MCP Registry。支持 stdio 传输。本页提供 Cursor、Claude Code 等客户端的安装配置片段。

安装

选择你的平台查看安装方式

{
  "mcpServers": {
    "opa-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@orygn/opa-mcp"
      ]
    }
  }
}

环境变量

OPA_URL可选

Base URL of a running OPA server. Required only for opa_* runtime tools, not for rego_* language tools.

OPA_TOKEN可选secret

Bearer token for OPA running with --authentication=token.

OPA_BINARY可选

Path to the opa binary. Defaults to 'opa' on PATH.

REGAL_BINARY可选

Path to the regal binary (optional, used by rego_lint). Defaults to 'regal' on PATH.

OPA_MCP_ALLOWED_PATHS可选

Comma-separated list of root directories tools may read/write. When unset, file-based tools refuse to access the disk.

OPA_URL可选

Base URL of a running OPA server.

OPA_TOKEN可选secret

Bearer token for OPA authentication.

相关资源

统一 Manifest

{
  "id": "io.github.OrygnsCode/opa-mcp",
  "type": "mcp-server",
  "version": "0.1.3",
  "displayName": "OPA MCP",
  "description": "Author, validate, debug, and explain OPA Rego policies through any MCP-compatible client.",
  "repository": {
    "url": "https://github.com/OrygnsCode/opa-mcp-server",
    "source": "github"
  },
  "homepage": "https://orygn.tech",
  "distribution": {
    "packages": [
      {
        "registryType": "npm",
        "identifier": "@orygn/opa-mcp",
        "version": "0.1.3",
        "runtimeHint": "npx",
        "transport": "stdio",
        "environmentVariables": [
          {
            "name": "OPA_URL",
            "description": "Base URL of a running OPA server. Required only for opa_* runtime tools, not for rego_* language tools."
          },
          {
            "name": "OPA_TOKEN",
            "description": "Bearer token for OPA running with --authentication=token.",
            "isSecret": true
          },
          {
            "name": "OPA_BINARY",
            "description": "Path to the opa binary. Defaults to 'opa' on PATH."
          },
          {
            "name": "REGAL_BINARY",
            "description": "Path to the regal binary (optional, used by rego_lint). Defaults to 'regal' on PATH."
          },
          {
            "name": "OPA_MCP_ALLOWED_PATHS",
            "description": "Comma-separated list of root directories tools may read/write. When unset, file-based tools refuse to access the disk."
          }
        ]
      },
      {
        "registryType": "oci",
        "identifier": "docker.io/orygn/opa-mcp:0.1.3",
        "transport": "stdio",
        "environmentVariables": [
          {
            "name": "OPA_URL",
            "description": "Base URL of a running OPA server."
          },
          {
            "name": "OPA_TOKEN",
            "description": "Bearer token for OPA authentication.",
            "isSecret": true
          }
        ]
      }
    ],
    "remotes": []
  },
  "dependencies": [],
  "installTargets": [
    "claude-code",
    "claude-desktop",
    "cursor",
    "vscode"
  ],
  "keywords": [],
  "provenance": {
    "origin": "official-mcp-registry",
    "originalId": "io.github.OrygnsCode/opa-mcp",
    "originalUrl": "https://registry.modelcontextprotocol.io/v0.1/servers/io.github.OrygnsCode%2Fopa-mcp/versions/latest",
    "isOfficial": true,
    "status": "active"
  }
}
OPA MCP — MCP Server 安装与配置 · AgentHub