UNPKG

openai-assistants-mcp

Version:

OpenAI Assistants MCP Server - A Model Context Protocol server providing OpenAI Assistants API tools and resources. Features comprehensive assistant management, thread operations, message handling, and run execution with seamless stdio transport for Claud

55 lines 1.77 kB
/** * Thread Tool Handlers - Handlers for all thread-related operations * * This file contains handlers for: * - thread-create: Create a new conversation thread * - thread-get: Get details of a specific thread * - thread-update: Update thread metadata * - thread-delete: Delete a thread * * Each handler implements the BaseToolHandler interface and provides * specific validation and execution logic for thread operations. */ import { BaseToolHandler, ToolHandlerContext } from './base-tool-handler.js'; import { ValidationResult } from '../../validation/index.js'; /** * Handler for creating new threads */ export declare class ThreadCreateHandler extends BaseToolHandler { getToolName(): string; getCategory(): string; validate(args: any): ValidationResult; execute(args: any): Promise<any>; } /** * Handler for getting thread details */ export declare class ThreadGetHandler extends BaseToolHandler { getToolName(): string; getCategory(): string; validate(args: any): ValidationResult; execute(args: any): Promise<any>; } /** * Handler for updating threads */ export declare class ThreadUpdateHandler extends BaseToolHandler { getToolName(): string; getCategory(): string; validate(args: any): ValidationResult; execute(args: any): Promise<any>; } /** * Handler for deleting threads */ export declare class ThreadDeleteHandler extends BaseToolHandler { getToolName(): string; getCategory(): string; validate(args: any): ValidationResult; execute(args: any): Promise<any>; } /** * Factory function to create all thread handlers */ export declare function createThreadHandlers(context: ToolHandlerContext): Record<string, BaseToolHandler>; //# sourceMappingURL=thread-handlers.d.ts.map