import type { Hono } from "hono"; /** * Inspector deployment mode. Identifies how the inspector is being served so the * client can distinguish the three supported deployments. */ export type InspectorMode = "standalone" | "embedded" | "cloud"; /** * Runtime configuration injected into the inspector HTML at serve time. */ interface RuntimeConfig { /** Whether the server is running in development mode */ devMode?: boolean; /** Override sandbox origin for MCP Apps widgets behind reverse proxies */ sandboxOrigin?: string | null; /** Relative path to the MCP proxy (e.g. "/inspector/api/proxy"). When set, the client uses it for autoProxyFallback. Omit when the proxy is not available (e.g. Python server serving inspector). */ proxyUrl?: string | null; /** How the inspector is being served (standalone CLI, embedded in mcp-use, or cloud-hosted). Consumed by telemetry. */ inspectorMode?: InspectorMode; /** * Full URL of the Manufact hosted chat stream endpoint * (e.g. `https://manufact.com/api/v1/inspector/chat/stream`). When set, the * client switches the Chat tab to hosted mode: uses this endpoint with * `credentials: "include"` and shows the free-tier banner / login modal. * * Prefer this over the build-time `VITE_MANUFACT_CHAT_URL` so a single * pre-built npm tarball can be configured at deploy time. */ manufactChatUrl?: string | null; /** * Disable anonymized telemetry across the inspector and any `useMcp` hooks * it instantiates. Auto-populated from `MCP_USE_ANONYMIZED_TELEMETRY=false` * on the serving process; the value is forwarded to the browser so the * client-side posthog-js init in `mcp-use/react` can be skipped before any * network calls are made. */ disableTelemetry?: boolean; } /** * Register routes that serve the inspector client. * * Default (INSPECTOR_USE_CDN unset or "false"): serves built files from * dist/web/ exactly as before. * * Opt-in (INSPECTOR_USE_CDN=true): serves a minimal inline HTML shell that * loads the inspector bundle from CDN. No local file reads at request time. */ export declare function registerStaticRoutes(app: Hono, clientDistPath?: string, runtimeConfig?: RuntimeConfig): void; /** * Register static routes with development mode proxy support. * * When VITE_DEV=true, proxies all non-API requests to the Vite dev server * at localhost:3000 for HMR during inspector development. Otherwise falls * back to registerStaticRoutes (local files or CDN depending on INSPECTOR_USE_CDN). */ export declare function registerStaticRoutesWithDevProxy(app: Hono, clientDistPath?: string, runtimeConfig?: RuntimeConfig): void; export {}; //# sourceMappingURL=shared-static.d.ts.map