thatch
@brooswit/thatch
Un servidor MCP central HTTP, implementado como un plugin de Elysia(https://elysiajs.com). Muchas sesiones de Claude Code se conectan a un único servidor por URL; el servidor se dirige a ellas por nombre y puede enviar mensajes dentro de una sesión activa.
import { Elysia } from "elysia";
import { thatch, z } from "@brooswit/thatch";
const { plugin, mcp } = thatch({
identify: (req) => req.headers.get("x-connection-name"), // names the connection; null rejects it
tools: {
status: { description: "Fleet status", input: {}, handler: (_a, c) => `hello ${c.name}` },
},
});
const app = new Elysia().use(plugin).listen(3000);
// push a message into a named session — from anywhere
const d = await mcp.send("epic-kan-39", { content: "PR #296 approved", meta: { key: "KAN-39" } });
// d: { claim: "C2" } — a connected session's stream took it
// { claim: "refused", reason: "not-connected" | "no-channel-stream" | "bad-meta" | "closed-mid-send" }Claude Code se conecta con:
claude mcp add --transport http fleet http://localhost:3000/mcp --header "x-connection-name: epic-kan-39"Por qué el tipo de entrega no es void
Enviar a una sesión puede fallar de maneras que el SDK de MCP oculta: una conexión puede estar registrada sin que su flujo de notificaciones esté conectado, en cuyo caso el SDK descarta la trama en silencio. thatch lo rechaza en voz alta ("no-channel-stream") y solo afma C2 cuando esté de verda un flujo que puedqa transportar la trama. C3 (entró en la transcripción) y C4 (el model lo leyó) no son obsrvables, así que no hay API aquí que prétenda alcanzarlos.
Related MCP server: agent-network
API
thatch(options)→{ plugin, mcp }—pluginmonta el endpoint (por defecto/mcp);mcpes el controlador.options:identify,onDuplicate("replace"por defecto |"reject"),history(por defecto 50),tools,path,serverInfo.mcp.connections:list(),get(name),has(name),count(),waitFor(name, { timeoutMs }).mcp.send(name, frame),mcp.sendMany(names, frame),mcp.sendAll(frame, { where? }).mcp.on("connect" | "disconnect" | "send", handler)`.Una
Connectioncontierename,connectedAt,lastSeenAt,meta,channelReady, yhistory.A and import { FakeConnection } from "@broker wit/atch/testing"para probas.
Layers
protocol (trama, entrega, método — puro) · registry (con exiones con nombra + historial) · channel (en viío, afirmaciones honestas) · plugin (el montaje de Elysia, un servidor MCP por conexión) · testing.
Scripts
bun run check # generate load tests + typecheck + unit + load + coverage ≥90%
bun test test/unit
MCP_LIVE=1 bun test test/live # against a real Claude Code session (opt-in)This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables networked Claude-to-Claude messaging over HTTP and MCP channels, allowing direct messages, broadcasts, threaded replies, and permission approvals among Claude Code instances.23MIT
- AlicenseNot gradedqualityDmaintenanceMCP server that enables Claude Code to communicate with other Claude Code agents over HTTP, allowing users to ask questions about remote codebases or delegate coding tasks.MIT
- FlicenseNot gradedqualityCmaintenanceMCP server for agent-to-agent communication over NATS with live session push via Claude Code Channels.
- AlicenseNot gradedqualityBmaintenanceMCP server for real-time communication between Claude Code sessions via chat rooms.219Inno Setup
Related MCP Connectors
An authenticated remote MCP server for user-owned devices and one-shot capability invocation.
Remote MCP server for The Colony — a social network for AI agents (posts, DMs, search, marketplace).
Real-time chat hub for AI agents — Claude Code, Cursor, Cline, Codex over MCP or REST.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/brooswit/thatch'
If you have feedback or need assistance with the MCP directory API, please join our Discord server