- Rust engine: real bootstrap/wiring preflight (guardrail-agent), execution layer (retry/router/pre-trade/post-trade/reconciliation), guardrail-doctor diagnostics with allowlist-drift guard. - guardrail-cli: extracted pure helpers into util.rs (split in progress). - 6 Track-2 skills + ensemble; python-lab analytics (regime/drawdown/montecarlo/dossier/ensemble/journal/seed); clients (ts/py/go/mcp/langchain/web-lite/proof-verifier); alert relay; scenarios; helm/k8s/compose; docs. - dashboard/vercel.json + docs/VERCEL_DEPLOY.md for Vercel deployment. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
32 lines
717 B
Python
32 lines
717 B
Python
#!/usr/bin/env python3
|
|
"""Entrypoint for the Guardrail MCP stdio server.
|
|
|
|
Run with::
|
|
|
|
python3 clients/mcp/run.py
|
|
|
|
The server reads line-delimited JSON-RPC 2.0 requests from stdin and writes
|
|
responses to stdout. Configure the target API with the ``GUARDRAIL_BASE_URL``
|
|
environment variable (default ``http://localhost:8080``).
|
|
"""
|
|
|
|
from __future__ import annotations
|
|
|
|
import os
|
|
import sys
|
|
|
|
# Make the guardrail_mcp package importable when run as a standalone script.
|
|
_THIS_DIR = os.path.dirname(os.path.abspath(__file__))
|
|
if _THIS_DIR not in sys.path:
|
|
sys.path.insert(0, _THIS_DIR)
|
|
|
|
from guardrail_mcp.server import serve # noqa: E402
|
|
|
|
|
|
def main() -> None:
|
|
serve()
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|