Skip to content
verify mcp Beta VerifyMCP is currently in beta. If you notice any issues, get in touch and we’ll put it right.

OPA MCP

OCI · DOCKER.IO/ORYGN/OPA-MCP:0.6.0 · 2 COMPONENTS · SCANNED SEP 20

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

+6 this week 47 Trust /100
Trust breakdown (7 categories)

How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. How we score → Why this is hard to score →

Supply Chain Security0
  • Malware scan not yet available for this package.Unverified
  • Known CVEs could not be checked: this artifact ships no SBOM, so there is no dependency list to read. Publishing one would let us assess it.Unverified
  • Install-script risk not yet assessed.Unverified
  • Dependency health could not be checked: this artifact ships no SBOM, so there is no dependency list to read. Publishing one would let us assess it.Unverified
Provenance & Transparency48
  • Source repository is publicly reachable at the declared URL. View diagnostics → Pass
  • Provenance check failed: no build-provenance attestation is published. See how to fix → View diagnostics → Fail
  • Clear OSI-approved license (MIT).Pass
  • Actively maintained (last published 12 days ago).Pass
  • Publishes a security disclosure policy (SECURITY.md).Pass
Schema Quality & AI Usability79
  • 100% of prompts and resources have a non-trivial description (not blank, and not just the item's name).Pass
  • AI-judged instruction clarity (excellent).Pass
  • Context-footprint check failed: tool/resource definitions use about 12867 tokens (~233/item across 55 items; 52 tools + 3 resources), over budget; trim descriptions and params. See how to fix → Fail
  • Usage-examples check failed: none of the tools include examples. See how to fix → Fail
Stability & Change Management43
  • Stability observed for 13 of 30 days with no destabilising changes; credit accrues until the full window elapses.Partial
Tool Coverage100
  • 100% of tools have a non-trivial description (not blank, and not just the tool's name).Pass
  • 100% of tool parameters carry a description.Pass
Tool Safety81
  • No prompt-injection markers were found in the server instructions, tool names or descriptions we captured.Pass
  • 2 of 8 tool(s) whose name or description implies an irreversible operation declare an MCP destructiveHint annotation; "rego_eval" implies "eval" and declares no destructiveHint at all, which the MCP spec reads as destructive by default. See how to fix → Partial
  • An AI judge read all 54 captured unit(s) of tool text and found none that tries to manipulate the model reading it.Pass
Capabilities100
  • Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.Pass

Unverified: 1 category

A category scored 0 because we could not verify it: a data source with nothing on this package, evidence we could not reach, or a check we could not run. We only credit what we can confirm.

Install

How do I install the OPA MCP server?

OPA MCP runs locally as a container image, launched with docker run --rm -i docker.io/orygn/opa-mcp:0.6.0. Ready-made configuration for Claude, Cursor, VS Code, Codex and 3 more is on this page, copied from each client's own documentation.

oci · docker.io/orygn/opa-mcp:0.6.0

# add to Claude Code
claude mcp add orygnscode-opa-mcp -- docker run --rm -i docker.io/orygn/opa-mcp:0.6.0
// .cursor/mcp.json
{
  "mcpServers": {
    "orygnscode-opa-mcp": {
      "command": "docker",
      "args": [
        "run",
        "--rm",
        "-i",
        "docker.io/orygn/opa-mcp:0.6.0"
      ]
    }
  }
}
// .vscode/mcp.json
{
  "servers": {
    "orygnscode-opa-mcp": {
      "command": "docker",
      "args": [
        "run",
        "--rm",
        "-i",
        "docker.io/orygn/opa-mcp:0.6.0"
      ]
    }
  }
}
# add to Codex CLI
codex mcp add orygnscode-opa-mcp -- docker run --rm -i docker.io/orygn/opa-mcp:0.6.0
// opencode.json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "orygnscode-opa-mcp": {
      "type": "local",
      "command": [
        "docker",
        "run",
        "--rm",
        "-i",
        "docker.io/orygn/opa-mcp:0.6.0"
      ],
      "enabled": true
    }
  }
}
# ~/.hermes/config.yaml
mcp_servers:
  orygnscode-opa-mcp:
    command: "docker"
    args: ["run", "--rm", "-i", "docker.io/orygn/opa-mcp:0.6.0"]
// ~/.netclaw/config/netclaw.json
{
  "McpServers": {
    "orygnscode-opa-mcp": {
      "Transport": "stdio",
      "Command": "docker",
      "Arguments": [
        "run",
        "--rm",
        "-i",
        "docker.io/orygn/opa-mcp:0.6.0"
      ]
    }
  }
}
// mcp.json
{
  "mcpServers": {
    "orygnscode-opa-mcp": {
      "command": "docker",
      "args": [
        "run",
        "--rm",
        "-i",
        "docker.io/orygn/opa-mcp:0.6.0"
      ]
    }
  }
}
Changelog

Every change we have recorded for this component, newest first. Security-relevant changes are always shown. ▲ marks a change for the better, ▼ a change for the worse; unmarked changes are neutral.

  • 20 Sept 26 +1

    No change was recorded against any check on this day. Stability & Change Management went from 40 to 43. That category is still filling its 30-day observation window: 12 days of observed history at the previous scan, 13 at this one. The score rises as the window fills, whether or not the server changes.

  • 18 Sept 26 +1

    No change was recorded against any check on this day. Stability & Change Management went from 33 to 37. That category is still filling its 30-day observation window: 10 days of observed history at the previous scan, 11 at this one. The score rises as the window fills, whether or not the server changes.

  • 16 Sept 26 +1

    No change was recorded against any check on this day. Stability & Change Management went from 27 to 30. That category is still filling its 30-day observation window: 8 days of observed history at the previous scan, 9 at this one. The score rises as the window fills, whether or not the server changes.

  • 15 Sept 26 +3
    • Stability: unverified → 0.27 functional
  • 7 Sept 26 41

    First indexed and scored.

Diagnostics

Diagnostic detail from the automated scan of this channel: what the scanner observed at each step, so you can see exactly where a check passed or failed. It is informational only and never changes the trust score.

Captured 20 Sept 2026 · Analysed oci/docker.io/orygn/opa-mcp:0.6.0

Provenance No attestation

The registry publishes no build provenance for this version, so there is nothing to verify.

Result No attestation
Ecosystem oci
Reason Verification failed
Discovered via OCI referrers API

Background: How many MCP packages publish verified provenance →

MCP tools · 52 exposed · ~12,361 tokens

The tools this component advertises to a client, with an estimated token cost for each. Expand a tool to see its parameters and schema. The per-tool counts are indicative and are not scored directly; the schema's total context footprint is one signal in Schema Quality & AI Usability. A tool's description is untrusted text the model reads on every call, which is what makes this list a security surface and not just an inventory: how tool poisoning works →

