UNPKG

@kya-os/mcp-i

Version:

The TypeScript MCP framework with identity features built-in

17 lines (16 loc) 664 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BaseHttpServerTransport = void 0; // shared between stateless and stateful transports // just to paint the same interface class BaseHttpServerTransport { // If we ever want to have more control over the transport, we can add onclose, onerror, onmessage here // or interceptors for requests and responses // e.g. to add a custom header to the response or a middleware layer! // to do add the logging methods like log and error // MCP SDK transport interface onmessage; onerror; onclose; } exports.BaseHttpServerTransport = BaseHttpServerTransport;