get_event_handlers
Retrieve and filter event handlers that define how Conductor responds to external events, with options to specify event names and active status.
Instructions
Get all event handlers or filter by event and active status. Event handlers define how Conductor responds to external events.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| event | No | Filter by event name | |
| activeOnly | No | Return only active event handlers (default: true) |
Implementation Reference
- src/index.ts:770-787 (handler)The main handler logic for the 'get_event_handlers' tool. It constructs query parameters from the input arguments (event and activeOnly), makes a GET request to the Conductor API endpoint '/event', and returns the response data as a formatted JSON string in the MCP content format.case "get_event_handlers": { const params: any = {}; if ((args as any).event) params.event = (args as any).event; if ((args as any).activeOnly !== undefined) params.activeOnly = (args as any).activeOnly; else params.activeOnly = true; const response = await conductorClient.get("/event", { params }); return { content: [ { type: "text", text: JSON.stringify(response.data, null, 2), }, ], }; }
- src/index.ts:401-418 (schema)The tool schema definition including name, description, and inputSchema for validating parameters: optional 'event' string and 'activeOnly' boolean.{ name: "get_event_handlers", description: "Get all event handlers or filter by event and active status. Event handlers define how Conductor responds to external events.", inputSchema: { type: "object", properties: { event: { type: "string", description: "Filter by event name", }, activeOnly: { type: "boolean", description: "Return only active event handlers (default: true)", }, }, }, },
- src/index.ts:435-439 (registration)Registers the list tools handler which returns the tools array containing the 'get_event_handlers' tool definition.server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools, }; });