UNPKG

v0-mcp-node

Version:

Vercel v0 MCP Server using Node.js and TypeScript - Generate UI components through Claude Code

36 lines 1.04 kB
/** * v0 API Service using OpenAI-compatible endpoint */ import { ToolResult, V0Model } from '../types/index.js'; export declare class V0Service { private client; constructor(); /** * Generate UI component from text prompt */ generateUI(prompt: string, model?: V0Model, stream?: boolean, context?: string): Promise<ToolResult>; /** * Generate UI from image */ generateFromImage(imageUrl: string, model?: V0Model, prompt?: string): Promise<ToolResult>; /** * Chat completion with conversation context */ chatComplete(messages: Array<{ role: 'user' | 'assistant' | 'system'; content: string; }>, model?: V0Model, stream?: boolean): Promise<ToolResult>; /** * Handle synchronous response */ private handleSyncResponse; /** * Handle streaming response */ private handleStreamResponse; /** * Handle API errors with enhanced error information */ private handleError; } //# sourceMappingURL=v0Service.d.ts.map