Tesseron 标志

Tesseron

社区
Eigenwise

Expose typed web-app actions to MCP-compatible AI agents over WebSocket. TypeScript SDK + matching MCP gateway.

发布者Eigenwise
代码仓库tesseron
语言TypeScript
复刻数
1
星标数
21
可用工具
0
传输类型stdio
分类
链接
  • 将工具接入 AI 工作流

    Tesseron 提供 MCP 功能,可供兼容的 AI 客户端和智能体使用。

  • 0 个可用工具

    浏览下方可调用的操作;如果服务器提供了名称和描述,也会一并显示。

  • 可直接复制的配置

    使用安装配置片段,在您首选的 MCP 客户端中配置此服务器。

  • 开源社区热度

    关联的代码仓库有 21 个星标和 1 个复刻。

Typed live-app actions for MCP-compatible AI agents, over WebSocket.

Built by Eigenwise


NEW: Join our community on Discord at discord.gg/J3W9b5AZJR — protocol questions, feedback, and SDK-contribution chat all welcome.

Tesseron is an accessibility layer for AI agents. You instrument your app once — the way you'd add ARIA to a web page — and any MCP-compatible agent can drive it through typed actions you define. Think of it as an API for agents, written by the people who built the app.

The premise: the agent doesn't need to click a button, it needs to do the thing the button does. Say an agent wants to add five items to a list. Through the UI that's click add, type, submit, click add again — five round-trips through a brittle, re-render-happy interface. With Tesseron it calls one action:

ts
addTodos(['buy milk', 'finish report', 'call mom', 'book flight', 'water plants'])

Your handler runs against your real state. No clicking, no scraping, no brittleness.

Live applications (browser tabs, Electron/Tauri desktop apps, Node daemons, CLIs) declare actions with a Zod-style builder; agents (Claude Code, Claude Desktop, Cursor, Copilot, Codex, Cline, ...) call them as MCP tools. Your real handler runs in your real process, against your real state. No browser automation, no scraping, no Playwright.

It's a protocol, not just a TypeScript library — and not just for the web. The JS/TS SDKs are the reference implementation and already cover the browser, Node, and desktop (Electron/Tauri). But the wire protocol is CC BY 4.0 and language-agnostic: anything that can open a WebSocket and speak JSON-RPC 2.0 can host actions, so a Python daemon, a Rust desktop app, or a .NET line-of-business tool can speak it too. Web is simply where the first SDKs landed — not the boundary of what Tesseron is.

WebMCP is a useful browser-native path for public sites that want an assistant to fill forms. The Tesseron and WebMCP section explains the difference, including Tauri and Python processes, cross-app flows, and agents like Claude Code.

Why Tesseron

  • Typed actions, not scraped DOMs. Declare with Zod or any Standard Schema validator; the handler is a plain function against your real state.
  • Framework-agnostic. Same API for vanilla TS, React, Svelte, Vue, and Node. Pick your stack.
  • MCP-native. Every action, resource, and capability maps to a standard MCP primitive. Users pick their agent.
  • Click-to-connect. Six-character claim code handshake. No API keys, no OAuth dance, no per-client configuration.
  • First-class capabilities. ctx.confirm for yes/no, ctx.elicit for schema-validated prompts, ctx.sample for agent LLM calls, ctx.progress for streaming updates, subscribable resources for live reads.
  • Cross-client delivery. First-class install paths for Claude Code, Codex, OpenCode, and Pi — each one a single command or short config snippet that wires the MCP gateway in. No bundled binary; the gateway is npx -y @tesseron/mcp@<version> on demand.

Install

Tesseron has first-class install paths for four agent clients. Pick the one you use:

Claude Code

text
/plugin marketplace add eigenwise/tesseron
/plugin install tesseron@tesseron

Installs the tesseron Claude Code plugin. The MCP gateway and docs server are launched on demand via npx.

Codex CLI

bash
codex plugin marketplace add eigenwise/tesseron

Codex consumes the same plugin manifest as Claude Code, so the gateway, docs server, and skills come along automatically.

