oz-policy-builder
MCP server

Resources

Five resource URI families for stored recordings, specs, and artifacts.

The MCP server exposes stored entities as resources. Clients can subscribe to a URI and stream its contents without re-running the producing tool.

URI schemeMIME typeReturned content
recording://<id>application/jsonThe Recording JSON document.
spec://<id>application/jsonThe PolicySpec JSON document.
artifact://<id>/source.rstext/plainRendered Rust source for the first Generated slot.
artifact://<id>/policy.wasmapplication/wasmCompiled WASM bytes, base64-encoded inside the resource envelope.
artifact://<id>/install_envelope.xdrtext/plainInstall envelope XDR, base64-encoded.

<id> is the recording_id, spec_id, or artifact_id returned by the producing tool.

Resource handlers run against the same in-memory store as tool handlers, so a resource URI is valid as long as the parent process is alive (recordings, specs) or as long as the snapshot is on disk (snapshots are a separate store with 30-day retention).