Standalone chat API microservice for the cBioPortal AI assistant.
cp .env.example .env
# Edit .env with your AWS credentials (AWS_PROFILE or explicit keys)
npm installnpm run dev # Start with hot reload (port 3001)
npm run build # Compile TypeScript
npm start # Run production build
npm test # Run testsEdit config.yaml for shared settings. Create config.local.yaml (gitignored) for local overrides.
| Method | Path | Description |
|---|---|---|
| POST | /chat |
Streaming chat (AI SDK UI Message Stream Protocol) |
| GET | /health |
Health check |
# Local development
docker compose up
# Build and push multi-platform image
docker buildx build --push --platform 'linux/amd64,linux/arm64' -t cbioportal/cbioportal-dev:assistant-api-latest -f Dockerfile .| Variable | Required | Description |
|---|---|---|
AWS_PROFILE |
One of these | AWS profile name |
AWS_ACCESS_KEY_ID + AWS_SECRET_ACCESS_KEY |
One of these | Explicit AWS credentials |
AWS_SESSION_TOKEN |
No | For temporary credentials |
MCP_SERVER_AUTH_TOKEN |
No | Bearer token for MCP server |