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:
28
src/tools/execution/index.ts
Normal file
28
src/tools/execution/index.ts
Normal 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';
|
||||
Reference in New Issue
Block a user