INTEGRATION · HONO

Hono MCP Integration

Deploying API tools on edge networks like Cloudflare Workers makes your agents lightning fast. Use Hono + Zod to generate OpenAPI, and wmcp.sh will bridge those endpoints to the Model Context Protocol instantly.

Edge-native tool deployment

Agents often fire off dozens of parallel tool calls. High-latency backends slow down the entire chain. Hono on the edge is the perfect fast-boot runtime, but building the transport for MCP (SSE or WebSockets) in Cloudflare Workers can be tricky.

Instead of dealing with edge protocols, just use @hono/zod-openapi. wmcp.sh itself is built on this exact stack—we proxy your edge routes safely and expose them as standard agent tools.

Hono Zod to Agent MCP

// TypeScript - Hono Zod OpenAPI
import { OpenAPIHono, createRoute, z } from '@hono/zod-openapi';

const app = new OpenAPIHono();

const addRoute = createRoute({
  method: 'post',
  path: '/add',
  tags: ['math'],
  request: {
    body: {
      content: { 'application/json': { schema: z.object({ a: z.number(), b: z.number() }) } }
    }
  },
  responses: { 200: { description: 'Result' } }
});

app.openapi(addRoute, (c) => {
  const { a, b } = c.req.valid('json');
  return c.json({ result: a + b });
});

app.doc('/openapi.json', { openapi: '3.0.0', info: { title: 'Math', version: '1.0.0' } });
// Just point wmcp.sh to /openapi.json

Hono Zod vs Standard MCP

CapabilityWithout wmcp.shWith wmcp.sh
Validation⚠️ Custom MCP handlers✅ Zod types enforced at edge
Documentation❌ Manual syncing✅ Auto-generated OpenAPI JSON
Platform⚠️ Specific transport layers✅ Works cleanly on CF Workers
Performance⚠️ Server cold starts✅ Sub-10ms edge execution

Common questions.

Why is Hono great for agent tools?

Hono runs on edge networks like Cloudflare Workers and Vercel Edge. Agents often make dozens of small, parallel tool calls, making edge-native fast-boot runtimes ideal.

How do I generate an OpenAPI spec?

Use the @hono/zod-openapi package. You define your routes using Zod schemas, and it automatically validates incoming requests while outputting a clean OpenAPI spec.

Does wmcp.sh support Cloudflare Workers deployment?

Yes, wmcp.sh itself is built on Cloudflare Workers and Hono. Passing your Worker's OpenAPI endpoint to wmcp.sh is practically instantaneous.

Is Zod validation preserved?

Yes. Zod maps 1:1 to OpenAPI, which wmcp.sh converts to MCP JSON schemas. If an agent hallucinates a parameter, your Hono edge function will reject it via Zod.

Need this done for you?

Skip the wiring — we build, deploy, and monitor.

Custom adapter + hosted MCP at mcp.yourbrand.com + verified badge. From $499 one-time setup.

See /managed → Submit (free)