Deploy ZCP

Use the ASGI host for network deployments. Keep docs hosting separate from the SDK runtime.

ASGI host

The production-oriented example lives in examples/zcp_server_template.py and is exposed through the ASGI runner in examples/run_zcp_api_server.py.

cd zero-context-protocol-python
python3 examples/run_zcp_api_server.py

Service routes

A standard deployment may expose /zcp, /mcp, /ws, /metadata, /healthz, and /readyz, plus OAuth metadata and token routes when enabled.

Production checks

  • Decide which transports are public and which are internal-only.
  • Attach bearer auth or OAuth before exposing mutating tools.
  • Validate health, readiness, rate limiting, and reconnect behavior.

Docs app

The docs app is separate from the SDK runtime and should stay that way.

cd zero-context-protocol/docs/web
npm ci
npm run dev

Transports, Authorization, Examples.