UNPKG

@fusedashlabs/ui9000-workspace

Version:

UI9000 workspace MCP. One tool, show_workspace, draws a chart from your table. Set TYPESAFE_API_KEY to let Jev choose the chart.

21 lines (20 loc) • 1.16 kB
import { type IncomingMessage, type ServerResponse } from 'node:http'; import { type CreateWorkspaceServerOptions, type WiredWorkspace } from '../workspace-server.js'; export declare const WORKSPACE_HTTP_PATH = "/mcp"; export declare const DEFAULT_WORKSPACE_HTTP_PORT = 8090; export type WorkspaceHttpListenOptions = CreateWorkspaceServerOptions & { port?: number; host?: string; path?: string; }; export type WorkspaceHttpServer = { url: string; port: number; path: string; close: () => Promise<void>; }; export declare function wireWorkspaceHttp(options?: CreateWorkspaceServerOptions): WiredWorkspace; export declare function handleWorkspaceMcpHttpRequest(req: IncomingMessage, res: ServerResponse, parsedBody?: unknown, options?: CreateWorkspaceServerOptions): Promise<void>; export declare function startWorkspaceHttpServer(options?: WorkspaceHttpListenOptions): Promise<WorkspaceHttpServer>; export declare function applyWorkspaceHttpCors(res: ServerResponse, origin: string | undefined, extraHosts?: readonly string[]): void; export declare function isAllowedHttpHost(host: string, extraHosts?: readonly string[]): boolean;