{"name":"@mcp-b/webmcp-types","version":"5.0.1","keywords":["document-modelcontext","model-context","navigator-modelcontext","types","typescript","web-standard","webmcp"],"author":{"name":"Alex Nahas"},"license":"MIT","_id":"@mcp-b/webmcp-types@5.0.1","maintainers":[{"name":"osigvelo","email":"omar@sigvelo.com"},{"name":"miguelspizza","email":"alexmnahas@gmail.com"}],"homepage":"https://docs.mcp-b.ai/packages/webmcp-types/reference","bugs":{"url":"https://github.com/WebMCP-org/npm-packages/issues"},"dist":{"shasum":"e217c2e243796e3e2ea69a7a345d0aa8b7849392","tarball":"http://registry-npm.ywwl.com/@mcp-b/webmcp-types/download/@mcp-b/webmcp-types-5.0.1.tgz","fileCount":18,"integrity":"sha512-UN7GsTrudXoMWxTL6n6451C19r5nsBzU4WLovRC6YVFnOJk3N5qYwmQySAISEi/0fcWkRDcT3OqAee7/jrl1iA==","signatures":[{"sig":"MEYCIQDGs25O1p48a/2OBBsHbAzqn+uvRXQpU6vYnOjgJOZkKgIhAM4y6F5LUeTgtaiAIw+F5+e0KB1+DLGH6f6qgBm/KN5K","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@mcp-b%2fwebmcp-types@5.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":50500,"size":11070,"noattachment":false,"key":"/@mcp-b/webmcp-types/-/@mcp-b/webmcp-types-5.0.1.tgz"},"type":"module","_from":"file:mcp-b-webmcp-types-5.0.1.tgz","types":"./dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts"}},"scripts":{"lint":"vp lint --fix","test":"vp test run","build":"pnpm run clean && tsc -p tsconfig.build.json","check":"vp check --fix","clean":"rm -rf dist","format":"vp fmt --write","typecheck":"tsc --noEmit && tsc -p tsconfig.strict-null-checks-false.json && vp test run --typecheck --silent","publish:dry":"pnpm publish --access public --dry-run","publish:npm":"pnpm publish --access public"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f71f7ba1-69ee-4993-9b47-a2de94bc19e8"}},"_resolved":"/tmp/3a9e9166147534b7547d7ed24ac6b198/mcp-b-webmcp-types-5.0.1.tgz","_integrity":"sha512-UN7GsTrudXoMWxTL6n6451C19r5nsBzU4WLovRC6YVFnOJk3N5qYwmQySAISEi/0fcWkRDcT3OqAee7/jrl1iA==","repository":{"url":"git+https://github.com/WebMCP-org/npm-packages.git","type":"git","directory":"packages/webmcp-types"},"_npmVersion":"11.14.1","description":"Strict TypeScript type definitions for the WebMCP core API (document.modelContext)","directories":{},"sideEffects":false,"_nodeVersion":"24.19.0","dependencies":{"@modelcontextprotocol/server":"2.0.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"npm:@voidzero-dev/vite-plus-test@latest","vite-plus":"^0.1.22","typescript":"^5.8.3"},"_npmOperationalInternal":{"tmp":"tmp/webmcp-types_5.0.1_1787526316120_0.7114537024559342","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":1787526316272,"_cnpm_publish_time":1787526316272,"dist-tags":{"beta":"6.0.0-beta.20261001010549","canary":"0.1.0-canary.20260214192802","latest":"6.2.0"}}