docs/development/.
Getting Started
Clone the repo, install dependencies, run the dev servers, and find your way around the code.
Architecture
The actual moving parts:
AppServer, the service layer, file vs. database storage, and request paths.Embedding Lifecycle
How smart-routing embeddings are generated, persisted, and refreshed.
Contributing
Coding style, commit message conventions, and PR review expectations.
Quick reference
- Source layout:
src/server.tsis the process entrypoint; HTTP routes live insrc/routes/index.ts. See Architecture for the full map. - Dev servers:
pnpm devruns the backend on:3000and the Vite frontend on:5173. The frontend proxies/api,/mcp,/sse,/oauth,/healthto the backend (frontend/vite.config.ts). - Tests:
pnpm testruns the Jest suite. Tests live undersrc/**/*.test.tsandtests/. - Lint / format:
pnpm lint,pnpm format. - Storage modes: file (default,
mcp_settings.json) or PostgreSQL — see Database Configuration.