Yogan Labs
Projects / Switchboard

Free developer tool

Live

Switchboard. The test bench for your MCP server.

One hosted MCP endpoint that sits in front of every copy of your MCP server. You watch each tool call, replay a failed call on your fix, and run checks on every copy.

  • Updated Nov 15, 2026
  • 7 technologies
  • Code only
  • Public repo
Details
The Switchboard home page
switchboard.yogan.dev, captured Nov 2026

The problem

An MCP server has many copies: your laptop, a branch, staging, production. Switchboard puts them behind one URL so you can see what each one does and catch breakage before a release.

Who it is for

People who build or maintain an MCP server, or the skills and plugin that ship with it. It is not production monitoring, hosting or an eval runner replacement.

What you will learn

  • Build an MCP gateway on a Hono Worker with access tokens, OAuth and meta-tools that let an agent search for tools instead of loading every schema.
  • Treat tool search as retrieval: embed tool documents, rank with hybrid search and rerank with a cross-encoder.
  • Save tokens by re-encoding tool results as TOON or minified JSON, whichever is smaller.
  • Guard calls to user-supplied URLs against SSRF, and encrypt stored credentials with AES-GCM.
  • Run evals on Workflows: one durable step per model turn and tool call, with an LLM judge and agreement tracking.

The AI parts

  • Workers AI embeddings and a reranker, with Vectorize, for tool search.
  • The Anthropic SDK for prompt checks and the judge, Haiku 5.5 by default.
  • MCP on both sides: a server for your agent, clients for your upstream servers.
  • Remix 3
  • Hono
  • MCP
  • Cloudflare Workers
  • D1
  • Vectorize
  • Workflows

Open these first

  1. 01
    AGENTS.mdHow the repo is laid out and how to run it.
  2. 02
    apps/gateway/src/mcp/find-tools.tsHow an agent searches for the tool it needs.
  3. 03
    packages/router/src/rank.tsHybrid ranking for tool search.
  4. 04
    packages/compact/src/index.tsThe token-saving encoding of tool results.
  5. 05
    packages/upstream/src/guard.tsThe SSRF guard in front of every upstream call.
  6. 06
    packages/core/src/evals/judge.tsThe LLM judge used by evals.

Run it

Terminal
pnpm installpnpm devpnpm testpnpm typecheck

Honest status

Live

Deployed, and its latest production smoke test passed 18 of 18. The sb CLI is not published yet and the repo has no license file, so ask before you reuse the code.

Answers the same questions