Files
n8n-mcp-server/src/tools/execution/index.ts
leonardsellem 2cd565cfa6 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.
2025-03-12 17:12:35 +01:00

29 lines
872 B
TypeScript

/**
* 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';