MCP TypeScript SDK (V2)
    Preparing search index...
    • Creates a Hono application pre-configured for MCP servers.

      When the host is '127.0.0.1', 'localhost', or '::1' (the default is '127.0.0.1'), DNS rebinding protection middleware is automatically applied to protect against DNS rebinding attacks on localhost servers.

      This also installs a small JSON body parsing middleware (similar to express.json()) that stashes the parsed body into c.set('parsedBody', ...) when Content-Type includes application/json.

      Parameters

      Returns Hono

      A configured Hono application