Skip to content

Experimental · Unofficial

Built by Tim Benniks. This is not an official Contentstack product and is not supported by Contentstack.

Environment variables

VariableDefaultDescription
CONTENTSTACK_WEBMCP_ENABLEDtrueKill switch — set false for complete no-op
NEXT_PUBLIC_CONTENTSTACK_WEBMCP_ENABLEDNext.js client-side override
VITE_CONTENTSTACK_WEBMCP_ENABLEDVite client-side override

Accepted values

ValueEffect
true, 1, yes, onEnabled
false, 0, no, offDisabled — 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=false

Example: 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

Released under the MIT License.