- Bump @modelcontextprotocol/sdk from 1.0.4 to 1.29.0 in runner-template (1.0.4 has no McpServer or StreamableHTTPServerTransport — file not found at runtime). - Bump zod to 3.25.76 across workspace to satisfy modern SDK peer dep. - Split OAUTH_ISSUER (canonical, host-reachable) from CONTROL_PLANE_URL (container-reachable for JWKS). Runner verifies iss against OAUTH_ISSUER; fetches JWKS from CONTROL_PLANE_URL. Both API and runner now agree on http://localhost:4000/oauth as the issuer in dev. - Move postgres host port 5432 to 5440, redis 6379 to 6390 to avoid collisions with native installs on the dev machine. - Move web from 3000 to 3001 (3000 occupied by Gitea on dev machine). - Drop pino-pretty transport from API to avoid runtime require of an unbundled dep. - Cast build_logs.level (varchar) to BuildEvent's literal union in WS replay path. - Remove unused reqBase helper in oauth.ts.
47 lines
1.4 KiB
Plaintext
47 lines
1.4 KiB
Plaintext
# ---- Core ----
|
|
NODE_ENV=development
|
|
|
|
# ---- Database ----
|
|
DATABASE_URL=postgresql://bmm:bmm@localhost:5440/bmm
|
|
REDIS_URL=redis://localhost:6390
|
|
|
|
# ---- Auth (Better-Auth) ----
|
|
BETTER_AUTH_SECRET=replace-me-with-32-bytes-of-random-hex-1234567890abcdef
|
|
BETTER_AUTH_URL=http://localhost:3001
|
|
NEXT_PUBLIC_APP_URL=http://localhost:3001
|
|
NEXT_PUBLIC_API_URL=http://localhost:4000
|
|
|
|
# ---- GitHub OAuth (optional in dev) ----
|
|
GITHUB_OAUTH_ID=
|
|
GITHUB_OAUTH_SECRET=
|
|
|
|
# ---- Anthropic ----
|
|
ANTHROPIC_API_KEY=
|
|
|
|
# ---- Crypto ----
|
|
# 32-byte hex for AES-256-GCM; generate with: openssl rand -hex 32
|
|
SECRETS_ENCRYPTION_KEY=0000000000000000000000000000000000000000000000000000000000000000
|
|
|
|
# ---- OAuth signing (RS256 JWKS) ----
|
|
# Path to PEM keypair; auto-generated on api boot if missing
|
|
OAUTH_KEY_DIR=./keys
|
|
|
|
# ---- Runner / Generator ----
|
|
# Where MCP runtime containers bind (host machine reachable from API)
|
|
RUNNER_HOST=localhost
|
|
# Range of host ports used for generated MCP containers
|
|
RUNNER_PORT_RANGE_START=4100
|
|
RUNNER_PORT_RANGE_END=4999
|
|
# Public URL template — $SLUG and $PORT are interpolated
|
|
RUNNER_PUBLIC_URL_TEMPLATE=http://localhost:$PORT
|
|
# Control plane URL reachable from runner containers
|
|
CONTROL_PLANE_URL=http://host.docker.internal:4000
|
|
|
|
# ---- Stripe (Sprint 4) ----
|
|
STRIPE_SECRET_KEY=
|
|
STRIPE_WEBHOOK_SECRET=
|
|
|
|
# ---- Observability (optional) ----
|
|
SENTRY_DSN=
|
|
OTEL_EXPORTER_OTLP_ENDPOINT=
|