jsonv-ts
Version:
JSON Schema builder and validator for TypeScript with static type inference, Hono middleware for OpenAPI generation and validation, and MCP server/client implementation. Lightweight, dependency-free, and built on Web Standards.
14 lines (13 loc) • 457 B
TypeScript
import type { McpServer } from "../server";
export type StreamableHttpTransportOptions = {
_init?: RequestInit;
authentication?: {
type: "bearer";
token: string;
} | {
type: "basic";
username: string;
password: string;
};
};
export declare function streamableHttpTransport(server: McpServer, opts?: StreamableHttpTransportOptions): (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;