Pi

Pi has no built-in MCP support, but the community-maintained pi-mcp-adapter is the canonical bridge. Install it once:

bash
pi install npm:pi-mcp-adapter

Then add Tesseron to .mcp.json in your project root (or ~/.config/mcp/mcp.json for a global install):

jsonc
{
  "mcpServers": {
    "tesseron": { "command": "npx", "args": ["-y", "@tesseron/mcp@2.10.4"] },
    "tesseron-docs": { "command": "npx", "args": ["-y", "@tesseron/docs-mcp@2.10.6"] }
  }
}

pi-mcp-adapter discovers and exposes the Tesseron tools to Pi automatically. Use "directTools": true per server entry to surface each Tesseron action as a top-level Pi tool instead of going through the mcp proxy.

To pick up the skill bundle as well, point Pi's settings skills array at a clone of plugin/skills/ — the same folder Claude Code / Codex use.

OpenCode

OpenCode reads MCP servers from opencode.json rather than a plugin manifest. Save this as .opencode/opencode.json in your project root (or ~/.config/opencode/opencode.json for global use):

jsonc
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "tesseron": { "type": "local", "command": ["npx", "-y", "@tesseron/mcp@2.10.4"], "enabled": true },
    "tesseron-docs": { "type": "local", "command": ["npx", "-y", "@tesseron/docs-mcp@2.10.6"], "enabled": true }
  }
}

To also pick up the skill bundle, point OpenCode's skills.paths at a clone of plugin/skills/ — see plugin/README.md for the snippet.

Other MCP clients

Claude Desktop, Cursor, VS Code Copilot, Cline, and any other MCP-compatible client work too — the gateway is plain stdio MCP. See the one-time setup in examples/README.md.

Then in your app

Drop @tesseron/web, @tesseron/server, @tesseron/react, @tesseron/svelte, or @tesseron/vue into your project, declare actions, and let the agent drive your real UI:

ts
import { tesseron } from '@tesseron/web';
import { z } from 'zod';

tesseron.app({ id: 'todo_app', name: 'Todo App' });

tesseron
  .action('addTodo')
  .input(z.object({ text: z.string().min(1) }))
  .handler(({ text }) => {
    state.todos.push({ id: newId(), text, done: false });
    render();
    return { ok: true };
  });

await tesseron.connect();

See TypeScript examples/ for working apps in vanilla TS, React, Svelte, Vue, Express, and plain Node.

Packages

