# @waggle/team-server The multi-user team server: Fastify with Clerk authentication, PostgreSQL through drizzle, Redis and BullMQ jobs, a WebSocket gateway, cron and the team routes (teams, agents, tasks, messages, knowledge, resources, audit, analytics, capability governance). **Postponed.** Team mode stays in the repository but is not built, bundled or shipped in the community edition ([ADR-0003](../../docs/oss/adr/0003-team-mode-postponed.md)). This package is not part of `npm run build:packages`, and the local sidecar (`@waggle/server`) does not import or start it. Do not add features here until the owner decides otherwise. `packages/worker` and `packages/waggle-dance` belong to the same postponed team runtime. ## Running it anyway The server needs PostgreSQL and Redis (see `docker-compose.yml`) and a Clerk secret key. ```bash cd packages/team-server DATABASE_URL=postgres://waggle:waggle_dev@localhost:5434/waggle npx tsx src/db/migrate.ts DATABASE_URL=... REDIS_URL=redis://localhost:6381 CLERK_SECRET_KEY=... npx tsx src/index.ts ``` Most tests in `tests/` need the same services and are listed in `vitest.infra-suites.ts`; `npm run test:infra` runs them.