Environment variables
| Variable | Default | Description |
|---|---|---|
CONTENTSTACK_WEBMCP_ENABLED | true | Kill switch — set false for complete no-op |
NEXT_PUBLIC_CONTENTSTACK_WEBMCP_ENABLED | — | Next.js client-side override |
VITE_CONTENTSTACK_WEBMCP_ENABLED | — | Vite client-side override |
Accepted values
| Value | Effect |
|---|---|
true, 1, yes, on | Enabled |
false, 0, no, off | Disabled — no tool registration attempted |
Empty or unset defaults to enabled.
Contentstack credentials
This package does not read Contentstack API credentials. Those belong in your Delivery SDK stack config on the server:
bash
CONTENTSTACK_API_KEY=...
CONTENTSTACK_DELIVERY_TOKEN=...
CONTENTSTACK_ENVIRONMENT=...See Credentials — never use NEXT_PUBLIC_ or VITE_ prefixes for delivery tokens in production proxy mode.
Example: disable in staging
bash
# .env.staging
CONTENTSTACK_WEBMCP_ENABLED=falseExample: Next.js
bash
# .env.local — server only
CONTENTSTACK_API_KEY=blt...
CONTENTSTACK_DELIVERY_TOKEN=cs...
CONTENTSTACK_ENVIRONMENT=production
# Optional client kill switch
NEXT_PUBLIC_CONTENTSTACK_WEBMCP_ENABLED=true