rego_check

MCP tool from Opa MCP Server by OrygnsCode

Type-check and validate Rego. Wraps opa check.

How to use it

Project documentation lists rego_check for the Opa MCP Server MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), then check which tools your installed version makes available. Tool availability can depend on configuration and credentials. A server handshake does not verify this tool’s behavior. See the full listing for setup details.

Install Opa MCP Server

$npx -y @orygn/opa-mcp
FULL OPA MCP SERVER LISTING

Other tools in Opa MCP Server (39)

opa_bundle_build

Build a .tar.gz bundle from a policy directory. Supports optimize and revision.

opa_bundle_sign

Sign a bundle with a private key. Returns .signatures.json content.

opa_bundle_verify

Verify the signature of a signed bundle using a public key. Returns { bundle, verified: true }.

opa_compile_query

Partially evaluate a query against the running server.

opa_config

Server configuration (without secrets).

opa_delete_data

Delete a document from the data hierarchy.

opa_delete_policy

Delete a policy by ID.

opa_exec

Batch-evaluate a decision against multiple input files. Returns per-file results with successCount and errorCount.

opa_get_data

Read a path from the data hierarchy.

opa_get_policy

Get a single policy by ID.

opa_health

Liveness / readiness check.

opa_list_policies

List policies registered on the server.

opa_patch_data

Apply a JSON Patch to the data hierarchy.

opa_put_data

Write to a path in the data hierarchy.

opa_put_policy

Upload or replace a policy.

opa_query_decision

POST to a /v1/data/... decision endpoint with input.

opa_status

Bundle / decision-log status.

rego_bench

Run opa bench and return statistical timing data.

rego_capabilities

Return the capabilities (built-ins, future keywords) understood by the bundled OPA.

rego_check_schema

Check Rego against a JSON Schema. Validates that every input. field the policy reads exists in the schema using opa check --schema. Accepts inline schema or a path to a JSON Schema file on disk.

rego_compile_query

Partially evaluate a query against a policy.

rego_coverage_gaps

Run opa test --coverage and return per-file uncovered line ranges, sorted worst first. Use threshold to focus on files below a target percentage.

rego_deps

Static dependency analysis: rule-level data references and cross-package calls.

rego_describe_policy

Summarize what a policy does, its inputs, decisions, and assumptions.

rego_eval

Evaluate a query against a policy and input. The bread-and-butter tool.

rego_eval_with_coverage

Evaluate with --coverage and return per-line coverage.

rego_eval_with_explain

Evaluate with --explain=full and return a structured trace.

rego_eval_with_profile

Evaluate with --profile and return per-rule timing and evaluation counts.

rego_explain_decision

Walk through every rule that fired (and didn't) for a given query. Wraps regoevalwithexplain and produces a step-by-step natural-language trace.

rego_format

Format Rego source. Wraps opa fmt. Idempotent.

rego_generate_test_skeleton

Given a policy, generate a test.rego skeleton covering each rule.

rego_inspect

Inspect a bundle or directory: packages, rules, annotations. Wraps opa inspect.

rego_lint

Run Regal across a file or directory. Returns findings grouped by category. Requires regal on PATH or REGALBINARY set.

rego_migrate_v1

Migrate Rego v0 source to v1 syntax. Runs opa fmt --rego-v1 then validates with opa check --v1-compatible. Returns { original, migrated, changed, valid, errors }.

rego_parse_ast

Parse Rego to AST JSON. Wraps opa parse.

rego_security_audit

Run regal lint restricted to security and bugs categories across a directory. Returns severity-grouped findings with remediation guidance.

rego_suggest_fix

For a failed regocheck or regolint, propose minimal patches.

rego_test

Run opa test over a directory. Returns pass/fail per test, with optional coverage.

rego_test_multiroot

Run Rego tests across multiple roots. Solves OPA's package-conflict problem for repos with multiple independent namespaces. Supports explicit root lists and scan mode (auto-discovers leaf test roots).