Tool Tokens
conftest_pull ~308

Download Rego policies from an OCI registry or Git repository into a local directory using `conftest pull`. Use this to hydrate a local `policy/` directory before running `conftest_test`. Requires `conftest` on PATH or `CONFTEST_BINARY` set. The `policy` directory must be inside OPA_MCP_ALLOWED_PATHS. SECURITY: pulled policies are arbitrary Rego source that will be executed by `conftest_test`. Only pull from registries or repositories you own or explicitly trust -- malicious policy code can use OPA built-ins (http.send, opa.runtime) to exfiltrate data or make outbound network requests when the tests run.

NameTypeReqDescription
policystringLocal directory where the pulled policies will be written. Must be inside an allowed root (OPA_MCP_ALLOWED_PATHS). Omitted, it falls back to `policy` in the working directory of the server process, t…
urlstringyesPolicy URL to pull. Supported schemes: `oci://registry/repo:tag` (OCI registry), `github.com/org/repo//path` (GitHub subdirectory), `git::https://example.com/repo//path` (generic Git). See https://ww…

No output schema declared.

No examples provided.

conftest_push ~230

Package the local Rego policy directory as an OCI artifact and push it to a registry using `conftest push`. Registry credentials must be pre-configured in the host environment (docker login, ORAS keychain, etc.) -- this tool never handles credentials. The `policy` directory must be inside OPA_MCP_ALLOWED_PATHS. Requires `conftest` on PATH or `CONFTEST_BINARY` set.

