{"name":"@mcp-b/webmcp-polyfill","version":"6.1.0","keywords":["browser","model-context","polyfill","webmcp"],"author":{"name":"Alex Nahas"},"license":"MIT","_id":"@mcp-b/webmcp-polyfill@6.1.0","maintainers":[{"name":"osigvelo","email":"omar@sigvelo.com"},{"name":"miguelspizza","email":"alexmnahas@gmail.com"}],"homepage":"https://docs.mcp-b.ai/packages/webmcp-polyfill/reference","bugs":{"url":"https://github.com/WebMCP-org/npm-packages/issues"},"dist":{"shasum":"af6a7dbda3473f6f53445db8f878753f8c3d90bd","tarball":"http://registry-npm.ywwl.com/@mcp-b/webmcp-polyfill/download/@mcp-b/webmcp-polyfill-6.1.0.tgz","fileCount":8,"integrity":"sha512-sKGIXmFP6F2hNM4vQLQThXb4vpnK3jKLcj1uUeyT9m0/Pf8xdoITKtiEqWaT5dd/SXj2ESfrnop+RWTZ0bNY1w==","signatures":[{"sig":"MEYCIQCSNVLG8l5ZHM7qsxFv76N2q7WSMAIhl8uBecRAtQv+aAIhAInSGODOWQCi+BloqNMW1PGFCRPwLg4jJNakIql9b74O","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQDeIpaJTkajdZ98Ew/OOlO570e3nzleQloNrW73AGQv/gIgFAGrXuIKeIk76cE0TgOqXV2OfXFiyJHamPvRKwtg1K4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@mcp-b%2fwebmcp-polyfill@6.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":115471,"size":31710,"noattachment":false,"key":"/@mcp-b/webmcp-polyfill/-/@mcp-b/webmcp-polyfill-6.1.0.tgz"},"main":"./dist/index.js","type":"module","_from":"file:mcp-b-webmcp-polyfill-6.1.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","browser":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"./iife":{"script":"./dist/index.iife.js","default":"./dist/index.iife.js"}},"scripts":{"lint":"vp lint --fix","test":"vp test run","build":"vp pack","check":"vp check --fix","clean":"rm -rf dist","format":"vp fmt --write","typecheck":"tsc --noEmit","test:smoke":"vp test run src/index.test.ts --browser.headless","publish:dry":"pnpm publish --access public --dry-run","publish:npm":"pnpm publish --access public","test:coverage":"vp test run --coverage"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"391b9d88-4a5e-467b-9c12-67878fad415e"}},"_resolved":"/tmp/85ef9b03ef0ce0fdccb504173a092bdf/mcp-b-webmcp-polyfill-6.1.0.tgz","_integrity":"sha512-sKGIXmFP6F2hNM4vQLQThXb4vpnK3jKLcj1uUeyT9m0/Pf8xdoITKtiEqWaT5dd/SXj2ESfrnop+RWTZ0bNY1w==","repository":{"url":"git+https://github.com/WebMCP-org/npm-packages.git","type":"git","directory":"packages/webmcp-polyfill"},"_npmVersion":"11.14.1","description":"Deprecated: wraps @w3c/webmcp-polyfill and adds temporary declarative tools; use @w3c/webmcp-polyfill directly","directories":{},"sideEffects":["./dist/index.iife.js"],"_nodeVersion":"24.22.2","dependencies":{"webmcp-types":"0.1.10","@w3c/webmcp-polyfill":"0.1.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"npm:@voidzero-dev/vite-plus-test@0.1.24","vite-plus":"0.1.24","playwright":"^1.62.1","typescript":"^5.8.3","@vitest/coverage-v8":"4.1.8"},"_npmOperationalInternal":{"tmp":"tmp/webmcp-polyfill_6.1.0_1794281935698_0.972440085496153","host":"s3://npm-registry-packages-npm-production"},"readme":"# @mcp-b/webmcp-polyfill\n\n**Deprecated.** Use [`@w3c/webmcp-polyfill`](https://www.npmjs.com/package/@w3c/webmcp-polyfill)\nfor `document.modelContext`.\n\n```bash\npnpm add @w3c/webmcp-polyfill\n```\n\n```ts\nimport { installWebMCP } from '@w3c/webmcp-polyfill';\n\ninstallWebMCP();\n```\n\nThis package is now a thin wrapper over `@w3c/webmcp-polyfill`. Its\n`installWebMCP()` installs the upstream polyfill and then adds declarative tools:\nforms with `toolname` and `tooldescription` become tools. Keep it only for\ndeclarative tools, until the upstream polyfill ships them. For transports,\nprompts, resources, or MCP `outputSchema` support, use\n[`@mcp-b/global`](../global/README.md), which includes this layer.\n\n## License\n\nMIT. The IIFE bundle (`dist/index.iife.js`) includes `@w3c/webmcp-polyfill`,\ndistributed under the Apache License 2.0 in `LICENSE.webmcp-polyfill`.\n","publish_time":1794281935799,"_cnpm_publish_time":1794281935799,"dist-tags":{"beta":"6.0.0-beta.20261001010549","canary":"0.1.0-canary.20260214192802","latest":"6.2.0"}}