Deployment
Deploy the full platform with Docker or Fly.io; distribute MCP via PyPI.
MCP-only distribution
For editor integrations, users install pokt-agent-mcp from PyPI. No separate deployment required — the MCP client spawns pocketagent-mcp locally.
Docker
The repository includes Dockerfiles for both services:
backend/Dockerfile— FastAPI + uvicornfrontend/Dockerfile— Next.js production build
# Example: build backend image
docker build -t pocketagent-api ./backend
# Run with env file
docker run --env-file backend/.env -p 8000:8000 pocketagent-apiFly.io
frontend/fly.toml configures the frontend app. Set secrets for API URL, WalletConnect project ID, and ensure the backend CORS origin matches your Fly hostname.
Production checklist
- Configure all required env vars — see Configuration
- Persist SQLite or migrate to a managed database path on durable volume
- Set
NEXT_PUBLIC_API_URLwithout trailing slash - Enable HTTPS termination at the edge
- Review Security before exposing write tools
Health checks
Probe GET /health on the backend. Chat SSE endpoints should not be used as health checks — they hold connections open.