NameTypeReqDescription
policystringPath to the local directory containing Rego policies to push. Must be inside an allowed root (OPA_MCP_ALLOWED_PATHS) and must exist. Omitted, it falls back to `policy` in the working directory of the…
repositorystringyesOCI repository URL to push policies to (e.g. `ghcr.io/my-org/policies:latest`). Registry credentials must already be configured in the host environment (via `docker login`, ORAS keychain, or REGISTRY…

No output schema declared.

No examples provided.

conftest_test ~745

Evaluate configuration files (Kubernetes manifests, Terraform plans, Dockerfiles, Helm charts, or any YAML/JSON/HCL/TOML/INI) against Rego policies using `conftest test`. Returns per-file, per-namespace pass/fail/warn results so you can pinpoint exactly which policy rules fired. Requires `conftest` on PATH or `CONFTEST_BINARY` set; returns CONFTEST_NOT_FOUND otherwise. Provide config via `files` (disk paths) or `inlineConfig` (inline string). Provide policy via `policy` (disk path) or `inlinePolicy` (inline Rego source). Omit `policy` and `inlinePolicy` to use conftest's default `./policy` directory. Policies are executed by conftest and can call OPA built-ins such as http.send.

NameTypeReqDescription
allNamespacesbooleanTest policies found in all discovered namespaces. Overrides `namespace`.
combinebooleanCombine all configuration files into a single input document before evaluating. Useful when policies need to inspect relationships across multiple files.
dataarrayPaths to directories from which additional data will be loaded for the Rego policies. Each path must be inside an allowed root.
failOnWarnbooleanReturn `passed: false` even when only warnings (no hard failures) are present.
filesarrayFilesystem paths to configuration files to evaluate (YAML, JSON, HCL, Dockerfile, etc.). Each path must be inside an allowed root (OPA_MCP_ALLOWED_PATHS). Mutually exclusive with `inlineConfig`.
inlineConfigstringInline configuration content to evaluate (e.g. a Kubernetes manifest as a YAML string). Mutually exclusive with `files`. Defaults to YAML format; set `inlineConfigParser` to override.
inlineConfigParserstringParser to use for `inlineConfig`. One of: cue, dockerfile, dotenv, edn, hcl1, hcl2, hocon, ignore, ini, json, jsonnet, nginx, properties, spdx, textproto, toml, vcl, xml, yaml. Defaults to yaml. Igno…
inlinePolicystringInline Rego policy source. Written to a temporary directory and passed as `--policy`. The policy should declare `package main` (or match the `namespace` parameter). Mutually exclusive with `policy`.
namespacestringRego namespace (package name) to test against. Defaults to `main`. Use `allNamespaces: true` to test all discovered namespaces instead.
parserstringForce a specific parser for all input `files` via conftest's global `--parser` flag, overriding extension-based detection. Useful for files whose extension does not match their format (e.g. parse a `…
policystringPath to a directory or file containing Rego policies. Must be inside an allowed root (OPA_MCP_ALLOWED_PATHS). Mutually exclusive with `inlinePolicy`. Omit to let conftest use its default `./policy` d…

No output schema declared.

No examples provided.

conftest_verify ~200

Run the `test_*` rules inside `*_test.rego` files within a conftest policy directory, verifying that the policies themselves are correct. Equivalent to `opa test` but using conftest's policy-loading machinery. Returns per-file pass/fail results, and NO_TESTS_FOUND when the directory holds no test rules. Requires `conftest` on PATH or `CONFTEST_BINARY` set; returns CONFTEST_NOT_FOUND otherwise.

NameTypeReqDescription
dataarrayPaths to data directories. Each must be inside an allowed root (OPA_MCP_ALLOWED_PATHS).
namespacestringNamespace to verify. Omit to verify all namespaces.
policystringPath to the directory containing both the Rego policies and the `*_test.rego` test files. Must be inside an allowed root (OPA_MCP_ALLOWED_PATHS). Omit to use conftest's default `./policy` directory.

No output schema declared.

No examples provided.

mcp_server_info ~61

Return the name, version, and runtime details of this opa-mcp server instance. Use this when you need to confirm which version of opa-mcp is running, or to verify that the OPA, Regal, and Conftest binaries are reachable.

Input schema present but exposes no named parameters.

No output schema declared.

No examples provided.

opa_bundle_build ~490

Build a deployable bundle from policy / data paths using `opa build`. Output is a `.tar.gz` archive with optional inline signing. Supports optimization, custom revision strings, and the WASM target.

NameTypeReqDescription
bundlebooleanLoad `paths` as bundle files or root directories (`--bundle`). Implied by `signingKey` and `verificationKey`; set it explicitly to rebuild an existing bundle without signing.
capabilitiesstringPath to a capabilities JSON file.
claimsFilestringPath to a claims file for inline signing.
entrypointsarrayEntrypoint refs (required when `target=wasm` or `optimize > 0`).
ignorearrayFile/directory name patterns to ignore during loading (`--ignore`), e.g. `[".*"]` to skip hidden files. These are name patterns, not filesystem paths.
optimizenumberOptimization level (0 = none, 2 = aggressive).
outputstringyesOutput bundle path (typically `*.tar.gz`). Must be in an allowed root.
pathsarrayyesPolicy / data paths to include. Each must be in an allowed root.
pruneUnusedbooleanExclude dependents of entrypoints that are not reachable from them (`--prune-unused`). Most useful alongside `entrypoints`.
revisionstringBundle revision string written to the manifest.
signingAlgstringSigning algorithm (e.g. RS256).
signingKeystringPath to a PEM private key for signing the built bundle (`--signing-key`). Implies `bundle: true`, which OPA requires for signing.
targetstringBuild target (default `rego`; `wasm` compiles to WebAssembly).
v1CompatiblebooleanOpt in to OPA v1.0-compatible behaviors (`--v1-compatible`). Affects the built bundle's runtime semantics.
verificationKeystringPath to a PEM public key (or HMAC secret file) used to re-verify an existing signed bundle during the build (`--verification-key`). Implies `bundle: true`, which OPA requires for verification.
verificationKeyIdstringKey ID for verification (`--verification-key-id`, OPA default `default`).

No output schema declared.

No examples provided.

opa_bundle_sign ~352

Sign a bundle directory with `opa sign`. A directory is signed in place: `.signatures.json` is written into it and files are recorded as `<directory name>/<file>`, so the signed directory verifies wherever it is placed as long as its name is unchanged, with `opa_bundle_verify` or with `opa build` or `opa run --bundle <name>` from its parent. An archive is refused: OPA reads the signature from inside it, so a signed archive comes from `opa_bundle_build` with `signingKey`. The key is a PEM private key (RSA or ECDSA); for HMAC algorithms pass a file holding the secret. Extra claims such as `keyid` and `scope` come from `claimsFile`. Returns the path written, the algorithm, and the number of files covered.

NameTypeReqDescription
bundlestringyesPath to a bundle directory. Must be inside an allowed root. An archive is refused, since OPA reads the signature from inside it; build a signed archive with `opa_bundle_build` and `signingKey`.
claimsFilestringPath to a JSON file of extra claims to sign, such as {"keyid": "...", "scope": "..."}. Must be inside an allowed root.
signingAlgstringSigning algorithm: RS256 (default), RS384, RS512, PS256, PS384, PS512, ES256, ES384, ES512, HS256, HS384, HS512.
signingKeystringyesPath to the PEM private key (RSA or ECDSA), or for HMAC algorithms a file holding the secret. Must be inside an allowed root.

No output schema declared.

No examples provided.

opa_bundle_verify ~512

Verify the signature of a signed bundle directory or `.tar.gz` archive with the public key. OPA has no standalone verify command, so this runs `opa build --verification-key` into a private temp file that is discarded. A directory is verified by name from its parent, matching how `opa_bundle_sign` signs it. OPA reads the key, checks the JWT in `.signatures.json`, compares the scope claim, then checks every file: Rego files by digest before parsing, data files and `.manifest` by parsed value, so an unparseable data file fails before its digest is compared. Failures return `INVALID_BUNDLE` with `details.reason` set to one of signature_invalid, scope_mismatch, file_modified, file_added, file_missing, file_unparseable, unsigned, signatures_malformed, not_a_bundle, bundle_load_error, or unknown when the message is not recognised; the raw output is in `details`. A key or algorithm OPA cannot use returns `INVALID_INPUT`. Pass `scope` exactly as the bundle was signed with. With a single key OPA does not check `verificationKeyId` against the signature keyid claim. `verified: true` is returned only when OPA loaded the bundle with its signature intact.

NameTypeReqDescription
bundlestringyesPath to the signed bundle directory or `.tar.gz` archive. Must be inside an allowed root.
scopestringExpected `scope` claim in the signature. Pass exactly the value the bundle was signed with, and nothing if it was signed without one; the failure reason is scope_mismatch otherwise.
signingAlgstringSigning algorithm used when the bundle was signed (e.g. `RS256`, `PS256`, `ES256`, `HS256`). Defaults to `RS256`.
v0CompatiblebooleanLoad the bundle as Rego v0 (`--v0-compatible`). A policy written before Rego v1 otherwise fails to load, after the signature and digests have already been checked.
verificationKeystringyesPath to the PEM file containing the RSA or ECDSA public key, or for HMAC algorithms a file holding the secret. Must be inside an allowed root.
verificationKeyIdstringName the key is registered under for OPA (`--verification-key-id`, default `default`). With a single key OPA verifies against it regardless of the signature keyid claim, so this rarely needs setting.

No output schema declared.

No examples provided.

opa_compile_query ~96

Send a query to the OPA server's `/v1/compile` endpoint for partial evaluation. Returns the residual query -- what remains after substituting in everything that's known.

NameTypeReqDescription
inputOptional partial input document.
querystringyesRego query to compile, e.g. "data.rbac.allow == true".
unknownsarrayRefs to treat as unknown (default: ["input"]).

No output schema declared.

No examples provided.

opa_config ~70

Return the running OPA server configuration from `GET /v1/config`. OPA drops the `credentials` block but returns `services.*.headers` verbatim, which is the ordinary place to put an API key or a bearer token, so those values are redacted here and the header names kept.

Input schema present but exposes no named parameters.

No output schema declared.

No examples provided.

opa_delete_data ~215

Remove a document from OPA's data store at the given path. A `path` is read as dotted (`users.alice`) unless it contains a slash, in which case slash is the only separator (`users/alice`), so a key such as `example.com` is addressable as `hosts/example.com`. Pass `segments` instead when a key contains both. OPA responds with 204 No Content on success; if no document exists at the path, OPA returns 404 which is mapped to `DATA_NOT_FOUND`. Root-path deletion (`/v1/data/` itself) is intentionally excluded -- supply at least one path segment.

NameTypeReqDescription
pathstringData path to delete, e.g. "users.alice" or "users/alice". Must be at least one segment deep.
segmentsarrayPath as literal key segments, e.g. ["labels", "app.kubernetes.io/name"]. Use instead of `path` when a key contains a dot or a slash.

No output schema declared.

No examples provided.

opa_delete_policy ~32

Delete a policy by ID from the running OPA server.

NameTypeReqDescription
idstringyesPolicy ID to delete.

No output schema declared.

No examples provided.

opa_exec ~542

Evaluate a policy decision against one or more input files using `opa exec --format=json`. Unlike `rego_eval` (single input), `opa exec` processes every file independently and returns a per-file result -- ideal for CI pipelines that check many config files against a policy in one call. Supply `bundle` for bundle-based policies or `dataPaths` for raw policy files; these are mutually exclusive. Each file that fails evaluation appears in `results` with an `error` field rather than a `result` field. Set one of `fail`/`failDefined`/`failNonEmpty` to turn the call into a CI gate: the result then reports `failed: true` (instead of erroring) when the gate condition is met.

NameTypeReqDescription
bundlestringPath to an OPA bundle directory or `.tar.gz` archive to load as the policy source. Mutually exclusive with `dataPaths`.
dataPathsarrayPolicy and/or data file or directory paths, each loaded as an OPA bundle root (opa exec loads policy only via bundles). Mutually exclusive with `bundle`.
decisionstringyesThe policy entrypoint to evaluate for each input, e.g. `"authz/allow"`. `opa exec` names a decision by slash-separated path with no `data.` prefix; the Rego reference forms (`data.authz.allow`, `auth…
failbooleanCI gate: report `failed: true` when any decision is undefined or errors. Mutually exclusive with `failDefined` and `failNonEmpty`.
failDefinedbooleanCI gate: report `failed: true` when any decision is defined or errors. Use when a defined result means a violation. Mutually exclusive with `fail` and `failNonEmpty`.
failNonEmptybooleanCI gate: report `failed: true` when any decision result is non-empty or errors. Mutually exclusive with `fail` and `failDefined`.
inputPathsarrayyesOne or more JSON/YAML input file paths, or a directory containing input files. OPA evaluates each file independently. Every path must be inside an allowed root.
timeoutstringPer-exec evaluation timeout as a Go duration, e.g. `"30s"` or `"5m"`. Still bounded by the server subprocess timeout (OPA_MCP_TIMEOUT_MS).
v1CompatiblebooleanOpt in to OPA v1.0-compatible behaviors (`--v1-compatible`).

No output schema declared.

No examples provided.

opa_get_data ~147

Read a path from OPA's data hierarchy. A `path` is read as dotted (`users.alice`) unless it contains a slash, in which case slash is the only separator (`users/alice`), so a key such as `example.com` is addressable as `hosts/example.com`. Pass `segments` instead when a key contains both.

NameTypeReqDescription
pathstringData path under `data.`, e.g. "users" or "users/alice".
segmentsarrayPath as literal key segments, e.g. ["labels", "app.kubernetes.io/name"]. Use instead of `path` when a key contains a dot or a slash.

No output schema declared.

No examples provided.

opa_get_policy ~112

Fetch a single policy by ID from the running OPA server. Returns the Rego source; the parsed AST is omitted unless asked for, since it is roughly forty times the size of the source it came from. Use `rego_parse_ast` on the source when an AST is what's wanted.

NameTypeReqDescription
idstringyesPolicy ID, e.g. "rbac" or "policies/auth/main".
includeAstbooleanInclude OPA's parsed AST alongside the source. Off by default.

No output schema declared.

No examples provided.

opa_health ~127

Hit the OPA `/health` endpoint. A server that answers reports `{ healthy: true }` on 200 and `{ healthy: false }` with OPA's own reason otherwise, so an unactivated bundle is a health result rather than a tool error. `OPA_UNREACHABLE` means the server could not be reached at all. Supports `bundles` and `plugins` query flags to require those subsystems to also be healthy.

NameTypeReqDescription
bundlesbooleanRequire bundle plugin to be healthy as well.
pluginsbooleanRequire all plugins to be healthy.

No output schema declared.

No examples provided.

opa_list_policies ~151

List policies registered on the running OPA server. Returns the policy IDs and a count. Set `includeSource` for the Rego text of every policy, or `includeAst` for the parsed AST of every policy; both are off by default because either one pushes a list of any real size past the response cap.

NameTypeReqDescription
includeAstbooleanInclude each policy's parsed AST. Off by default; it is roughly forty times the size of the source and will exceed the response cap on all but the smallest servers.
includeSourcebooleanInclude each policy's Rego source. Off by default: fetch one policy with `opa_get_policy` rather than every policy at once.

No output schema declared.

No examples provided.

opa_patch_data ~134

Apply a JSON Patch (RFC 6902) to the data document. Each operation is `{ op, path, value? }`. Omit both `path` and `segments` to patch the root of the data hierarchy, which is how a whole new top-level document is added.

NameTypeReqDescription
operationsarrayyesArray of JSON Patch operations.
pathstringData path the patch is applied to.
segmentsarrayPath as literal key segments, e.g. ["labels", "app.kubernetes.io/name"]. Use instead of `path` when a key contains a dot or a slash.

No output schema declared.

No examples provided.

opa_put_data ~153

Write or replace a value at the given data path. Body is sent as JSON. A `path` is read as dotted (`users.alice`) unless it contains a slash, in which case slash is the only separator (`users/alice`), so a key such as `example.com` is addressable as `hosts/example.com`. Pass `segments` instead when a key contains both.

NameTypeReqDescription
pathstringData path to write to.
segmentsarrayPath as literal key segments, e.g. ["labels", "app.kubernetes.io/name"]. Use instead of `path` when a key contains a dot or a slash.
valueJSON value to store at this path.

No output schema declared.

No examples provided.

opa_put_policy ~69

Upload a Rego policy under the given ID. Replaces any existing policy with that ID. The policy is uploaded as raw text/plain -- OPA parses it on the server side.

NameTypeReqDescription
idstringyesPolicy ID to create or replace.
sourcestringyesRego source.

No output schema declared.

No examples provided.

opa_query_decision ~160

Evaluate a decision against the running OPA server. POSTs to the data path with `{input}` and returns whatever the rule produces. Use this to ask the server "given this input, what does data.X.allow say?"

NameTypeReqDescription
explainstringInclude a trace at the requested level.
inputInput document to evaluate against.
metricsbooleanInclude metrics in the response.
pathstringDecision path under `data.`, e.g. "rbac/allow" or "rbac.allow".
segmentsarrayPath as literal key segments, e.g. ["labels", "app.kubernetes.io/name"]. Use instead of `path` when a key contains a dot or a slash.

No output schema declared.

No examples provided.

opa_status ~113

Return the running OPA server configuration via `GET /v1/config`. Returns the same underlying document as `opa_config` but presented under a `status` key as a convenience for agents that want to check "what is running" rather than "what was the server configured with". The response includes bundle settings, decision-log settings, and plugin configuration as OPA reported them at startup. Service header values are redacted, since OPA returns them verbatim and a header is the ordinary place to put an API key.

Input schema present but exposes no named parameters.

No output schema declared.

No examples provided.

rego_bench ~169

Benchmark a Rego query against a policy + input with `opa bench`. Returns statistical timing data: iterations, ns/op, and allocation counts. Use this to spot slow rules.

NameTypeReqDescription
countintegerNumber of times to repeat the benchmark (`--count N`). Defaults to OPA's built-in default of one. Above one, every repetition is returned in `runs`, `fastest` indexes the one the top-level figures co…
inputInline input document.
inputPathstringPath to a JSON input file.
pathsarrayPolicy / data paths to load. Each must be in an allowed root.
querystringyesRego query to benchmark.

No output schema declared.

No examples provided.

rego_capabilities ~366

Return OPA capabilities -- the available builtins, future keywords, features, and WASM ABI versions. With `current: true`, returns the running OPA's capabilities. With `version: "v1.19.0"`, returns those of a specific version. With neither, lists available named versions. By default (`names_only: true`), returns only builtin names and count to stay within response size limits. Pass `builtins: [...]` for the full type signatures and documentation of a few named builtins; `names_only: false` returns every full record, which needs OPA_MCP_MAX_RESPONSE_BYTES raised above its default.

NameTypeReqDescription
builtinsarrayReturn the full record (type signature, documentation, metadata) for up to 100 builtin names, exact matches only. `matched` counts the records returned and names not found are listed under `missing`.…
currentbooleanPrint the capabilities of the currently installed OPA. Mutually exclusive with `version`.
names_onlybooleanWhen true, or omitted, return only builtin names, count, future keywords, and features. The full payload for every builtin is larger than the default response cap (OPA_MCP_MAX_RESPONSE_BYTES), so `na…
versionstringA specific OPA capabilities version (e.g. "v1.19.0"). When neither flag is set, lists available versions.

No output schema declared.

No examples provided.

rego_check ~241

Type-check Rego with `opa check`. Returns `{ valid: true, errors: [] }` on success, or a list of structured diagnostics with file/line locations on failure. Provide either `source` for inline checking or `paths` for file/directory checking.

NameTypeReqDescription
bundlebooleanLoad `paths` as bundle files or root directories (`--bundle`). Only valid with `paths`, not inline `source`.
capabilitiesstringPath to a capabilities JSON file restricting allowed builtins.
maxErrorsintegerMaximum number of errors to collect before `opa check` aborts compilation (`--max-errors`, OPA default 10). Raise it to surface more diagnostics from a badly broken policy in a single pass.
pathsarrayFilesystem paths to check. Each path must be inside an allowed root (OPA_MCP_ALLOWED_PATHS).
schemaDirstringSchema directory for input/data validation.
sourcestringInline Rego source. Mutually exclusive with `paths`.
strictbooleanEnable strict mode -- fail on unused vars, deprecated builtins, etc.

No output schema declared.

No examples provided.

rego_check_schema ~398

Validate that a Rego policy's input.* field references are consistent with a JSON Schema using `opa check --schema`. Every field the policy reads from `input` must exist in the schema; mismatches surface as rego_type_error diagnostics with file/line locations. Returns `{ valid: true, errors: [] }` when all references match the schema, or `{ valid: false, errors: [...] }` with structured diagnostics when they do not. Accepts the schema inline (pass the `schema` output of `rego_infer_input_schema` directly as `inlineSchema`) or as a path to a JSON Schema file on disk, or to a schema directory when the policy declares `schemas:` annotations (`schemaPath`). Provide `source` for inline Rego or `paths` for file/directory checking.

NameTypeReqDescription
inlineSchemaobjectJSON Schema (draft-07) object describing the expected shape of the `input` document. Mutually exclusive with `schemaPath`. Accepts the `schema` field from `rego_infer_input_schema` output directly.
pathsarrayFilesystem paths to policy files or directories to validate. Each path must be inside an allowed root (OPA_MCP_ALLOWED_PATHS). Mutually exclusive with `source`.
schemaPathstringPath to a JSON Schema file on disk to use for `input` validation, or to a schema directory when the policy carries `# METADATA` / `schemas:` annotations naming files in it (opa reads a directory only…
sourcestringInline Rego source to validate against the schema. Mutually exclusive with `paths`.
strictbooleanEnable strict mode -- also fail on unused variables, deprecated builtins, and other non-fatal issues in addition to schema violations.

No output schema declared.

No examples provided.

rego_compile_query ~216

Run partial evaluation on a query -- substitute known values and return the residual policy. Defaults `unknowns` to `["input"]` (treat input as unknown), so the residual encodes "given input X, this is what would have to be true." Use this for offline policy slicing or pre-computing decision sets.

NameTypeReqDescription
inputInline input document.
inputPathstringPath to a JSON input file. Mutually exclusive with `input`.
partialbooleanRun partial evaluation rather than full evaluation.
pathsarrayPolicy / data file or directory paths. Each must be inside an allowed root.
querystringyesRego query to evaluate, e.g. "data.example.allow".
sourcestringInline Rego policy source. Mutually exclusive with `paths`.
strictBuiltinErrorsbooleanTreat builtin errors as fatal instead of returning undefined.
unknownsarrayRefs to treat as unknown during partial evaluation.

No output schema declared.

No examples provided.

rego_coverage_gaps ~138

Run opa test --coverage and return a per-file breakdown of uncovered line ranges. Identifies which rules or branches are not yet exercised by tests. Files are sorted by coverage ascending so the worst-covered files appear first. Use threshold to limit the report to files below a target coverage percentage.

NameTypeReqDescription
pathsarrayyesTest directories or files. opa test looks for *_test.rego siblings of source files.
runPatternstringRun only tests whose names match this regex.
thresholdnumberReport only files below this coverage percentage (0-100). When omitted, all files with uncovered ranges are reported.

No output schema declared.

No examples provided.

rego_deps ~104

Static dependency analysis for a Rego reference. Given a target ref like "data.example.allow", returns the base document references (input/data leaves) and virtual document references (rules) it depends on, transitively.

NameTypeReqDescription
pathsarrayyesPolicy / data paths to load before computing dependencies. Each must be inside an allowed root (OPA_MCP_ALLOWED_PATHS).
refstringyesReference to compute dependencies for, e.g. "data.example.allow".

No output schema declared.

No examples provided.

rego_describe_policy ~98

Parse a Rego policy and return a structured summary: package, imports, and rules. Each rule reports clauseCount (how many definitions share the name), isDefault (true if any clause is a default), hasArgs, bodyLength (total body expressions across all clauses), and inline annotations. Useful as the first step in any "what does this policy do" workflow.

NameTypeReqDescription
sourcestringyesRego source to describe.

No output schema declared.

No examples provided.

rego_eval ~184

Evaluate a Rego query against a policy and an input document using `opa eval`. Returns the standard `{result: [...]}` shape. The bread-and-butter authoring tool.

NameTypeReqDescription
inputInline input document.
inputPathstringPath to a JSON input file. Mutually exclusive with `input`.
partialbooleanRun partial evaluation rather than full evaluation.
pathsarrayPolicy / data file or directory paths. Each must be inside an allowed root.
querystringyesRego query to evaluate, e.g. "data.example.allow".
sourcestringInline Rego policy source. Mutually exclusive with `paths`.
strictBuiltinErrorsbooleanTreat builtin errors as fatal instead of returning undefined.
unknownsarrayRefs to treat as unknown during partial evaluation.

No output schema declared.

No examples provided.

rego_eval_with_coverage ~177

Evaluate with `--coverage` and return per-line coverage data. Useful for verifying that tests actually exercise the rules they're meant to.

NameTypeReqDescription
inputInline input document.
inputPathstringPath to a JSON input file. Mutually exclusive with `input`.
partialbooleanRun partial evaluation rather than full evaluation.
pathsarrayPolicy / data file or directory paths. Each must be inside an allowed root.
querystringyesRego query to evaluate, e.g. "data.example.allow".
sourcestringInline Rego policy source. Mutually exclusive with `paths`.
strictBuiltinErrorsbooleanTreat builtin errors as fatal instead of returning undefined.
unknownsarrayRefs to treat as unknown during partial evaluation.

No output schema declared.

No examples provided.

rego_eval_with_explain ~199

Evaluate with `--explain=full` and return a structured trace alongside the result. Use this when an agent needs to see why a rule fired (or didn't) -- the trace is the basis for `rego_explain_decision`.

NameTypeReqDescription
inputInline input document.
inputPathstringPath to a JSON input file. Mutually exclusive with `input`.
partialbooleanRun partial evaluation rather than full evaluation.
pathsarrayPolicy / data file or directory paths. Each must be inside an allowed root.
querystringyesRego query to evaluate, e.g. "data.example.allow".
sourcestringInline Rego policy source. Mutually exclusive with `paths`.
strictBuiltinErrorsbooleanTreat builtin errors as fatal instead of returning undefined.
unknownsarrayRefs to treat as unknown during partial evaluation.

No output schema declared.

No examples provided.

rego_eval_with_profile ~175

Evaluate with `--profile` and return per-rule timing and evaluation counts. Use this to find hot rules in slow policies.

NameTypeReqDescription
inputInline input document.
inputPathstringPath to a JSON input file. Mutually exclusive with `input`.
partialbooleanRun partial evaluation rather than full evaluation.
pathsarrayPolicy / data file or directory paths. Each must be inside an allowed root.
querystringyesRego query to evaluate, e.g. "data.example.allow".
sourcestringInline Rego policy source. Mutually exclusive with `paths`.
strictBuiltinErrorsbooleanTreat builtin errors as fatal instead of returning undefined.
unknownsarrayRefs to treat as unknown during partial evaluation.

No output schema declared.

No examples provided.

rego_explain_decision ~206

Evaluate a Rego query with full tracing and return a structured trace plus per-rule fired/not-fired summary. Use this when you need to answer "why was this denied?" -- the agent reads the structured trace and narrates the cause without re-implementing the trace parser.

NameTypeReqDescription
inputInline input document.
inputPathstringPath to a JSON input file. Mutually exclusive with `input`.
partialbooleanRun partial evaluation rather than full evaluation.
pathsarrayPolicy / data file or directory paths. Each must be inside an allowed root.
querystringyesRego query to evaluate, e.g. "data.example.allow".
sourcestringInline Rego policy source. Mutually exclusive with `paths`.
strictBuiltinErrorsbooleanTreat builtin errors as fatal instead of returning undefined.
unknownsarrayRefs to treat as unknown during partial evaluation.

No output schema declared.

No examples provided.

rego_explain_undefined ~251

Diagnose why a fully-qualified Rego query (e.g. "data.authz.allow") produces no value, or falls back to its default. Combines a plain eval, a full-trace eval, and per-condition AST analysis to identify the exact body expression blocking each rule. Handles both runtime failures (trace-based) and indexer elimination (standalone condition eval). A rule written with `default allow := false` always has a value, so `queryResult` reports `default` for it and the same per-rule breakdown follows: the question "why is allow false" is the question this answers. Returns a structured breakdown of which conditions blocked each rule plus a human-readable summary.

NameTypeReqDescription
inputInput document (JSON value) for the query.
inputPathstringPath to an input JSON file.
pathsarrayPolicy .rego file paths to load. Mutually exclusive with source.
querystringyesFully-qualified rule reference to explain, e.g. "data.authz.allow". Must match the path you would pass to rego_eval.
sourcestringInline Rego source to analyse. Mutually exclusive with paths.

No output schema declared.

No examples provided.

rego_fix ~300

Run regal fix to automatically apply mechanical fixes for the five rules regal 0.30.0 supports: opa-fmt, use-rego-v1, use-assignment-operator, no-whitespace-comment, and directory-package-mismatch. Use dryRun: true to preview changes before modifying files. NOTE: directory-package-mismatch moves files to match their package path -- use disable: ["directory-package-mismatch"] to skip it. Files with uncommitted git changes require force: true. Requires regal.

NameTypeReqDescription
configFilestringPath to a Regal config file (.regal/config.yaml).
disablearrayDisable specific fix rules. Useful to skip directory-package-mismatch if you do not want files moved.
disableCategoryarrayDisable all rules in a category.
dryRunbooleanPreview what would be fixed without modifying any files. Recommended before the first real run.
enablearrayEnable specific fix rules.
enableCategoryarrayEnable all rules in a category.
forcebooleanAllow fixing files that have uncommitted git changes, or when the project is not a git repository. Without this flag regal refuses to touch uncommitted files.
ignoreFilesarrayGlob patterns to exclude from fixing.
pathsarrayyesPolicy files or directories to fix. Each must be inside an allowed root (OPA_MCP_ALLOWED_PATHS).

No output schema declared.

No examples provided.

rego_format ~118

Format Rego source code using `opa fmt`. Returns the formatted source and a `changed` flag indicating whether the input was already canonical. When the source uses string interpolation ($"..." or $`...` syntax) and OPA v1.12.0 or v1.12.1 is detected, the tool warns about or blocks formatting due to a known OPA bug that corrupts \{ escape sequences (fixed in OPA v1.12.2).

NameTypeReqDescription
sourcestringyesRego source code to format.

No output schema declared.

No examples provided.

rego_format_write ~260

Run `opa fmt --write` to canonically format one or more Rego files or directories in place. Use `dryRun: true` to preview which files would change without modifying them. Returns a list of files that were (or would be) reformatted. Unlike `rego_format` which returns formatted source as a string, this tool writes directly to disk. Supports `regoV1`, `v0Compatible`, and `v1Compatible` flags for version-specific formatting. If any file cannot be parsed, the operation is aborted and no files are written.

NameTypeReqDescription
dryRunbooleanPreview which files would be reformatted without modifying them. Recommended before the first real run.
pathsarrayyesPolicy files or directories to format in place. Each must be inside an allowed root (OPA_MCP_ALLOWED_PATHS).
regoV1booleanFormat module(s) to be compatible with both Rego v1 and the current OPA version. Adds `import rego.v1` where missing.
v0CompatiblebooleanUse OPA behaviors and syntax prior to the v1.0 release.
v1CompatiblebooleanUse OPA v1.0-compatible behaviors.

No output schema declared.

No examples provided.

rego_generate_test_skeleton ~282

Generate a `*_test.rego` skeleton from a policy. Parses the AST, finds each non-test rule, and emits one stub test per rule. Existing `test_*` and `todo_test_*` rules are skipped automatically -- only production rules get stubs, and a value rule whose head is computed gets a `todo_test_` stub, which `opa test` reports as skipped until its expected value is filled in and it is renamed `test_`. The AST is walked to infer which `input.*` fields the policy accesses; the inferred shape is used as the placeholder `with input as {...}` in each stub, so the developer only needs to fill in realistic values rather than guess the structure. With `tableStyle: true`, each stub uses an `every tc in cases { ... }` loop so you can add multiple input/expected pairs without duplicating assertion code. The `inferredInputShape` field in the response shows the detected shape for reference.

NameTypeReqDescription
sourcestringyesRego source to generate tests for.
tableStylebooleanGenerate table-driven test stubs instead of single-case stubs. Each rule gets a `cases` array and an `every tc in cases { ... }` assertion loop. Pair with `rego_test varValues: true` to see which cas…

No output schema declared.

No examples provided.

rego_infer_input_schema ~153

Statically analyse one or more Rego policies and return a JSON Schema (draft-07) object describing every input.* field the policies read. Uses opa parse for AST-level analysis -- no running OPA server required. Correct starting point for writing integration tests, configuring opa check --schema validation, or documenting a policy API. Accepts inline source, individual files, or directories (walked recursively for *.rego files).

NameTypeReqDescription
pathsarrayPolicy files or directories to analyse. Each must be inside an allowed root (OPA_MCP_ALLOWED_PATHS). Directories are walked recursively for *.rego files.
sourcestringInline Rego source to analyse. Mutually exclusive with paths.

No output schema declared.

No examples provided.

rego_inspect ~71

Inspect an OPA bundle, policy directory, or single Rego file with `opa inspect`. Returns manifest data, namespaces, rule annotations, and (if signed) signature metadata.

NameTypeReqDescription
targetstringyesPath to a bundle archive (`*.tar.gz`), directory, or single Rego file.

No output schema declared.

No examples provided.

rego_lint ~289

Lint Rego source with the Regal linter. Returns categorized violations (style, bugs, idiomatic, performance) with file/line locations. Requires `regal` on PATH or `REGAL_BINARY` set; returns REGAL_NOT_FOUND otherwise. When called with inline `source`, location-bound rules whose verdict depends on the on-disk path (`directory-package-mismatch`) are auto-disabled to avoid temp-file false positives, and `location.file` is reported as `<inline>` instead of the randomized temp path. Re-enable those rules via `enable` if your workflow actually needs them.

NameTypeReqDescription
configFilestringPath to a Regal config file (defaults to .regal/config.yaml lookup).
disablearrayDisable specific named rules.
disableCategoryarrayDisable entire rule categories (e.g. style, idiomatic, bugs).
enablearrayEnable specific named rules.
enableCategoryarrayEnable entire rule categories.
failLevelstringSeverity at which Regal returns a non-zero exit. Default: `error`.
ignoreFilesarrayGlob patterns to skip.
pathsarrayFilesystem paths to lint. Each path must be inside an allowed root (OPA_MCP_ALLOWED_PATHS).
sourcestringInline Rego source. Mutually exclusive with `paths`.

No output schema declared.

No examples provided.

rego_migrate_v1 ~231

Migrate Rego v0 source to Rego v1 syntax in two phases: (1) `opa fmt --rego-v1` auto-fixes reserved keywords (`if`, `contains`, `every`, `in` in rule heads) and adds `import rego.v1`; (2) `opa check --v1-compatible` validates the migrated source and reports any remaining issues that cannot be auto-fixed (e.g. removed builtins, semantic conflicts). Returns the migrated source and a `changed` flag even when check finds remaining errors -- this lets you inspect what changed and fix the remainder manually. If the source cannot be parsed, or uses a built-in that v1 removed and so fails type checking in the first phase, returns `INVALID_REGO` with opa's own message.

NameTypeReqDescription
sourcestringyesRego v0 source to migrate to Rego v1 syntax. `opa fmt --rego-v1` auto-fixes reserved keywords and adds `import rego.v1`; any remaining issues are returned in `errors` so you can resolve them manually.

No output schema declared.

No examples provided.

rego_parse_ast ~68

Parse Rego source to a JSON AST using `opa parse`. Returns the AST as a tree of nodes (package, imports, rules, expressions, terms). Use this when you need to introspect policy structure programmatically.

NameTypeReqDescription
sourcestringyesRego source code to parse.

No output schema declared.

No examples provided.

rego_playground_share ~356

Share a Rego policy with teammates or create a reproducible example by publishing it as a GitHub Gist, secret unless `public: true` is passed, so only people holding the link can read it. Returns { gistUrl, rawPolicyUrl, id, public }: the gistUrl renders the policy with syntax highlighting on github.com; the rawPolicyUrl can be passed directly to OPA (`opa eval -d <rawPolicyUrl> <query>`) or used as a data source in Conftest. When query, input, or data are supplied, a metadata.json file is bundled into the Gist so recipients have the full evaluation context to reproduce results. Each call creates a new Gist -- use the returned id to reference it later. Requires GITHUB_TOKEN in the environment (GitHub personal access token with the "gist" scope); returns GITHUB_TOKEN_MISSING with setup instructions if unset.

NameTypeReqDescription
datastringData document as a JSON string. Stored in metadata.json alongside the policy file.
descriptionstringShort description for the Gist (shown on github.com/gists).
inputstringInput document as a JSON string. Stored in metadata.json alongside the policy file.
policystringyesRego source code to share (the contents of a .rego file).
publicbooleanMake the Gist public: listed on the account and searchable. Off by default, which creates a secret Gist that anyone holding the link can read but that is not listed anywhere.
querystringDefault query to evaluate against the policy, e.g. "data.authz.allow". Stored in metadata.json alongside the policy file.

No output schema declared.

No examples provided.

rego_policy_diff ~313

Evaluate the same query against two policies (or two versions of the same policy) and compare the results. Both evaluations run in parallel. Returns `equal: true/false`, the raw result from each side, and `changedPaths` -- the dot/bracket paths that differ. Useful for verifying that a refactor preserves behavior, or understanding exactly where two policies diverge. Each side takes either inline source (sourceA/sourceB) or a file/directory path (pathA/pathB). The same input and query are used for both evaluations.

NameTypeReqDescription
dataPathsarrayAdditional data or policy paths loaded for both evaluations. Each must be inside an allowed root.
inputInline input document (JSON). Mutually exclusive with inputPath.
inputPathstringPath to a JSON input file. Must be inside an allowed root. Mutually exclusive with input.
pathAstringFile or directory path for policy A. Must be inside an allowed root. Mutually exclusive with sourceA.
pathBstringFile or directory path for policy B. Must be inside an allowed root. Mutually exclusive with sourceB.
querystringyesThe query to evaluate against both policies, e.g. "data.example.allow".
sourceAstringInline Rego source for policy A. Mutually exclusive with pathA.
sourceBstringInline Rego source for policy B. Mutually exclusive with pathB.

No output schema declared.

No examples provided.

rego_security_audit ~165

Run regal lint restricted to its `bugs` category, the correctness rules whose defects most often turn into policy bypasses, plus any custom rules placed in a `security` category, across one or more policy directories. Returns findings grouped by severity (high/medium) with remediation guidance. Use this for a periodic fleet-wide sweep rather than per-file style review. Requires regal.

NameTypeReqDescription
configFilestringPath to a Regal config file. Useful when your repo has custom rule configuration.
ignoreFilesarrayGlob patterns to exclude from the audit.
pathsarrayyesPolicy directories or files to audit. Each must be inside an allowed root (OPA_MCP_ALLOWED_PATHS). Pass the root of your policy fleet to scan everything at once.

No output schema declared.

No examples provided.

rego_suggest_fix ~87

Map common Rego compile errors and Regal lint findings to mechanical fix suggestions. Pass diagnostics from `rego_check` or `rego_lint`. Returns one suggestion per input diagnostic; confidence is `high` for well-known patterns, `medium` for partial matches, `low` for everything else.

NameTypeReqDescription
diagnosticsarrayyesDiagnostics from rego_check or rego_lint.

No output schema declared.

No examples provided.

rego_test ~867

Run Rego unit tests with `opa test`. Returns aggregate pass/fail/skip/error counts plus per-test records. `errored` counts tests OPA could not evaluate (a rule conflict, a raising built-in); such a test is neither a pass nor a failure, and a suite with any is not passing. Tests live in `*_test.rego` files; rule names beginning with `test_` are picked up automatically. Use `runPattern` to filter by name regex; when no tests match, the error hint includes the pattern you supplied. Use `threshold` to gate on minimum coverage (returns COVERAGE_BELOW_THRESHOLD on failure). Use `varValues: true` with `verbose: true` to include local variable bindings in the trace -- essential for debugging table-driven tests written with `every tc in cases { ... }` to identify which case caused a failure. When tests use the `test_x[case]` parameterized form, OPA reports the rule as a single test whatever the number of cases; `parameterizedGroups` maps the rule name to a record per case and `caseCounts` totals them, so a failing rule says which case failed. Use `ignorePatterns` to exclude generated or fixture files. Use `bundle: true` when testing bundle-structured policy directories. Use `timeout` to raise the per-test limit beyond OPA's default 5s. Note: enabling `coverage` or `threshold` switches OPA to coverage-report output mode -- per-test counts are unavailable but `coverage` and `coveragePct` fields are populated.

NameTypeReqDescription
bundlebooleanLoad paths as OPA bundle roots (`--bundle`). Required when testing policies structured as bundles with a `manifest.json` at the root. Not needed for plain policy directories.
countintegerNumber of times to repeat the suite (`--count N`). Default is 1. Useful for catching flaky tests. OPA stops at the first repetition that fails, so `repetitions` in the output reports how many actuall…
coveragebooleanInclude per-line coverage data. Switches output to coverage-report mode: test record counts are not available, but `coverage` and `coveragePct` fields are populated.
explainstringAdd a query-explanation trace to test records (`--explain`). `fails` traces only failing tests, `full` traces everything, `notes` surfaces `trace()` notes, `debug` is most verbose. Populates each rec…
ignorePatternsarrayGlob patterns for files to exclude from the test run (`--ignore <pattern>`). Pass one pattern per array element. Useful for excluding generated or fixture files that contain no tests (e.g. `["*_gener…
pathsarrayyesTest directories or files. `opa test` looks for `*_test.rego` siblings of source files.
runPatternstringRun only tests whose names match this regular expression (passed as `--run`).
thresholdnumberMinimum coverage percentage required (0–100). Returns COVERAGE_BELOW_THRESHOLD when actual coverage falls below this value. Implicitly enables coverage-report output mode.
timeoutstringPer-test timeout as a Go duration string, e.g. `"30s"` or `"2m"` (`--timeout`). OPA's default is 5s. Increase for tests that load large policy sets or call slow built-ins.
v1CompatiblebooleanOpt in to OPA v1.0-compatible behaviors (`--v1-compatible`).
varValuesbooleanInclude local variable bindings in trace output (`--var-values`). When a table-driven test using `every tc in cases { ... }` fails, the trace shows which `tc` triggered the failure. Has no effect unl…
verbosebooleanEmit per-test pass/fail details.

No output schema declared.

No examples provided.

Common questions

What is the OPA MCP server?

OPA MCP is listed in the public MCP registry as io.github.OrygnsCode/opa-mcp. Author, validate, debug, and explain OPA Rego policies through any MCP-compatible client. This page covers its container image (docker.io/orygn/opa-mcp:0.6.0).

Is the OPA MCP server safe to use?

OPA MCP scores 47 out of 100 on VerifyMCP. That is a record of what we were able to check automatically, not an endorsement. The category breakdown on this page shows every signal behind the number, including the ones we could not confirm.

What tools does the OPA MCP server expose?

OPA MCP exposes 52 tools: rego_format, rego_check, rego_check_schema, rego_lint, rego_parse_ast, and 47 more. Their descriptions and schemas cost roughly 12,361 tokens of context every time the server is loaded.

Is the OPA MCP server still maintained?

OPA MCP is still listed as active in the MCP registry. We last reached this channel on 20 September 2026. Those dates come from our own scans of the registry and the channel itself, not from anything the publisher announced.

What licence is the OPA MCP server under?

OPA MCP declares the MIT licence, which is OSI-approved. That covers the source only, and says nothing about the cost of any service it calls.