UNPKG

@todo-for-ai/mcp

Version:

Model Context Protocol server for Todo for AI task management system with Streamable HTTP transport. Provides AI assistants with access to task management, project information, and feedback submission capabilities through modern HTTP-based communication.

58 lines 1.82 kB
import { TodoConfig, GetProjectTasksArgs, GetTaskByIdArgs, SubmitTaskFeedbackArgs, CreateTaskArgs, GetProjectInfoArgs, Task, Project } from './types.js'; declare module 'axios' { interface InternalAxiosRequestConfig { metadata?: { requestId: string; startTime: number; }; } } export declare class TodoApiClient { private client; private config; private retryConfig; private lastRequestTime; private minRequestInterval; constructor(config: TodoConfig); private setupInterceptors; private handleApiError; private sleep; private shouldRetry; private enforceRequestInterval; private executeWithRetry; /** * Get all pending tasks for a project by project name */ getProjectTasksByName(args: GetProjectTasksArgs): Promise<any>; /** * Get detailed task information by task ID */ getTaskById(args: GetTaskByIdArgs): Promise<Task>; /** * Submit feedback for a completed or in-progress task */ submitTaskFeedback(args: SubmitTaskFeedbackArgs): Promise<any>; /** * Create a new task in the specified project */ createTask(args: CreateTaskArgs): Promise<Task>; /** * Get detailed project information */ getProjectInfo(args: GetProjectInfoArgs): Promise<Project>; /** * List all projects that the current user has access to */ listUserProjects(args: any): Promise<any>; /** * Test connection to the Todo API */ testConnection(): Promise<boolean>; private getVersion; /** * Normalize URL path to ensure proper joining with baseURL * Removes leading slash to avoid double slashes when joining with baseURL that ends with / */ private normalizePath; } //# sourceMappingURL=api-client.d.ts.map