@cyanheads/git-mcp-server
Version:
An MCP (Model Context Protocol) server enabling LLMs and AI agents to interact with Git repositories. Provides tools for comprehensive Git operations including clone, commit, branch, diff, log, status, push, pull, merge, rebase, worktree, tag management,
24 lines • 1.31 kB
TypeScript
/**
* @fileoverview Provides a bridge between the MCP SDK's Node.js-style
* streamable HTTP transport and Hono's Web Standards-based streaming response.
* @module src/mcp-server/transports/core/honoNodeBridge
*/
import { PassThrough } from "stream";
/**
* A mock ServerResponse that pipes writes to a PassThrough stream.
* This is the bridge between Model Context Protocol's SDK's Node.js-style response handling
* and Hono's stream-based body. It captures status and headers.
*/
export declare class HonoStreamResponse extends PassThrough {
statusCode: number;
headers: Record<string, string | number | string[]>;
constructor();
writeHead(statusCode: number, headers?: Record<string, string | number | string[]>): this;
setHeader(name: string, value: string | number | string[]): this;
getHeader(name: string): string | number | string[] | undefined;
getHeaders(): Record<string, string | number | string[]>;
removeHeader(name: string): void;
write(chunk: unknown, encodingOrCallback?: BufferEncoding | ((error: Error | null | undefined) => void), callback?: (error: Error | null | undefined) => void): boolean;
end(chunk?: unknown, encodingOrCallback?: BufferEncoding | (() => void), callback?: () => void): this;
}
//# sourceMappingURL=honoNodeBridge.d.ts.map