Quickstart (5 minutes)
Prereqs. Node ≥ 20. Claude Code installed.
-
Install the Claude Code plugin. It bundles the MCP gateway and auto-registers it as an MCP server.
/plugin marketplace add BrainBlend-AI/tesseron/plugin install tesseron@tesseronRestart Claude Code after installation. The gateway now runs whenever the plugin is enabled; no separate process to manage.
-
Add the SDK to your app.
Terminal window pnpm add @tesseron/web zodTerminal window pnpm add @tesseron/react zodTerminal window pnpm add @tesseron/server zod -
Declare an app and one action.
src/main.ts import { tesseron } from '@tesseron/web';import { z } from 'zod';tesseron.app({ id: 'notes', name: 'My Notes App' });tesseron.action('createNote').describe('Create a new note with a title and body').input(z.object({title: z.string().min(1),body: z.string().default(''),})).handler(({ title, body }) => {const note = { id: crypto.randomUUID(), title, body, createdAt: Date.now() };store.add(note); // whatever "add" means in your appreturn note;});await tesseron.connect();tesseron.connect()opens the WebSocket and resolves once the gateway returns awelcomewith aclaimCode. -
Claim the session from Claude. Open your app - the gateway prints a 6-character claim code to its stderr (and you can surface it in your UI too). Tell Claude:
"Claim Tesseron session AB3X-7K"
Claude calls the built-in
tesseron__claim_sessiontool, the gateway marks the session claimed, and anotifications/tools/list_changedevent fires. -
Call your action. The tool list now contains
notes__createNote. Ask Claude:"Create a note titled 'Groceries' with body 'eggs, milk, bread'."
The handler runs inside your tab. The new note appears in your UI, reactively. Claude sees the returned object as the tool result.
Next steps
Section titled “Next steps”- Add progress + cancellation - for actions that take more than a beat.
- Expose resources - let Claude read your UI state (current route, selected item, filter settings).
- Use sampling - let your handler ask the agent's LLM mid-execution.
- Pick your framework adapter - React, Svelte, Vue, Express patterns.