Skip to main content
Glama

Workboard MCP

Containerized MCP server for Workboard, built with SST, ECS Fargate, Hono, Better Auth, Postgres, Drizzle, and generated npx api Workboard clients.

What Is Included

  • SST aws.Service Hono API running on ECS Fargate behind an ALB, fronted by an SST aws.Router.

  • Router WAF protection with AWS managed rules, IP rate limiting, and blocked-request logs.

  • Cloudflare DNS for workboard-mcp.praxismedicines.dev in production and <stage>.workboard-mcp.praxismedicines.dev for non-production stages.

  • Aurora PostgreSQL Serverless v2 with min: 0 ACU and local Postgres dev settings.

  • Drizzle ORM and Drizzle Kit migrations for Better Auth tables and application tables, with schemas split under packages/core/src/db/schema/.

  • A deploy-time SST migrator Lambda that runs checked-in Drizzle migrations during non-dev deploys.

  • Better Auth OAuth Provider for MCP OAuth 2.1, with internal Entra login through the generic OAuth plugin.

  • A post-login Workboard token step that verifies the personal Workboard token and stores it encrypted with AES-256-GCM.

  • Generated Workboard v1 and v2 SDKs under .api/apis/*, plus generated MCP tool metadata for all 63 documented operations.

Related MCP server: Monday.com MCP Server

Local Setup

npm install
cp .env.example .env
npm run generate:workboard

Fill in .env with Entra credentials and strong local secrets.

Start Postgres:

npm run db:local

In another terminal, apply migrations and start Hono:

npm run migrate
npm run dev

The local API listens on http://localhost:3000. sst dev starts the Hono service locally through npm run dev and skips the deployed HTTPS Router, WAF, and custom domain.

Useful Commands

npm run generate:workboard  # refresh Workboard specs, npx api SDKs, and MCP tool metadata
npm run auth:generate       # refresh the generated Better Auth Drizzle schema
npm run db:generate         # refresh auth schema, then create a Drizzle migration
npm run db:check            # verify Drizzle migration snapshots and SQL
npm run migrate             # apply Drizzle migrations for auth and app tables
npm run typecheck
npm test

Deploy Prerequisites

Set SST secrets:

npx sst secret set BetterAuthSecret "..."
npx sst secret set WorkboardTokenEncryptionKey "..."
npx sst secret set EntraClientId "..."
npx sst secret set EntraClientSecret "..."
npx sst secret set EntraTenantId "..."

Append --stage <stage> to those commands when preparing a non-default SST stage.

Set Cloudflare provider environment variables before deploy:

export CLOUDFLARE_API_TOKEN=...
export CLOUDFLARE_DEFAULT_ACCOUNT_ID=...

Deploy:

npx sst deploy

Router URLs are stage-aware. production and prod use https://workboard-mcp.praxismedicines.dev; every other SST stage uses https://<stage>.workboard-mcp.praxismedicines.dev after the stage name is normalized for DNS. Deployed stages also create an HTTPS ALB origin at origin.<public-domain> for CloudFront to reach the ECS service. The ECS service listens on port 3000, and the load balancer health-checks /health.

Register an Entra redirect URI for each stage host: <public-base-url>/api/auth/oauth2/callback/microsoft-entra-id.

Non-dev deploys run the WorkboardDatabaseMigrator Lambda before the ECS service update. It copies the checked-in drizzle/ folder into the function package and applies unapplied migrations with Drizzle's node-postgres migrator. Drizzle migration metadata is stored in drizzle.__drizzle_migrations; the application and auth tables are created by the SQL migrations in the default PostgreSQL schema.

OAuth Flow

MCP clients discover /.well-known/oauth-protected-resource, then use Better Auth’s OAuth Provider endpoints under /api/auth/oauth2/*.

The user flow is:

  1. MCP OAuth redirects to /oauth/login.

  2. /oauth/login starts generic OAuth with Microsoft Entra (microsoft-entra-id).

  3. After Entra, Better Auth resumes /api/auth/oauth2/authorize.

  4. If no Workboard token is stored, Better Auth redirects to /oauth/workboard-token.

  5. The token is verified with Workboard GET /user, encrypted, and stored in Postgres.

  6. Better Auth continues to /oauth/consent, then issues the OAuth code/token for the MCP client.

References

A
license - permissive license
-
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/felixipraxis/workboard-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server