UNPKG

v0-mcp

Version:

MCP server v0 for adding components and dependencies to projects

26 lines 881 B
export interface ChatResponse { chatId: string; chatName?: string; } export interface SourceFile { lang: string; file: string; source?: string; } export interface CreateV0ComponentOptions { createComponent?: boolean; enhancePrompt?: boolean; } export declare function enhancePrompt(prompt: string): Promise<any>; export declare function getChats(limit?: string, offset?: string): Promise<ChatResponse[]>; export declare function getFileList(chatId: string): Promise<SourceFile[]>; export declare function getFileContent(chatId: string, files?: string[], offsets?: { start: number; end: number; }[]): Promise<SourceFile[]>; export declare function createV0Component(chatId: string, prompt: string, options?: CreateV0ComponentOptions): Promise<{ text: string; preview: string; files: SourceFile[]; }>; //# sourceMappingURL=sdk.d.ts.map