KnearMe MCP Worker Environment Variables
Runtime vars (wrangler.toml)
Section titled “Runtime vars (wrangler.toml)”Required runtime variables:
PORTFOLIO_API_URLPUBLIC_SITE_URLOAUTH_RESOURCEOAUTH_ISSUEROAUTH_RESOURCE_METADATA_URLMCP_EXECUTION_MODE(portfolio_apitoday)ENFORCE_ENTITLEMENTS
Optional:
ENTITLEMENTS_CHECK_URL
Secret
Section titled “Secret”Set the JWT verification key:
pnpm -C apps/knearme-mcp-worker exec wrangler secret put JWT_PUBLIC_KEYUse the ES256 public key matching the OAuth issuer.
Environment separation
Section titled “Environment separation”wrangler.toml defines env.staging and env.production with domain-specific OAuth and API URLs.