mcp-use
Version:
Opinionated MCP Framework for TypeScript (@modelcontextprotocol/sdk compatible) - Build MCP Agents, Clients and Servers with support for ChatGPT Apps, Code Mode, OAuth, Notifications, Sampling, Observability and more.
21 lines • 775 B
TypeScript
/**
* Hono Proxy Utilities
*
* Utilities for creating proxied instances that allow direct access to Hono methods
* while preserving server functionality.
*/
import type { Hono as HonoType } from "hono";
/**
* Create a proxy that allows direct access to Hono methods
*
* Creates a Proxy wrapper that:
* - Auto-detects and adapts Express middleware to Hono
* - Proxies all Hono methods to the underlying app
* - Preserves the target instance's own methods and properties
*
* @param target - The target instance to proxy
* @param app - The Hono app instance
* @returns Proxied instance with both target and Hono methods
*/
export declare function createHonoProxy<T extends object>(target: T, app: HonoType): T & HonoType;
//# sourceMappingURL=hono-proxy.d.ts.map