A Model Context Protocol (MCP) server that integrates with n8n, providing tools for workflow and execution management via the n8n API.
29 lines
872 B
TypeScript
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';
|