$ npm install @mcp-b/webmcp-polyfill
Deprecated. Use @w3c/webmcp-polyfill
for document.modelContext.
pnpm add @w3c/webmcp-polyfill
import { installWebMCP } from '@w3c/webmcp-polyfill';
installWebMCP();
This package is now a thin wrapper over @w3c/webmcp-polyfill. Its
installWebMCP() installs the upstream polyfill and then adds declarative tools:
forms with toolname and tooldescription become tools. Keep it only for
declarative tools, until the upstream polyfill ships them. For transports,
prompts, resources, or MCP outputSchema support, use
@mcp-b/global, which includes this layer.
MIT. The IIFE bundle (dist/index.iife.js) includes @w3c/webmcp-polyfill,
distributed under the Apache License 2.0 in LICENSE.webmcp-polyfill.
© 2010 - cnpmjs.org x YWFE | Home | YWFE