assay-cli-1.3.0 is not a library.
Assay is the missing link between your AI Agent and Production. It enforces Policy-as-Code on Model Context Protocol (MCP) tool usage, ensuring your agents behave safely and deterministically.
For Vibecoders: Connect your agent output, run assay validate, and see if it breaks the rules.
For Engineers: High-performance Rust binary, rigid schema validation, and CI/CD integration.
🚀 Features
- Policy Engine: Enforce schema strictness and sequence ordering (
search_before_escalate). - The Doctor: Smart diagnostics (
assay doctor) that fix typo'd tool names and config issues automatically. - CI-Native: Generates GitHub/GitLab workflows instantly (
assay init-ci). - Stateless Python SDK: Validate traces directly in
pytestwithout a database.
⚡ Quick Start
1. Instant Verification
Don't guess. Verify.
# Install (macOS/Linux)
|
# Generate a demo environment (policy + traces) and run checks
2. CI/CD in 10 Seconds
Stop writing YAML manually.
# Generate a ready-to-merge GitHub Actions workflow
3. The Clinic (Debugging)
Something wrong? Let the Doctor diagnose it.
# Analyzes your config, policies, and traces for common issues
🐍 Python SDK
Integrate directly into your pytest suite. No server required.
"""
Validate agent traces against your defined policy.
Raises strict errors on violations.
"""
=
assert , f
Note: Full docstrings and type hints included. Your IDE will love you.
🛠️ CLI Reference
| Command | Purpose |
|---|---|
assay validate |
Run stateless validation on trace files. |
assay doctor |
Diagnose config issues and fuzzy-match known errors. |
assay init-ci |
Generate CI workflow templates (GitHub/GitLab). |
assay run |
Execute and capture traces from an agent (Advanced). |
📚 Documentation
License
MIT.