Ops dual-auth demo¶
Source: samples/ops-dual-auth/
Hero sample for platform engineers:
- REST UI for services, deploys, and freeze windows
- MCP at
/mcpwith DualAuth (API key fast-path; JWT whenJWT_*is set) - Enrich
hrefdeep links into the UI - Agent playbook at
/agent-guide.mdand as an MCP resource
Run locally¶
pip install -e '.[dev,jwt]'
cd samples/ops-dual-auth
MCP_API_KEY=demo-secret SITE_URL=http://127.0.0.1:8080 \
PYTHONPATH=../../src uvicorn app:app --port 8080
Live instance¶
Deploy with Docker + Fly or Render (configs in the sample folder). After deploy:
| App | (set after deploy) |
| MCP | https://<host>/mcp |
| Auth | X-API-Key: <MCP_API_KEY> (and Bearer JWT when configured) |