{"name":"@mcp-b/webmcp-types","version":"2.0.7","keywords":["webmcp","model-context","navigator-modelcontext","types","typescript","web-standard"],"author":{"name":"Alex Nahas"},"license":"MIT","_id":"@mcp-b/webmcp-types@2.0.7","maintainers":[{"name":"miguelspizza","email":"alexmnahas@gmail.com"}],"homepage":"https://docs.mcp-b.ai/packages/webmcp-types","bugs":{"url":"https://github.com/WebMCP-org/npm-packages/issues"},"dist":{"shasum":"1bbaa9d386fddd6cba7dd75b84b820f8c8eda0b8","tarball":"http://registry-npm.ywwl.com/@mcp-b/webmcp-types/download/@mcp-b/webmcp-types-2.0.7.tgz","fileCount":20,"integrity":"sha512-6ILuJM0F6YxIcyCDsMHvE6byez8eAr9yyfWvxFqzwVrBGbQoadBoWLBThJ/6lWlXMxxnfiRROzzJsB2bcVUcDg==","signatures":[{"sig":"MEUCIQDaswUHzcNFOaEILES4MZw70JNMnjFa2i87PYUUs0xbhAIgULE+pbJU59RHgfa3SXJkPApYbvh+OjIHt9TxIh+wi8A=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":96490,"size":18536,"noattachment":false,"key":"/@mcp-b/webmcp-types/-/@mcp-b/webmcp-types-2.0.7.tgz"},"main":"","type":"module","_from":"file:mcp-b-webmcp-types-2.0.7.tgz","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts"}},"scripts":{"lint":"biome lint --write .","test":"vitest run && pnpm run test:conformance","build":"tsc -p tsconfig.build.json","check":"biome check --write .","clean":"rm -rf dist .turbo","format":"biome format --write .","typecheck":"tsc --noEmit && vitest run --typecheck --silent","publish:dry":"pnpm publish --access public --dry-run","publish:npm":"pnpm publish --access public","test:browser":"vitest run --config vitest.browser.config.ts --browser.headless","test:browser:ui":"vitest --config vitest.browser.config.ts --browser","test:conformance":"vitest run --config vitest.conformance.config.ts"},"_npmUser":{"name":"miguelspizza","email":"alexmnahas@gmail.com"},"_resolved":"/private/var/folders/5y/ysfq1x7s50lc168yy1gvvf4m0000gn/T/6b3c36158c83956dc4e5d0ecf9392659/mcp-b-webmcp-types-2.0.7.tgz","_integrity":"sha512-6ILuJM0F6YxIcyCDsMHvE6byez8eAr9yyfWvxFqzwVrBGbQoadBoWLBThJ/6lWlXMxxnfiRROzzJsB2bcVUcDg==","repository":{"url":"git+https://github.com/WebMCP-org/npm-packages.git","type":"git","directory":"packages/webmcp-types"},"_npmVersion":"11.4.2","description":"Strict TypeScript type definitions for the WebMCP core API (navigator.modelContext)","directories":{},"sideEffects":false,"_nodeVersion":"24.3.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.0.18","playwright":"^1.58.0","typescript":"^5.8.3","@vitest/browser":"^4.0.18","@vitest/coverage-v8":"^4.0.18","@vitest/browser-playwright":"^4.0.18"},"_npmOperationalInternal":{"tmp":"tmp/webmcp-types_2.0.7_1772306646377_0.6125939173540287","host":"s3://npm-registry-packages-npm-production"},"readme":"# @mcp-b/webmcp-types\n\nThis package is a compatibility alias for the upstream\n[`webmcp-types`](https://github.com/webmachinelearning/webmcp-types) package.\nIt forwards upstream type exports and browser declarations directly.\n\n**This package will eventually be removed. Please use `webmcp-types` directly.**\nThere is no removal date yet.\n\n## Migrate to upstream\n\n```bash\npnpm remove @mcp-b/webmcp-types\npnpm add -D webmcp-types@0.1.9\n```\n\nChange the import to the upstream package:\n\n```ts\nimport type { WebMCP } from 'webmcp-types';\n\nconst context: WebMCP.ModelContext | undefined = document.modelContext;\n```\n\nAlso replace `@mcp-b/webmcp-types` with `webmcp-types` in TypeScript `types`\nconfiguration and triple-slash references, if used. Published libraries whose\ndeclarations reference these types should declare `webmcp-types` as a production\ndependency.\n\n## Compatibility\n\nThe alias exports the same `WebMCP` namespace as upstream. Existing consumers can\nuse it while migrating:\n\n```ts\nimport type { WebMCP } from '@mcp-b/webmcp-types';\n```\n\nThe previous package's top-level type exports are not reproduced. Use upstream\ntypes such as `WebMCP.ModelContext` and `WebMCP.ModelContextTool`. MCP-B extension\ntypes, including `ToolDescriptor` and `ModelContextWithExtensions`, now live in\n[`@mcp-b/webmcp-ts-sdk`](../webmcp-ts-sdk/README.md).\n\nSee the [upstream README](https://github.com/webmachinelearning/webmcp-types#readme)\nfor the API and schema inference documentation.\n\n## License\n\nMIT.\n","publish_time":1772306646523,"_cnpm_publish_time":1772306646523,"dist-tags":{"beta":"6.0.0-beta.20261001010549","canary":"0.1.0-canary.20260214192802","latest":"6.2.0"}}