UNPKG

n8n-mcp-server

Version:

Model Context Protocol (MCP) server for n8n workflow automation

56 lines (51 loc) 1.02 kB
/** * Core Types Module * * This module provides type definitions used throughout the application * and bridges compatibility with the MCP SDK. */ // Tool definition for MCP tools export interface ToolDefinition { name: string; description: string; inputSchema: { type: string; properties: Record<string, any>; required?: string[]; }; } // Tool call result for MCP tool responses export interface ToolCallResult { content: Array<{ type: string; text: string; }>; isError?: boolean; } // Type for n8n workflow object export interface Workflow { id: string; name: string; active: boolean; nodes: any[]; connections: any; createdAt: string; updatedAt: string; [key: string]: any; } // Type for n8n execution object export interface Execution { id: string; workflowId: string; finished: boolean; mode: string; startedAt: string; stoppedAt: string; status: string; data: { resultData: { runData: any; }; }; [key: string]: any; }