Skip to content

ERR_HTTP_HEADERS_SENT crash with @hono/node-server #30

@benpeter

Description

@benpeter

The MCP SDK transport writes directly to the Node.js ServerResponse object, but @hono/node-server then tries to write headers again on the same response. This causes an ERR_HTTP_HEADERS_SENT crash when using the HTTP transport.

The fix signals to @hono/node-server that the response was already handled via the x-hono-already-sent header convention.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions