klieo-ops-api
Read-only HTTP monitoring router for klieo agentic systems.
Mount at /_ops to expose operator visibility into agent runs, A2A tasks, and MCP stream state.
Quickstart — laptop-dev
[]
= { = "2", = ["dev-auth"] }
use OpsRouterBuilder;
#
with_dev_auth() wires AllowAnonymous and is gated behind the
dev-auth feature (CWE-1188). Production builds without that feature
cannot reach the permissive authenticator. Never enable
dev-auth on a multi-tenant network — bind to loopback or a dev
container only.
Cargo features
| Feature | Default | Purpose |
|---|---|---|
dev-auth |
off | Surfaces OpsRouterBuilder::with_dev_auth(), which wires AllowAnonymous. Laptop-dev only; CWE-1188. |
test-fixtures |
off | Activates klieo-auth-common/test-fixtures + klieo-core/test-utils for downstream test harnesses. |
Production wiring
use Arc;
use Authenticator;
use OpsRouterBuilder;
#
Endpoints
| Endpoint | Store required | Description |
|---|---|---|
GET /_ops/runs |
RunLogStore |
List agent runs (filter: agent, status, limit) |
GET /_ops/runs/{id} |
RunLogStore |
Get full run detail with steps |
GET /_ops/agents |
RunLogStore |
Per-agent run count aggregation |
GET /_ops/tasks |
A2aTaskStore |
List A2A tasks by context_id |
GET /_ops/streams |
KvResumeBuffer |
List active MCP stream checkpoints |
Missing stores return 501 Not Implemented. Auth is pluggable via klieo-auth-common::Authenticator.