Install the Packages
The Char agent uses two packages: the web component and the global WebMCP API.
Install via npm
Run this command in the terminal:
npm install @mcp-b/char @mcp-b/globalThis installs:
@mcp-b/char— The<char-agent>custom element@mcp-b/global— Thenavigator.modelContext.registerToolAPI
What’s in each package?
| Package | Purpose |
|---|---|
@mcp-b/char | Web component + TypeScript types |
@mcp-b/global | Global navigator.modelContext API for tool registration |
Verify installation
Check your package.json includes both dependencies.
Click Solve if you need help.
Files
Preparing Environment
No preview to run nor steps to show