FAQ
Is this an official Contentstack package?
No. @timbenniks/contentstack-webmcp is a personal, experimental project by Tim Benniks. It is not published, maintained, or supported by Contentstack.
Why not build this into the Delivery SDK?
WebMCP requires browser-native tool registration, JSON schemas, lifecycle management, and cleanup — a layer above HTTP request interception. Delivery SDK plugins shape HTTP traffic; WebMCP shapes browser capabilities.
Will this replace @contentstack/mcp?
No. Different use case: in-browser agents on public sites vs external MCP clients. See comparison.
Is direct mode safe for production?
Not as the default. Proxy mode keeps delivery tokens server-side and centralizes controls. See Execution modes.
Is React or Next.js required?
No. The default path is framework-free. React and Next.js are optional adapters.
Does proxy mode require a stack on the client?
No. Pass { mode: 'proxy', contentTypes } only. Credentials belong in the server handler config. See Credentials.
How do I run custom Contentstack queries?
Three paths:
createCdaClient()— SDK access in custom toolscustomRoutes— custom server proxy endpointscontentTypes[].serialize— transform built-in tool output
See Custom CDA queries.
How do I disable WebMCP?
Set CONTENTSTACK_WEBMCP_ENABLED=false. See Environment variables.
Why aren't tools showing in DevTools?
- Confirm
document.modelContextexists — join the Chrome origin trial (149+) or enable#enable-webmcp-testing. This package does not use the deprecatednavigator.modelContext. - Check
isWebMcpSupported()returns true - Verify
CONTENTSTACK_WEBMCP_ENABLEDis not false - Look for registration errors in the dev console (development builds only)
Can I use this with draft/preview content?
Not in v0.1. Preview-token support is planned as future gated work.
Where is the reference implementation?
Live on developers.contentstack.com.