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.
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.
// 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
| Capability | Without wmcp.sh | With 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 |
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.
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.
Yes, wmcp.sh itself is built on Cloudflare Workers and Hono. Passing your Worker's OpenAPI endpoint to wmcp.sh is practically instantaneous.
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.
Custom adapter + hosted MCP at mcp.yourbrand.com + verified badge. From $499 one-time setup.