Skip to content

KnearMe MCP Worker Environment Variables

Required runtime variables:

  • PORTFOLIO_API_URL
  • PUBLIC_SITE_URL
  • OAUTH_RESOURCE
  • OAUTH_ISSUER
  • OAUTH_RESOURCE_METADATA_URL
  • MCP_EXECUTION_MODE (portfolio_api today)
  • ENFORCE_ENTITLEMENTS

Optional:

  • ENTITLEMENTS_CHECK_URL

Set the JWT verification key:

Terminal window
pnpm -C apps/knearme-mcp-worker exec wrangler secret put JWT_PUBLIC_KEY

Use the ES256 public key matching the OAuth issuer.

wrangler.toml defines env.staging and env.production with domain-specific OAuth and API URLs.