Skip to main content
New FeaturesBeta Release
v1.1.0-beta

Major Features

Prompts & Resources API

Full Web Model Context API support now extends beyond tools to include prompts and resources:New React Hooks:
  • useWebMCPPrompt() - Register prompts that AI assistants can invoke
  • useWebMCPResource() - Expose resources with URI template support

MCP Iframe Custom Element

New @mcp-b/mcp-iframe package introduces the <mcp-iframe> web component:
  • Automatic tool namespacing - Iframe tools are automatically prefixed to avoid collisions
  • Context propagation - Exposes iframe tools, prompts, and resources to the parent context
  • Cross-frame communication - Seamless MCP communication between parent and child frames
Tools registered inside the iframe automatically become available to the parent page’s MCP context with namespaced names.

Sampling & Elicitation Support

Corrected architecture for server-to-client requests:
  • createMessage() - Request the AI to generate a response (sampling)
  • elicitInput() - Request user input through the AI interface

usewebmcp Package Alias

Published usewebmcp as a simpler alias for @mcp-b/react-webmcp:

Bug Fixes

  • Fixed race condition where tools registered by hooks were missed before notification handlers initialized
  • Added re-fetching mechanism to catch tools registered during setup gaps
  • Consolidated type imports for consistency across packages

Infrastructure

  • Updated Biome configuration with overrides for generated files
  • Changed react-webmcp test port from 5174 to 8888 to prevent conflicts
  • Comprehensive E2E test coverage for prompts, resources, and iframe routing
Breaking ChangesMajor Release
v1.0.0
Breaking Changes: Version 1.0.0 introduces breaking changes. Please review the migration guide below before upgrading.

Major Changes

Package Renaming

Several packages have been renamed for clarity and consistency:

API Changes

@mcp-b/react-webmcp
  • Removed useMcpServer() hook - use useWebMCP() instead
  • New useWebMCPContext() hook for read-only context
  • Automatic registration/cleanup (no manual useEffect needed)
  • Built-in Zod support for type-safe schemas
Before (v0.x):
After (v1.0):
Version 1.0.0 aligns with the W3C Web Model Context API proposal:
  • registerTool() is now the recommended approach (returns unregister())
  • provideContext() only for base tools (replaces all base tools)
  • Two-bucket tool management system introduced

New Features

@mcp-b/global

  • ✨ Two-bucket tool management (base vs dynamic tools)
  • ✨ IIFE build for CDN usage (no build step required)
  • ✨ Event-based tool call handling
  • ✨ Improved TypeScript types

@mcp-b/react-webmcp

  • useWebMCP() hook with automatic lifecycle management
  • useWebMCPContext() for read-only tools
  • ✨ Execution state tracking (isExecuting, lastResult, error)
  • McpClientProvider and useMcpClient() for consuming tools

@mcp-b/transports

  • ✨ Enhanced origin validation
  • ✨ Keep-alive support for extension transports
  • ✨ Server discovery for tab clients
  • ✨ Cross-extension communication support

@mcp-b/extension-tools

  • ✨ 62+ Chrome Extension API wrappers
  • ✨ Comprehensive TypeScript definitions
  • ✨ Zod-based validation
  • ✨ Manifest V3 compatible

Migration Guide

1

Update package names

2

Update imports

3

Replace useMcpServer with useWebMCP

4

Update vanilla JS tool registration

5

Test your integration

  • Verify all tools register correctly
  • Test tool execution with MCP-B extension
  • Check that tools unregister on component unmount
  • Validate input schemas work as expected

Bug Fixes

  • Fixed tool name collision errors
  • Improved error messages for schema validation
  • Fixed memory leaks in React StrictMode
  • Corrected TypeScript definitions for transport options
  • Fixed race condition in extension port connections

Performance Improvements

  • Reduced bundle size by 30%
  • Optimized tool registration performance
  • Improved transport message handling
  • Better memory management in long-running sessions
Minor Releases
v0.9.x

Version 0.9.5

  • Added experimental React hooks package
  • Improved documentation
  • Bug fixes for transport disconnections

Version 0.9.0

  • Initial public release
  • Basic MCP support for web browsers
  • Tab transport implementation
  • Extension transport for Chrome extensions

Upcoming Features

Version 1.1.0 Stable (Planned - Q1 2026)

  • 🔄 Stable release of prompts & resources API
  • 🔄 Stable release of MCP iframe component
  • 🔄 Firefox extension support
  • 🔄 Enhanced developer tools

Version 1.2.0 (Planned - Q2 2026)

  • 🔄 Safari extension support
  • 🔄 Performance monitoring and analytics
  • 🔄 Tool versioning support
  • 🔄 Advanced caching strategies

Deprecation Notices

Deprecated in 1.0.0

The following will be removed in version 2.0.0 (estimated Q3 2025):
  • @mcp-b/mcp-react-hooks package (use @mcp-b/react-webmcp)
  • useMcpServer() hook (use useWebMCP())
  • Implicit tool registration patterns (use explicit registerTool())

Migration Timeline


Breaking Change Policy

WebMCP follows Semantic Versioning:
  • Major versions (X.0.0): Breaking changes, major new features
  • Minor versions (1.X.0): New features, backward compatible
  • Patch versions (1.0.X): Bug fixes, backward compatible

Deprecation Process

  1. Announce: Deprecated features announced in release notes
  2. Warn: Console warnings added in code
  3. Grace period: Minimum 6 months before removal
  4. Remove: Removed in next major version

Stay Updated

GitHub Releases

View detailed release notes

NPM Changelog

Browse version history

Discord Community

Discuss updates and ask questions

Migration Guides

Step-by-step upgrade instructions

Reporting Issues

Found a bug or regression? Please report it:
  1. Check existing issues
  2. Create a new issue with:
    • Version numbers
    • Steps to reproduce
    • Expected vs actual behavior
    • Browser and extension versions
For security vulnerabilities, please email security@mcp-b.ai instead of creating a public issue.