Skip to content

Experimental · Unofficial

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

Testing checklist

Use this checklist before shipping WebMCP to production.

Browser registration

  • [ ] Chrome with document.modelContext (origin trial 149+, or #enable-webmcp-testing) — tools register
  • [ ] DevTools → Application → WebMCP — manual tool execution works
  • [ ] Safari — no errors, no registration attempted
  • [ ] Firefox — no errors, no registration attempted

Integration

  • [ ] Vanilla HTML demo works without React/Next in bundle
  • [ ] CONTENTSTACK_WEBMCP_ENABLED=false — complete no-op
  • [ ] Proxy mode — no delivery token in client bundle (inspect built JS)
  • [ ] /server handler works standalone
  • [ ] /next adapter produces identical responses to /server

Demo flow

  • [ ] contentstack_search_entries returns results
  • [ ] contentstack_get_entry_by_url returns consistent data for a known URL
  • [ ] Search → get entry → navigate flow works end-to-end
  • [ ] Compare output with @contentstack/mcp CDA tools for same query

Security

  • [ ] Permissions-Policy: tools=(self) header set
  • [ ] navigate_to rejects external URLs
  • [ ] Search limit capped at maxLimit, and the tool's input schema advertises the same cap
  • [ ] CDA tools carry untrustedContentHint: true
  • [ ] Custom routes validate input

Package tests

Run the library test suite:

bash
npm test
npm run test:coverage
npm run verify

Local docs

bash
npm run docs:dev

Released under the MIT License.