@guardrail-sim/mcp-server
v0.3.0
Published
MCP server exposing evaluate_policy tool for AI agents
Downloads
504
Maintainers
Readme
@guardrail-sim/mcp-server
MCP server that exposes pricing policy tools to AI agents. Run it, point your MCP client at it, and your agent can evaluate discounts, check policy rules, and simulate checkouts.
Part of guardrail-sim.
Quick Start
npx @guardrail-sim/mcp-serverOr install globally:
npm install -g @guardrail-sim/mcp-server
guardrail-mcpTools
| Tool | What it does |
| ---------------------------- | --------------------------------------------------- |
| evaluate_policy | Check a proposed discount against the active policy |
| get_policy_summary | Return all policy rules in plain English |
| get_max_discount | Find the best discount available for a given order |
| validate_discount_code | Validate a code and return UCP-standard error codes |
| simulate_checkout_discount | Run a full UCP checkout with discounts applied |
Programmatic Usage
import { createServer } from '@guardrail-sim/mcp-server';
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
const server = createServer();
await server.connect(new StdioServerTransport());Docs
License
MIT
