$ npm install @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.
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.
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.
MIT.
© 2010 - cnpmjs.org x YWFE | Home | YWFE