@crediolabs/policy-builder-mcp
v5.2.0
Published
MCP server for the OZ Policy Builder: the eight policy-synth tools over stdio and loopback Streamable HTTP.
Maintainers
Readme
@crediolabs/policy-builder-mcp
An MCP server for the OZ Policy Builder.
It registers the nine tools of
@crediolabs/policy-synth
exactly as that package defines them (record_transaction, synthesize_policy,
simulate_policy, verify_policy, install_policy, revoke_policy, bind_policy,
get_interpreter_info, review_unsigned): name, description and input schema come from its table,
and so does every answer. A result is the tool's data as JSON text and as
structuredContent; a refusal sets isError and carries the error envelope
(code, message, retryable).
Run
Register the published package at version 5.2.0:
{ "mcpServers": { "policy-builder": {
"command": "npx", "args": ["-y", "@crediolabs/[email protected]"] } } }From a checkout of the repository, build policy-synth and this package
(bun run --cwd packages/<name> build) and point the client at
packages/policy-builder-mcp/dist/bin/server.js with node.
policy-builder-mcp serves stdio. policy-builder-mcp --http [--http-port N]
serves stateless Streamable HTTP at POST /mcp on loopback; the surface has no
authentication, so a non-loopback host is refused unless the embedding code passes
allowExternalHost (startHttpServer).
The server holds no key material: install and revoke return unsigned XDR for a wallet to sign. See the agent manual for which tool to call for which intent, and the policy-synth README for the limits, the install guardrails and the operator's environment variables.
License
MIT
