server.fetch directly at the MCP route. Preserve the nested asset
subtree so the same handler receives /mcp/_mcp-use/*.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Mount an mcp-use server in Hono with server.fetch.
server.fetch directly at the MCP route. Preserve the nested asset
subtree so the same handler receives /mcp/_mcp-use/*.
app.all("/mcp", (c) => server.fetch(c.req.raw));
app.all("/mcp/*", (c) => server.fetch(c.req.raw));
MCP_URL=https://api.example.com/mcp npm run build
npx --yes mcp-use screenshot --mcp https://api.example.com/mcp \
--tool show-app --output hono-live-view.png
Was this page helpful?