mcp-ts-template
Version:
A production-grade TypeScript template for building robust Model Context Protocol (MCP) servers, featuring built-in observability with OpenTelemetry, advanced error handling, comprehensive utilities, and a modular architecture.
17 lines • 634 B
TypeScript
/**
* @fileoverview Defines custom types for the Hono HTTP transport layer.
* @module src/mcp-server/transports/http/httpTypes
*/
import type { IncomingMessage, ServerResponse } from "http";
/**
* Extends Hono's Bindings to include the raw Node.js request and response objects.
* This is necessary for integrating with libraries like the MCP SDK that
* need to write directly to the response stream.
*
* As per `@hono/node-server`, the response object is available on `c.env.outgoing`.
*/
export type HonoNodeBindings = {
incoming: IncomingMessage;
outgoing: ServerResponse;
};
//# sourceMappingURL=httpTypes.d.ts.map