UNPKG

@gala-chain/launchpad-mcp-server

Version:

MCP server for Gala Launchpad SDK with 55 tools + 14 slash commands - Production-grade AI agent integration with comprehensive validation, optimized performance, and 80%+ test coverage

66 lines 1.37 kB
/** * MCP Protocol Types */ import type { LaunchpadSDK } from '@gala-chain/launchpad-sdk'; /** * MCP Tool Definition */ export interface MCPTool { name: string; description: string; inputSchema: { type: 'object'; properties: Record<string, any>; required?: string[]; }; handler: (sdk: LaunchpadSDK, args: any) => Promise<MCPToolResponse>; } /** * MCP Tool Response */ export interface MCPToolResponse { content: Array<{ type: 'text' | 'image' | 'resource'; text?: string; data?: string; mimeType?: string; }>; isError?: boolean; } /** * Tool execution context */ export interface ToolContext { sdk: LaunchpadSDK; debug: boolean; } /** * MCP Prompt Argument Definition */ export interface MCPPromptArgument { name: string; description: string; required: boolean; } /** * MCP Prompt Definition */ export interface MCPPrompt { name: string; description: string; arguments?: MCPPromptArgument[]; handler: (args: Record<string, string>) => PromptMessage[]; } /** * Prompt Message (from MCP spec) */ export interface PromptMessage { role: 'user' | 'assistant'; content: { type: 'text' | 'image' | 'resource'; text?: string; data?: string; mimeType?: string; }; } //# sourceMappingURL=mcp.d.ts.map