Deterministic verification infrastructure for AI agent outputs.
Guardian Engine — API & MCP Integration Guide
Deterministic verification infrastructure for AI agent outputs. Guardian Engine catches hallucinated temperatures, missing techniques, wrong ingredients, and impossible cooking steps before they reach the pan. Recipes are the first vertical — the same deterministic approach generalises to any procedural domain where correctness matters.
Endpoint: https://api.kaimeilabs.dev/mcp
Transport: Streamable HTTP (MCP)
Auth: None — free during early access (fair use applies)
Connect Your Agent
Guardian is a hosted MCP server. No install, no API key, no Docker. Pick your client and paste the config.
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"guardian": {
"url": "https://api.kaimeilabs.dev/mcp",
"transport": "streamable-http"
}
}
}
Restart Claude Desktop. Ask: "List the available dishes in Guardian Engine" to confirm.
Cursor
Open Settings → MCP Servers → Add new MCP server, then paste:
{
"guardian": {
"url": "https://api.kaimeilabs.dev/mcp",
"transport": "streamable-http"
}
}
VS Code (GitHub Copilot)
Add to your .vscode/mcp.json (or user settings.json under "mcp"):
{
"servers": {
"guardian": {
"type": "http",
"url": "https://api.kaimeilabs.dev/mcp"
}
}
}
Windsurf
Add to your Windsurf MCP config:
{
"mcpServers": {
"guardian": {
"serverUrl": "https://api.kaimeilabs.dev/mcp"
}
}
}
Smithery (One-Click)
— auto-configures Claude Desktop, Cursor, and more.
[!WARNING] Smithery Proxy Limitation: The default Smithery proxy URL (
guardian-engine--kaimeilabs.run.tools) does not support Streaming HTTP and will silently fail. You MUST edit your MCP config after installation to use the direct endpoint:https://api.kaimeilabs.dev/mcp.
Glama.ai
Guardian Engine is also listed on Glama.ai — discover and connect to MCP servers from the Glama directory.
Any MCP Client (Python SDK)
import asyncio
from mcp.client.session import ClientSession
from mcp.client.streamable_http import streamable_http_client
from httpx import AsyncClient
async def main():
async with AsyncClient(timeout=30.0) as http:
async with streamable_http_client("https://api.kaimeilabs.dev/mcp", http_client=http) as streams:
read_stream, write_stream, _ = streams
async with ClientSession(read_stream, write_stream) as session:
await session.initialize()
result = await session.call_tool("list_dishes", arguments={"cuisine_filter": "french"})
print(result)
asyncio.run(main())
pip install mcp>=1.2.1 httpx>=0.27.0
Tools
`verify_recipe`
Verify a candidate recipe against a Guardian master recipe. Returns a structured report with verdict, score, and detailed findings.
| Parameter | Type | Required | Description |
|---|---|---|---|
dish |
string | Yes | Name or alias of the dish (e.g. "carbonara", "rendang", "kung-pao", "bourguignon") |
candidate_json |
string | Yes | Full recipe as a JSON string — see schema.md |
original_prompt |
string | No | The user's original request that generated the recipe |
Tip — pass the prompt for better feedback: When you include original_prompt (e.g. "Make a spicy vegan rendang"), Guardian activates Guided Oracle Mode: it reads the user's intent and returns specific, actionable improvement hints tailored to their request. Without it, Guardian returns only a Pass/Fail verdict and score.
`list_dishes`
List all master recipes Guardian can verify against.
| Parameter | Type | Required | Description |
|---|---|---|---|
cuisine_filter |
string | No | Filter by cuisine (e.g. "french", "chinese", "thai") |
Available Recipes (25 dishes, 13 cuisines)
| Cuisine | Dishes |
|---|---|
| French | Confit de Canard · Cheese Soufflé · Crème Brûlée · French Onion Soup · Coq au Vin · Beef Bourguignon |
| Chinese | Kung Pao Chicken · Cantonese Steamed Fish |
| Thai | Thai Green Curry · Pad Thai |
| Indian | Chicken Tikka Masala · Biry |
Tools (2)
verify_recipeVerify a candidate recipe against a Guardian master recipe to receive a structured report with verdict, score, and findings.list_dishesList all master recipes Guardian can verify against, with optional cuisine filtering.Configuration
{"mcpServers": {"guardian": {"url": "https://api.kaimeilabs.dev/mcp", "transport": "streamable-http"}}}