Fixes for the errors you hit setting up Piyaz: port 3000 in use, Postgres refusing connections, db:migrate failures, and MCP tools missing in Claude Code.
Common issues when setting up or running Piyaz. If your problem is not listed here, open a GitHub issue.
Symptom:drizzle-kit migrate exits with an error about missing tables, connection issues, or the database URL being undefined.
Fix:
Confirm the database connection URLs are set in .env.local (not .env).
Confirm the database is reachable: run docker compose ps to check the container health.
If you just started Docker, wait a few seconds for Postgres to finish initializing, then retry:
bun run db:migrate
bun run db:setup handles the wait automatically: it brings up Postgres with docker compose up --wait, which blocks until the database healthcheck passes before applying the schema.
Symptom: After installing the plugin, Claude Code does not show Piyaz tools or the /piyaz skill.
Fix:
Confirm the plugin is installed:
claude plugin marketplace add FrkAk/piyazclaude plugin install piyaz@piyaz
Run /mcp, select piyaz, and complete the browser sign-in. The tools appear once OAuth succeeds.
If you self-host, confirm your own instance is running, then register it as a second server and sign in. Use your own origin in place of http://localhost:3000:
claude mcp add -s user --transport http piyaz-self-hosted http://localhost:3000/api/mcpclaude mcp login piyaz-self-hosted
The bundled piyaz server points at the hosted app and never at your instance. See the self-host guide.
If tools still do not appear, restart Claude Code completely.