@mcp-b/webmcp-types
Strict TypeScript type definitions for the WebMCP core API (navigator.modelContext)
Last updated 7 months ago by miguelspizza .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @mcp-b/webmcp-types 
SYNC missed versions from official npm registry.

@mcp-b/webmcp-types

This package is a compatibility alias for the upstream webmcp-types package. It forwards upstream type exports and browser declarations directly.

This package will eventually be removed. Please use webmcp-types directly. There is no removal date yet.

Migrate to upstream

pnpm remove @mcp-b/webmcp-types
pnpm add -D webmcp-types@0.1.9

Change the import to the upstream package:

import type { WebMCP } from 'webmcp-types';

const context: WebMCP.ModelContext | undefined = document.modelContext;

Also replace @mcp-b/webmcp-types with webmcp-types in TypeScript types configuration and triple-slash references, if used. Published libraries whose declarations reference these types should declare webmcp-types as a production dependency.

Compatibility

The alias exports the same WebMCP namespace as upstream. Existing consumers can use it while migrating:

import type { WebMCP } from '@mcp-b/webmcp-types';

The previous package's top-level type exports are not reproduced. Use upstream types such as WebMCP.ModelContext and WebMCP.ModelContextTool. MCP-B extension types, including ToolDescriptor and ModelContextWithExtensions, now live in @mcp-b/webmcp-ts-sdk.

See the upstream README for the API and schema inference documentation.

License

MIT.

Current Tags

  • 6.0.0-beta.20261001010549                                ...           beta (2 months ago)
  • 0.1.0-canary.20260214192802                                ...           canary (9 months ago)
  • 6.2.0                                ...           latest (18 days ago)

48 Versions

  • 6.2.0                                ...           18 days ago
  • 6.1.0                                ...           18 days ago
  • 6.0.3                                ...           a month ago
  • 6.0.2                                ...           a month ago
  • 6.0.1                                ...           2 months ago
  • 6.0.0                                ...           2 months ago
  • 6.0.0-beta.20261001010549                                ...           2 months ago
  • 5.1.0                                ...           3 months ago
  • 5.0.3                                ...           3 months ago
  • 5.0.1                                ...           3 months ago
  • 5.0.0                                ...           3 months ago
  • 4.1.0-beta.20260702224704                                ...           5 months ago
  • 4.0.0                                ...           5 months ago
  • 4.0.0-beta.20260702180822                                ...           5 months ago
  • 4.0.0-beta.20260702175639                                ...           5 months ago
  • 4.0.0-beta.20260702174111                                ...           5 months ago
  • 4.0.0-beta.20260702173007                                ...           5 months ago
  • 3.0.0-beta.20260702171253                                ...           5 months ago
  • 3.0.0                                ...           6 months ago
  • 3.0.0-beta.20260529000441                                ...           6 months ago
  • 2.3.1-beta.20260528050333                                ...           6 months ago
  • 2.3.2                                ...           7 months ago
  • 2.3.1                                ...           7 months ago
  • 2.3.0                                ...           7 months ago
  • 0.0.0-beta-20260319163307                                ...           8 months ago
  • 0.0.0-beta-20260311230356                                ...           9 months ago
  • 0.0.0-beta-20260311225423                                ...           9 months ago
  • 0.0.0-beta-20260311225012                                ...           9 months ago
  • 2.2.0                                ...           9 months ago
  • 2.1.0                                ...           9 months ago
  • 2.0.13                                ...           9 months ago
  • 2.0.12                                ...           9 months ago
  • 2.0.11                                ...           9 months ago
  • 2.0.10                                ...           9 months ago
  • 2.0.9                                ...           9 months ago
  • 2.0.8                                ...           9 months ago
  • 2.0.7                                ...           9 months ago
  • 2.0.6                                ...           9 months ago
  • 2.0.5                                ...           9 months ago
  • 0.3.2                                ...           9 months ago
  • 0.3.1                                ...           9 months ago
  • 0.3.0                                ...           9 months ago
  • 0.0.0-beta-20260221154800                                ...           9 months ago
  • 0.2.1                                ...           9 months ago
  • 0.2.0                                ...           9 months ago
  • 0.0.0-beta-20260216200013                                ...           9 months ago
  • 0.1.0-canary.20260214192802                                ...           9 months ago
  • 0.1.0                                ...           9 months ago
Maintainers (1)
Downloads
Total 189
Today 0
This Week 92
This Month 189
Last Day 0
Last Week 44
Last Month 0
Dependencies (0)
None
Dev Dependencies (5)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE