Architecture Overview
Core Components
The Widget
<webmcp-agent> is a custom element that renders the chat UI inside your app:
- Runs in Shadow DOM for style isolation
- Sends the user’s JWT to Char for authentication
- Connects to the user’s Tool Hub
Tool Hub
The Tool Hub is a Cloudflare Durable Object scoped to each user. It:- Aggregates tools from all browser tabs with Char embedded
- Enforces policy on every tool invocation
- Exposes an MCP server for external clients (Claude Desktop, VS Code)
Tool Hub Deep Dive
Learn how the unified registry works
Session Inheritance
The agent inherits your existing authenticated session. When a tool makes an API call, it uses your cookies and permissions—no new OAuth flows required.Session Inheritance
Why no new authentication is needed
Identity + Allowed Domains
Char maps requests to your organization using the page origin and your Allowed Domains list. Once the org is resolved, Char validates the JWT against the configured identity provider (issuer + JWKS).Organization Skills
SKILL.md files guide agent behavior with domain-specific knowledge. Skills are loaded into the system prompt and expanded on demand.Cross-Application Workflows
With the Tool Hub, agents can orchestrate workflows across applications: This is cross-site RPC—previously impossible without building custom integrations between each application.Cross-App Tools
How tools work across applications
Deployment Tiers
Char offers progressive adoption:| Tier | Description | Capabilities |
|---|---|---|
| Tier 0 | Page-scoped | Widget + page tools only |
| Tier 1 | User-scoped Tool Hub | Cross-app tools, persistent threads, MCP access |
| Tier 2 | Enterprise governance | Policy controls, approval workflows, audit trails |
Deployment Tiers
Progressive adoption path
Security Model
Char’s security is architectural, not behavioral:- Context isolation — Agent only sees explicitly provided data
- Policy enforcement — All tool calls pass through the Hub
- Tool classification — read/write/exfil with different approval requirements
- Session scoping — Agent has exactly the user’s permissions
Context Isolation
Security model and prompt injection defense
The Development Loop
Chrome DevTools MCP creates a powerful feedback loop: the same AI that writes your WebMCP tools can also test them. The embedded agent uses the exact same tools that Claude tests during development.AI-Tested Tools
Why this matters for tool quality

