import type { Express } from "express"; import { Hono } from "hono"; /** * Mount the MCP Inspector UI at a specified path on an Express or Hono app * Similar to how FastAPI mounts Swagger UI at /docs * * @param app - Express or Hono application instance * @param config - Optional configuration including autoConnectUrl * * @example * ```typescript * import { MCPServer } from 'mcp-use/server' * import { mountInspector } from '@mcp-use/inspector' * * const server = new MCPServer({ name: 'my-server', version: '1.0.0' }) * mountInspector(server) // Mounts at /inspector * mountInspector(server, { autoConnectUrl: 'http://localhost:3000/mcp' }) // With auto-connect * ``` */ export declare function mountInspector(app: Express | Hono, config?: { autoConnectUrl?: string | null; /** Whether the server is running in development mode (enables same-origin sandbox) */ devMode?: boolean; /** Override the sandbox origin for MCP Apps widgets (e.g., for production reverse proxies) */ sandboxOrigin?: string | null; /** Port the host app listens on (embedded inspector); required for tunnel start */ serverPort?: number; }): void; //# sourceMappingURL=middleware.d.ts.map