PackagePurpose
@tesseron/coreProtocol types, action builder. Zero runtime deps beyond Standard Schema.
@tesseron/webBrowser SDK.
@tesseron/serverNode SDK.
@tesseron/reactReact hooks adapter.
@tesseron/svelteSvelte 5 adapter.
@tesseron/vueVue 3 adapter.
@tesseron/viteVite plugin: dev-server bridge for browser tabs to dial the gateway over the same origin as your app.
@tesseron/mcpMCP gateway server (tesseron-mcp CLI; launched by each client's install path via npx).
@tesseron/docs-mcpMCP server that serves the Tesseron docs (search_docs, read_doc, list_docs) for chapter-and-verse spec lookups inside agent sessions.

The Claude Code / Codex plugin lives at plugin/, exposed via the marketplace manifests at .claude-plugin/marketplace.json (Claude) and .agents/plugins/marketplace.json (Codex).

Client capability support

Tesseron's action context gives handlers four capabilities beyond plain tool invocation, each backed by an MCP primitive. Whether a given call actually fires depends on what the user's MCP client advertises:

SDK surfaceMCP primitive
tool(...) (action invocation)tools
resource(...) (live reads, subscriptions)resources (+ resources.subscribe)
ctx.sample(...)sampling
ctx.confirm(...) / ctx.elicit(...)elicitation
ctx.progress(...)notifications/progress (client must pass _meta.progressToken on tools/call)

For the authoritative, continuously-updated list of which client supports which primitive, see the official MCP client compatibility matrix — filter by Sampling or Elicitation to see how narrow the field still is. A few points worth knowing before you pick a capability:

  • Tools are universal — every MCP client can invoke your actions.
  • Sampling is the rarest. Claude Code, Claude Desktop, and Claude.ai do not expose it; today's support is concentrated in VS Code + GitHub Copilot, goose, and fast-agent.
  • Elicitation (MCP 2025-06) landed in Claude Code (2.1.76, March 2026), Cursor, Codex, VS Code Copilot, goose, and fast-agent, but not Claude Desktop, Claude.ai, ChatGPT, Windsurf, or Zed.
  • When a capability is missing, Tesseron raises a typed error (SamplingNotAvailableError, ElicitationNotAvailableError) or collapses to the safe default (ctx.confirm returns false), so handlers can branch explicitly rather than silently misbehaving.

Status

v1.0 shipped April 2026; the SDK is at v2.10 as of writing. The protocol is at 1.2.0 and intentionally kept small: bidirectional JSON-RPC 2.0 over WebSocket, dynamic MCP tool registration, click-to-connect handshake, streaming progress, cancellation, sampling, confirmation, schema-validated elicitation, subscribable resources, session resume.

The seven TypeScript SDK packages, @tesseron/{core,web,server,react,svelte,vue,vite}, share one version and should be installed together. The hub packages @tesseron/mcp, @tesseron/docs-mcp, and @tesseron/conformance release independently. See the compatibility contract for cross-language rules.

The JS/TS SDKs are the reference implementation; the protocol spec is CC BY 4.0 so anyone can write a compatible client or server in any language. The conformance fixtures are the executable half of that.

Language SDK repositories

LanguageSourceInstall
TypeScripttesseron-typescriptnpm scope @tesseron: core, web, server, react, svelte, vue, vite
Rusttesseron-rustcrate tesseron: cargo add tesseron
Pythontesseron-pythonPyPI tesseron: uv add tesseron
C++tesseron-cppCMake FetchContent from that repo, link tesseron::tesseron

All four speak protocol 1.2.0 and pass the shared conformance suite apart from fixtures their transports or claim flow do not support. SDK code and examples live in the language repositories; docs, protocol fixtures, and issues stay here.

On the roadmap: a Streamable HTTP transport and more desktop-native integrations. The Rust SDK already includes a Tauri example.

Development

bash
pnpm install --frozen-lockfile
pnpm gate
pnpm build
pnpm docs:build

Contributing

Bug reports, protocol refinements, new framework adapters, and improvements to the reference implementation are welcome.

Star history

License

Reference implementation — Business Source License 1.1 (source-available). You may embed Tesseron in your own applications, use it internally, fork it, and redistribute it freely. You may not offer Tesseron or a substantial portion of it as a hosted or managed service to third parties. Each release auto-converts to Apache-2.0 four years after publication.

Protocol specification — CC BY 4.0. A compatible implementation in any language, for any purpose including commercial, is explicitly encouraged.

Contributions are welcome under the Developer Certificate of Origin — every commit must be Signed-off-by.


安装

TypingMind
{
  "mcpServers": {
    "tesseron": {
      "command": "npx",
      "args": [
        "-y",
        "@tesseron/mcp@{{config.VERSION}}"
      ],
      "env": {
        "VERSION": "<VERSION>"
      }
    }
  }
}

将 Tesseron MCP 与多个 AI 模型配合使用

TypingMind 在工作区级别连接 MCP 工具,因此连接 Tesseron 后,您就可以在 TypingMind 中搭配不同的 AI 模型使用,无需为每个模型单独设置。 此 MCP 通过您设备上的 TypingMind MCP 连接器在本地运行。

本地连接器设置指南

如果 MCP 服务器需要访问您电脑上的本地文件、应用或私有资源,请选择此方式。

1

打开 MCP 设置

在 TypingMind 中,依次前往“设置”、“高级设置”和“模型上下文协议”,然后选择“设置连接器”。

  1. 在您的浏览器中打开 TypingMind。
  2. 点击“设置”图标。
  3. 进入“高级设置”。
  4. 打开“模型上下文协议”部分。
  5. 点击“设置连接器”,然后选择“此设备”。
TypingMind MCP 连接器设置界面,已选择“此设备”
2

运行连接器命令

选择“此设备”,从 TypingMind 复制命令并在终端中运行。使用 MCP 时,请保持该进程运行。

  1. 复制 TypingMind 显示的设置命令。
  2. 在 macOS 上打开“终端”,或在 Windows 上打开 Windows Terminal。
  3. 粘贴并运行命令。
  4. 如果终端询问您是否继续,请确认安装软件包。
  5. 使用 MCP 工具时,请勿关闭终端窗口或停止其中的连接器进程。
3

将 Tesseron 添加为服务器

当连接器状态为“就绪”时,点击“编辑服务器”,然后粘贴 MCP 服务器配置。

  1. 等待连接器状态显示为“就绪”。
  2. 点击“编辑服务器”。
  3. 粘贴 Tesseron MCP 服务器配置。
  4. 保存服务器列表。
  5. 如需确认连接器是否仍处于就绪状态,请刷新。
TypingMind MCP 设置界面,显示正在运行的服务器和“编辑服务器”按钮
{
  "mcpServers": {
    "tesseron": {
      "command": "npx",
      "args": [
        "-y",
        "tesseron"
      ]
    }
  }
}
4

在不同模型中使用同一连接

保存服务器列表,打开“插件”,启用 Tesseron MCP 工具,然后在 TypingMind 中选择任意受支持的 AI 模型,即可在聊天中使用这些工具,或将其分配给智能体。

  1. 在 TypingMind 中打开“插件”页面。
  2. 启用 Tesseron MCP 工具。
  3. 开始聊天并选择您想使用的 AI 模型。
  4. 在聊天中使用 MCP 工具,或将其分配给 AI 智能体。
  5. 根据需要随时切换到其他 AI 模型,无需重新连接 MCP。
在 TypingMind 聊天中使用已启用的 MCP 工具和选定的 AI 模型
您能使用 Tesseron 帮我完成这项任务吗?
Tesseron
当然,我看过了。
以下是我使用 Tesseron 得到的结果。

常见问题

Tesseron MCP 服务器有什么用途?

Tesseron 是一个 MCP 服务器,可让兼容的 AI 客户端连接外部工具并获取上下文。在 TypingMind 中,只需添加一次此 MCP 服务器,即可在您的 AI 工作区中使用其工具。

可以在 TypingMind 中让多个 AI 模型使用 Tesseron MCP 吗?

可以。TypingMind 在工作区层面连接 MCP 工具,因此您无需为每个模型单独配置 MCP 服务器,就能在 Claude、ChatGPT、Gemini 或您在 TypingMind 中配置的其他 AI 模型中使用 Tesseron。

为什么在 TypingMind 中使用 Tesseron MCP?

TypingMind 将多个 AI 模型、提示词、插件、AI 智能体、API 密钥和 MCP 工具整合到同一个工作区中,是最出色的大语言模型聊天前端之一。连接 Tesseron 后,您可以在偏好的不同模型中使用其 MCP 工具,同时在 TypingMind 中井然有序地管理聊天工作流程。

如何将 Tesseron MCP 连接到 TypingMind?

Tesseron 通过 TypingMind 本地 MCP 连接器运行。当 MCP 服务器需要访问您计算机上的本地文件、桌面应用、命令行工具或私有资源时,这种方式最合适。

Tesseron MCP 在 TypingMind 中提供哪些工具?

Tesseron 提供 MCP 功能,您可以在 TypingMind 的插件页面启用这些功能,然后在聊天中使用,或将其分配给 AI 智能体。

使用 Tesseron MCP 需要向 TypingMind 提供我的 API 密钥吗?

不需要。TypingMind 采用本地优先的设计,让您自行选择模型提供商,并自行管理 API 密钥、提示词和 MCP 配置。如果 Tesseron 需要身份验证,请在创建连接时,为该 MCP 服务器添加所需的请求头、OAuth 设置或本地配置。

相关 MCP 服务器

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