Initial commit of n8n MCP Server

A Model Context Protocol (MCP) server that integrates with n8n, providing tools for workflow and execution management via the n8n API.
This commit is contained in:
leonardsellem
2025-03-12 17:12:35 +01:00
commit 2cd565cfa6
79 changed files with 19654 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
/**
* Execution Tools Module
*
* This module provides MCP tools for interacting with n8n workflow executions.
*/
import { ToolDefinition } from '../../types/index.js';
import { getListExecutionsToolDefinition } from './list.js';
import { getGetExecutionToolDefinition } from './get.js';
import { getDeleteExecutionToolDefinition } from './delete.js';
/**
* Set up execution management tools
*
* @returns Array of execution tool definitions
*/
export async function setupExecutionTools(): Promise<ToolDefinition[]> {
return [
getListExecutionsToolDefinition(),
getGetExecutionToolDefinition(),
getDeleteExecutionToolDefinition()
];
}
// Export execution tool handlers for use in the handler
export { ListExecutionsHandler } from './list.js';
export { GetExecutionHandler } from './get.js';
export { DeleteExecutionHandler } from './delete.js';