All notable changes to mcp-opa-authz are documented here.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
v0.8.0 - 2026-12-03
Section titled “v0.8.0 - 2026-12-03”The first release from dyokto/mcp-opa-authz. Adds coaz_map; the other five tools, their arguments, their output schemas and the Rego sandbox are what v0.7.0 shipped.
coaz_map, for the OpenID AuthZEN COAZ-MCP binding (Draft 1). Given an MCP request, the token's claims and a tool'sx-authzen-mapping(or none, for the default mapping), it builds the AuthZEN request a COAZ enforcement point would send, and withevaluateasks the PDP. Addscel.dev/cel-go: the binding's expressions are CEL, and a conforming implementation has to evaluate them.
Changed
Section titled “Changed”- Relicensed from MIT to Apache-2.0. Releases up to v0.7.0 remain under MIT. A
NOTICEfile now ships in the release archives. - The repository moved to
dyokto/mcp-opa-authz. The Go module path is nowgithub.com/dyokto/mcp-opa-authz, so install withgo install github.com/dyokto/mcp-opa-authz@latest. v0.7.0 and earlier stay available atgithub.com/kanywst/mcp-opa-authzin the Go module proxy. - The container image is now
ghcr.io/dyokto/mcp-opa-authz.ghcr.io/kanywst/mcp-opa-authzstays public with the tags it already has, and gets no new ones. - The MCP Registry name is now
io.github.dyokto/mcp-opa-authz.io.github.kanywst/mcp-opa-authzwill be marked deprecated once the new name is listed. - Release signatures come from the
dyokto/mcp-opa-authzworkflow. Releases up to v0.7.0 were signed underkanywst/mcp-opa-authz; the README shows both identities. - The Homebrew formula is unchanged:
brew install kanywst/tap/mcp-opa-authz.
Compatibility
Section titled “Compatibility”- No configuration change is needed to upgrade from v0.7.0.
go installusers switch to the new module path.
v0.7.0 - 2026-11-17
Section titled “v0.7.0 - 2026-11-17”One behaviour change on the AuthZEN path. The tools, their arguments, their output schemas and the sandbox are otherwise what v0.6.3 shipped.
Changed
Section titled “Changed”- A PDP response that echoes a different
X-Request-IDis rejected. AuthZEN 1.0 §Request Identification requires the PDP to return the identifier it was sent; a response carrying another one may belong to another request, so its decision is reported as an error instead of being used. A response without the header is still accepted, since the header is only the RECOMMENDED way to return it. This applies to every PDP call, metadata included.
Compatibility
Section titled “Compatibility”- No configuration change is needed to upgrade from v0.6.3. A PDP, or a proxy in front of it, that rewrites
X-Request-IDon the way back now gets an error where it used to get a decision.
v0.6.3 - 2026-11-17
Section titled “v0.6.3 - 2026-11-17”Security and dependencies only. The tools, their arguments, their output schemas and the sandbox are what v0.6.2 shipped.
Security
Section titled “Security”- Release binaries are built with go1.26.11, picking up the
net/httpfix for GO-2026-6859 (CVE-2026-97054), which govulncheck reports as reachable from this server. The bug is in the HTTP/1 server path and this server speaks MCP over stdio, but the symbol-level report is what release binaries are held to. - GO-2026-6911 (
github.com/mark3labs/mcp-go, no fixed version yet) is in the HTTP client transport; source-level govulncheck finds no call path from this server.
Changed
Section titled “Changed”github.com/mark3labs/mcp-gov1.3.0 → v1.5.0.github.com/open-policy-agent/opav1.21.2 → v1.22.4. The built-in function set is unchanged, soevaluate_policyaccepts and rejects the same built-ins as v0.6.2.
Compatibility
Section titled “Compatibility”- No configuration change is needed to upgrade from v0.6.2.
v0.6.2 - 2026-10-25
Section titled “v0.6.2 - 2026-10-25”Security and dependencies only. The tools, their arguments, their output schemas and the sandbox are what v0.6.1 shipped.
Security
Section titled “Security”- Release binaries are built with go1.26.10, picking up the
crypto/tls,net/httpandnet/textprotofixes for GO-2026-6603, GO-2026-6605, GO-2026-6607, GO-2026-6608, GO-2026-6610, GO-2026-6611, GO-2026-6612, GO-2026-6613 and GO-2026-6617 (go1.26.9) and thecrypto/x509fix for GO-2026-6809 (go1.26.10), all of which govulncheck reports as reachable from this server.
Changed
Section titled “Changed”github.com/mark3labs/mcp-gov1.1.1 → v1.3.0.github.com/open-policy-agent/opav1.21.1 → v1.21.2.
Compatibility
Section titled “Compatibility”- No configuration change is needed to upgrade from v0.6.1.
v0.6.1 - 2026-10-07
Section titled “v0.6.1 - 2026-10-07”Security and dependencies only. The tools, their arguments, their output schemas and the sandbox are what v0.6.0 shipped.
Security
Section titled “Security”golang.org/x/cryptov0.55.0 → v0.57.0, fixing GO-2026-6354 and GO-2026-6355. Source-level govulncheck finds no call path from this server to either, but both are linked into the release binary. GO-2026-5932 also affectsx/cryptoand has no fixed version yet; it is likewise not called.- Release binaries are built with go1.26.8.
go.modhad notoolchainline, so CI and the release built with thegodirective's go1.26.6 and missed the standard library fixes in go1.26.7 and go1.26.8. Thegodirective, the minimum forgo install, is unchanged.
Changed
Section titled “Changed”github.com/open-policy-agent/opav1.21.0 → v1.21.1.github.com/google/jsonschema-gov0.4.2 → v0.4.3.
Compatibility
Section titled “Compatibility”- No configuration change is needed to upgrade from v0.6.0.
v0.6.0 - 2026-10-04
Section titled “v0.6.0 - 2026-10-04”The batch tool follows the PDP's advertised endpoint, as search does since v0.5.0.
Changed
Section titled “Changed”authzen_evaluate_batchuses the endpoint the PDP advertises. AuthZEN 1.0 §Transport says the request URL MUST be the endpoint from the PDP's metadata when one is advertised; the batch tool always derived/access/v1/evaluationsfromAUTHZEN_PDP_URL. Withoutpdp_url, it now resolvesaccess_evaluations_endpointexactly asauthzen_searchresolves its endpoints since v0.5.0: from the configured PDP's metadata, cached five minutes, held to the PDP's own origin, falling back to the default path. The result gainsendpoint_source.
Compatibility
Section titled “Compatibility”- No configuration change is needed. A PDP that advertises no
access_evaluations_endpoint, or serves no metadata, is called at the same/access/v1/evaluationsas before. - A PDP whose metadata advertises an
access_evaluations_endpointon another origin now makes the batch tool fail with an error naming it, instead of being silently bypassed; pass the endpoint aspdp_urlto use it.
v0.5.0 - 2026-10-03
Section titled “v0.5.0 - 2026-10-03”AuthZEN 1.0 metadata conformance. authzen_search now goes where the PDP says
its search endpoints are, and metadata is found and trusted the way the
specification says.
Changed
Section titled “Changed”authzen_searchuses the endpoint the PDP advertises. AuthZEN 1.0 §Transport says the request URL MUST be the endpoint from the PDP's metadata when one is advertised; v0.4.0 always used the default path. Withoutpdp_url, the tool now reads/.well-known/authzen-configurationfrom the configured PDP's root and usessearch_{subject,resource,action}_endpoint, falling back to the default path when the PDP has no usable metadata or advertises none for that search. The document is cached per PDP root for five minutes, so searches do not pay a metadata round trip each; on a cold cache a search makes two round trips, each bounded byAUTHZEN_PDP_TIMEOUT. Only a definite answer is cached: a timeout or 5xx while refreshing keeps the previous document in use rather than falling back to the default path for five minutes. An advertised endpoint must be on the PDP's own origin (same scheme and host), since the PDP token is sent to it; pass a cross-origin endpoint aspdp_urlto use it deliberately. The result's newendpoint_source(pdp_url,metadataordefault) says which was used.
- The metadata URL for a PDP under a path prefix was in the wrong place. AuthZEN 1.0 inserts
/.well-known/authzen-configurationbetween the host and the path (RFC 8615), so a PDP athttps://gw.example.com/pdppublisheshttps://gw.example.com/.well-known/authzen-configuration/pdp. Earlier releases appended it after the prefix. The specification's location is now tried first and the appended one second, only on a 404, so a deployment set up for the old form keeps working. A root without a path is unaffected. authzen_discoverused metadata that named a different PDP. AuthZEN 1.0 requires the document'spolicy_decision_pointto be identical to the PDP identifier the well-known URL was built from, and says a document that fails that MUST NOT be used. It is now checked, tolerating only a trailing slash, and a mismatch is a tool error instead of a set of endpoints for some other PDP.
Compatibility
Section titled “Compatibility”- No configuration change is needed. A PDP that advertises no search endpoints, or serves no metadata, is searched at the same default paths as in v0.4.0.
- A PDP under a path prefix that served its metadata only at the appended location (
…/pdp/.well-known/authzen-configuration) is still found, one 404 later. authzen_discovernow refuses a metadata document whosepolicy_decision_pointis not the PDP it was fetched from, where v0.4.0 returned it.
v0.4.0 - 2026-10-03
Section titled “v0.4.0 - 2026-10-03”A fifth tool, authzen_search, completes the AuthZEN 1.0 Final surface, and a
schema fix makes structured results usable by clients that validate them.
authzen_search, the AuthZEN 1.0 Search APIs. One tool for Subject, Resource and Action Search, selected bysearch: "who may read this document", "which documents may Alice read", "what may Alice do to this document". The endpoint defaults to the specification's/access/v1/search/{subject,resource,action}under the root ofAUTHZEN_PDP_URL, so no new configuration is needed. Pagination is passed through aspage_limit/page_tokenand reported ashas_more/next_page_token.- The search tool holds the same line as the evaluation tools: a response without
resultsis an error rather than "nothing is permitted", apageobject withoutnext_tokenis an error rather than a guess about completeness, and a result whosetypeis not the one searched for is rejected. A search argument that would be silently ignored by the PDP — anidon the searched-for entity, anactionon an action search — is rejected before the request is sent.
- The advertised
outputSchemarejected real results. Every member passed through from the PDP —contextonauthzen_evaluateand on eachauthzen_evaluate_batchdecision,capabilitiesandsupported_evaluation_optionsfromauthzen_discover— was declared as an array of integers 0–255, because the schema was inferred fromjson.RawMessageas if it were[]byte. A client that validatesstructuredContentagainstoutputSchema, as the MCP specification says it should, rejected the result whenever the PDP sent one of them. Those members are now declared as any JSON value; nothing else in the schemas changed.
Compatibility
Section titled “Compatibility”- No configuration change is needed to upgrade from v0.3.x.
authzen_searchderives its endpoints fromAUTHZEN_PDP_URL, and needs a PDP that implements the Search APIs. - The existing four tools keep their arguments and results. Their advertised
outputSchemachanges only for the pass-through members listed above.
v0.3.1 - 2026-09-29
Section titled “v0.3.1 - 2026-09-29”Dependencies only. The four tools, their arguments, their output schemas and the sandbox are what v0.3.0 shipped.
Changed
Section titled “Changed”github.com/mark3labs/mcp-gov1.0.0 → v1.1.1. The stdio transport now cancels in-flight tool calls when the client closes stdin, so a client that hangs up mid-call no longer leaves a PDP request running after the session has ended.github.com/open-policy-agent/opav1.20.2 → v1.21.0.
Compatibility
Section titled “Compatibility”- No configuration change is needed to upgrade from v0.3.0.
v0.3.0 - 2026-09-11
Section titled “v0.3.0 - 2026-09-11”Distribution and dependencies. No tool behaviour changed: the four tools, their arguments, their output schemas and the sandbox are what v0.2.1 shipped.
- A Homebrew formula,
kanywst/tap/mcp-opa-authz.brew install kanywst/tap/mcp-opa-authzis now an alternative togo install, so installing the server no longer requires a Go toolchain. GoReleaser writesFormula/mcp-opa-authz.rbintokanywst/homebrew-tapas part of the release run, using a fine-grained token scoped tocontents: writeon the tap and nothing else. A Formula rather than a Cask, to matchspiffe-compliance-checker— the other Go CLI in the tap, built and installed the same way.
Changed
Section titled “Changed”github.com/mark3labs/mcp-gov0.58.0 → v1.0.0. A major version on the dependency, not on its use here: the server registers the same four tools through the same API, andmake check— including the end-to-end stdio smoke test — passes unchanged.github.com/open-policy-agent/opav1.19.1 → v1.20.2.- The build stage of both Dockerfiles moves to
golang:1.27-alpine. The runtime image is stillgcr.io/distroless/static-debian12:nonroot.
Compatibility
Section titled “Compatibility”AUTHZEN_PDP_URL,AUTHZEN_PDP_TOKEN,MCP_OPA_EVAL_TIMEOUTandMCP_OPA_ALLOW_NETWORK_BUILTINSkeep their names and meaning. No configuration change is needed to upgrade from v0.2.x.
v0.2.1 - 2026-08-20
Section titled “v0.2.1 - 2026-08-20”Release plumbing only. The binaries, the container image's behaviour and every tool are byte-for-byte what v0.2.0 shipped; nothing about the server changed.
- The container image now carries
io.modelcontextprotocol.server.name. The MCP registry refuses to list an image that does not name the server it belongs to — it is how the registry proves theio.github.kanywstnamespace owns the image — so v0.2.0's listing was rejected and never happened. The label is on both Dockerfiles, and CI now checks it againstnameinserver.json. server.jsonputs the OCI tag inidentifierrather than in a separateversionfield, which the registry rejects outright for OCI packages, and itsdescriptionis under the registry's 100-character limit.
Changed
Section titled “Changed”- The registry publish is called from
release.ymlrather than triggered byrelease: published. goreleaser creates the release withGITHUB_TOKEN, and GitHub does not start workflows from aGITHUB_TOKENaction, so that trigger never fired — the listing silently never ran, with nothing red to show for it. - CI gained
release-snapshot, which runs the whole goreleaser release without publishing and then makes the image it produced answer over stdio; aserver.jsoncheck against the schema the file itself declares; and shellcheck. The v0.2.0 release broke on aCOPYthat could not resolve, because nothing had ever run the release path.
v0.2.0 - 2026-08-19
Section titled “v0.2.0 - 2026-08-19”The first release since the mcp-opa / mcp-authzen merge. It brings the AuthZEN surface up to the 1.0 final specification, modernises the MCP surface, and closes a set of holes that came from evaluating model-supplied policy in-process.
authzen_evaluate_batch— the AuthZEN Access Evaluations (batch) API,POST /access/v1/evaluations. Answers "which of these may the subject touch" in one round trip instead of a loop of single calls. Top-level subject/action/resource/context act as defaults each entry may override;evaluations_semanticselectsexecute_all,deny_on_first_denyorpermit_on_first_permit. Decisions carry an explicit index, and a short response from an early-exit semantic is reported astruncatedrather than silently zipped against the request list. Capped at 100 entries.authzen_discover— PDP metadata discovery,GET /.well-known/authzen-configuration. Accepts a PDP root or an evaluation endpoint (the known AuthZEN suffix is stripped) and preserves a mount prefix.X-Request-IDon every PDP call, as the specification recommends, and returned in the tool result so a decision in a transcript can be found in the PDP's logs.- AuthZEN entity validation.
subject.type,subject.id,resource.type,resource.idandaction.nameare required by the specification and are now checked before the request is sent, so a missing member produces a message naming it instead of an opaque PDP400. - Tool annotations (
readOnlyHint,destructiveHint,idempotentHint,openWorldHint,title) on every tool, so an MCP client can decide what it may run without prompting.evaluate_policyis closed-world; theauthzen_*tools are not. - Output schemas and structured content. Every tool declares an output schema and returns
structuredContentalongside the text fallback, so a client does not have to re-parse prose. - Server instructions, telling the model which layer answers which question — the common failure was reaching for a PDP when the policy source was already in the conversation.
evaluate_policyreturnsdefinedandvalue. An undefined Rego query returns an empty result set, which reads as "false" to anything not already fluent in Rego. "The policy denied" and "the policy has no opinion" are now distinguishable.print()output is captured and returned, andtraceoptionally returns a pretty-printed evaluation trace, capped at 200 lines. Both exist because this tool is for debugging a policy, and "why did this rule not fire" was previously unanswerable.rego_versionargument,v1(default) orv0, for debugging pre-OPA-1.0 policies.- Container image at
ghcr.io/kanywst/mcp-opa-authz, multi-arch, distroless, non-root — for MCP clients that launch servers withdocker run. server.jsonand a publish workflow for the official MCP registry.- Configurable bounds:
AUTHZEN_PDP_TIMEOUT,AUTHZEN_PDP_MAX_RESPONSE_BYTES,MCP_OPA_EVAL_TIMEOUT,MCP_MAX_ARG_BYTES,MCP_OPA_ALLOW_NETWORK_BUILTINS. A malformed value stops the server at startup instead of being silently replaced by the default. CONTRIBUTING.md,SECURITY.mdwith a threat model,CODE_OF_CONDUCT.md, issue and PR templates,CODEOWNERS, and aClaude reviewworkflow.
Security
Section titled “Security”- The Rego sandbox.
evaluate_policycompiles and runs policy source that came from a language model, inside this process.http.send,net.lookup_ip_addrandopa.runtimeare removed from the OPA capability set: the first was the tool's entire SSRF surface and contradicted its own description, the second is enough to exfiltrateinputover DNS, and the third returns the process environment. Time, JWT, UUID and random built-ins are untouched — they appear in real policies.MCP_OPA_ALLOW_NETWORK_BUILTINS=truerestores them deliberately. - A Rego evaluation deadline (
MCP_OPA_EVAL_TIMEOUT, 5s). Previously an expensive comprehension wedged the server for the life of the session with no way to recover short of killing the subprocess. - Redirects from a PDP are refused rather than followed. Following one would send the
Authorizationheader to a host the operator never configured and take a decision from an origin nobody chose. pdp_urlrejects userinfo (http://user:pass@host), which would otherwise be sent to a host the configured token was not issued for and echoed into error messages.- PDP error bodies are truncated to 512 bytes before reaching the model's context; the read limit alone allowed a megabyte of an error page through.
- Everything an evaluated policy can put into a tool result is bounded.
print()at 200 lines of 1 KiB each (printed_truncated), the trace at 4000 collected events and 200 rendered lines of 1 KiB (trace_truncated), the query result at 256 KiB encoded (result_set_omitted, withdefinedstill reported because whether the query had an answer is knowable even when the answer is not returnable). The first two are bounded where they are collected, not only where they are rendered: the policy is model-supplied and runs in-process for the whole evaluation budget, so a cap applied at the end limited the response while the buffer grew unchecked. - Panic recovery on tool handlers, so a panic inside OPA cannot take down the client's whole session.
- A PDP response with no
decisionwas reported as a deny. The member is REQUIRED by AuthZEN 1.0, and decoding it into a Goboolmade a PDP that failed to answer indistinguishable from one that said no. It is now a tool error. This is the most consequential fix in this release. - Only
200is treated as carrying a decision. Any other status is an error, and401/403say explicitly that this server failed to authenticate to the PDP rather than that the subject was denied — the two have completely different fixes, and the old message did not distinguish them. - A clean shutdown exited non-zero.
ServeStdioreports the client closing stdin, or SIGINT/SIGTERM, as a context cancellation; that was passed tolog.Fatalf, so every normal exit looked like a crash in the client's log. - Failing built-ins no longer become a silent deny.
StrictBuiltinErrorsis on, so a type error in a policy is reported as an error instead of making the expression undefined. - The
Authorizationscheme check is case-insensitive and tolerates surrounding whitespace, per RFC 9110. A token configured asbearer xwas previously re-prefixed intoBearer bearer x. - Argument size limits.
rego,input_json,data_jsonand the AuthZEN entities are bounded; previously any of them could be arbitrarily large.
Changed
Section titled “Changed”- Breaking: tool result shapes.
evaluate_policyreturned the bare OPAResultSetas JSON text and now returns an object withdefined,value,result_set,printedandtrace.authzen_evaluatereturned{decision, context}and now also carriespdp_urlandrequest_id. Anything parsing the text content of these tools needs updating; the raw result set is still there underresult_set. - Breaking: AuthZEN entities are validated. A
subjectof{"id":"alice"}with notypewas previously forwarded and is now rejected. - Configuration is read once at startup rather than per tool call, so behaviour no longer depends on when a call happened.
- Restructured into
config.go,args.go,authzen.goandopa_capabilities.goalongside the tool files. Still a flatpackage main. make smokedrives all four tools plustools/list, and asserts the sandbox rejectshttp.sendend to end..golangci.ymladded; the linter previously ran on defaults.
Compatibility
Section titled “Compatibility”- Built against OPA v1.19.1 and mcp-go v0.58.0 (MCP protocol 2025-11-25, with backward compatibility to 2024-11-05).
AUTHZEN_PDP_URLandAUTHZEN_PDP_TOKENkeep their names and meaning.
v0.1.0 - 2026-08-19
Section titled “v0.1.0 - 2026-08-19”First release after merging 0-draft/mcp-opa and 0-draft/mcp-authzen into one binary. Two tools, evaluate_policy and authzen_evaluate, over MCP stdio.
© 2026 The mcp-opa-authz Authors. Licensed under Apache-2.0. Part of dyokto.