πŸ“– MUTX Docs
GitHubΒ·mutx.dev
Welcome
Manifesto
Whitepaper
Roadmap
Documentation Hub
Autonomous Agent Team
MUTX Infrastructure
Python SDK
Support
Contributing
Security Policy
Licensing
Contributor Covenant Code of Conduct
AGENTS.md
App Dashboard
Changelog Status
Claim to Reality Gap Matrix
Governance
Migration Runbook
Monitoring
Mutation Testing
OTel
Overview
Quickstart
Surface Matrix
Technical Whitepaper
Webhook Governance
  1. Docsβ€Ί
  2. Welcome

Debugging#

This guide reflects the current stack and route surface.

Container and Service Logs#

docker compose -f infrastructure/docker/docker-compose.yml logs -f api
docker compose -f infrastructure/docker/docker-compose.yml logs -f frontend
docker compose -f infrastructure/docker/docker-compose.yml logs -f postgres
docker compose -f infrastructure/docker/docker-compose.yml logs -f redis

API Health Checks#

curl http://localhost:8000/
curl http://localhost:8000/health
curl http://localhost:8000/ready

Use /ready when you want to know whether the database is actually available.

Inspect Agents and Deployments#

curl http://localhost:8000/v1/agents
curl http://localhost:8000/v1/deployments
curl http://localhost:8000/v1/agents/YOUR_AGENT_ID
curl http://localhost:8000/v1/agents/YOUR_AGENT_ID/logs?limit=50
curl http://localhost:8000/v1/agents/YOUR_AGENT_ID/metrics?limit=50

Auth Debugging#

Register and log in again if you want to validate the auth flow end to end:

curl -X POST http://localhost:8000/v1/auth/register \
  -H "Content-Type: application/json" \
  -d '{"email":"you@example.com","name":"You","password":"StrongPass1!"}'

curl -X POST http://localhost:8000/v1/auth/login \
  -H "Content-Type: application/json" \
  -d '{"email":"you@example.com","password":"StrongPass1!"}'

Database Checks#

docker compose -f infrastructure/docker/docker-compose.yml exec postgres pg_isready -U mutx
docker compose -f infrastructure/docker/docker-compose.yml exec postgres psql -U mutx -d mutx -c "SELECT now();"

If the API is degraded, compare the running DB host to your .env DATABASE_URL.

CLI Debugging#

mutx status
mutx whoami
mutx agents list --limit 5
mutx deploy list --limit 5
mutx tui

If a CLI command fails unexpectedly, compare it against the route implementations in:

  • cli/commands/agents.py
  • cli/commands/deploy.py
  • src/api/routes/

Frontend Checks#

npm run test:app
npm run build

Use npm run test:app for the current app-level Jest coverage under tests/unit/. Do not rely on ad hoc next lint --file ... commands here; the repo's trusted baseline is scripts/test.sh plus targeted unit or Playwright runs.

Playwright Note#

npm run build
npx playwright test --list
npx playwright test tests/website.spec.ts -g "no console errors or remote Guild asset requests"

Current Playwright smoke coverage runs locally via the checked-in config. Build first when .next/standalone is missing, then use npx playwright test --list to confirm discovery and run the smallest matching spec or grep target.

Trusted Validation Baseline#

bash scripts/test.sh

That script is the current repo-native validation baseline and now includes:

  • Python lint and format checks
  • Python compile checks
  • full API pytest suite
  • OpenAPI type generation
  • app-level frontend unit tests
  • production build verification
  • targeted Playwright smoke coverage
PreviousCommon IssuesNextFAQ

Last updated via GitBook sync β€” source at GitHub

On this page

Container and Service LogsAPI Health ChecksInspect Agents and DeploymentsAuth DebuggingDatabase ChecksCLI DebuggingFrontend ChecksPlaywright NoteTrusted Validation Baseline