UNPKG

aipm-mcp

Version:

Complete AIPM integration for Cursor IDE - Get tasks, manage features, track time, and build features with AI. Supports both MCP stdio mode and HTTP server mode.

732 lines 23.9 kB
import { z } from 'zod'; export declare const TicketSchema: z.ZodObject<{ id: z.ZodString; key: z.ZodString; title: z.ZodString; description: z.ZodNullable<z.ZodString>; aiPrompt: z.ZodNullable<z.ZodString>; generatedCode: z.ZodNullable<z.ZodString>; implementationDetails: z.ZodNullable<z.ZodString>; status: z.ZodEnum<["TODO", "IN_PROGRESS", "REVIEW", "COMPLETED", "CANCELLED", "BLOCKED"]>; priority: z.ZodEnum<["LOW", "MEDIUM", "HIGH", "URGENT"]>; type: z.ZodEnum<["TASK", "BUG", "FEATURE_REQUEST", "IMPROVEMENT"]>; estimatedHours: z.ZodNullable<z.ZodNumber>; actualHours: z.ZodNullable<z.ZodNumber>; startedAt: z.ZodNullable<z.ZodString>; completedAt: z.ZodNullable<z.ZodString>; createdAt: z.ZodString; updatedAt: z.ZodString; assignedTo: z.ZodNullable<z.ZodObject<{ id: z.ZodString; name: z.ZodString; email: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; name: string; email: string; }, { id: string; name: string; email: string; }>>; feature: z.ZodNullable<z.ZodObject<{ id: z.ZodString; name: z.ZodString; description: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { id: string; name: string; description?: string | null | undefined; }, { id: string; name: string; description?: string | null | undefined; }>>; product: z.ZodObject<{ id: z.ZodString; name: z.ZodString; key: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; name: string; key?: string | undefined; }, { id: string; name: string; key?: string | undefined; }>; timeLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; hours: z.ZodNumber; date: z.ZodString; description: z.ZodNullable<z.ZodString>; isActive: z.ZodBoolean; }, "strip", z.ZodTypeAny, { id: string; description: string | null; date: string; hours: number; isActive: boolean; }, { id: string; description: string | null; date: string; hours: number; isActive: boolean; }>, "many">>; }, "strip", z.ZodTypeAny, { id: string; key: string; title: string; description: string | null; aiPrompt: string | null; generatedCode: string | null; implementationDetails: string | null; status: "TODO" | "IN_PROGRESS" | "REVIEW" | "COMPLETED" | "CANCELLED" | "BLOCKED"; type: "TASK" | "BUG" | "FEATURE_REQUEST" | "IMPROVEMENT"; priority: "LOW" | "MEDIUM" | "HIGH" | "URGENT"; estimatedHours: number | null; actualHours: number | null; startedAt: string | null; completedAt: string | null; createdAt: string; updatedAt: string; assignedTo: { id: string; name: string; email: string; } | null; feature: { id: string; name: string; description?: string | null | undefined; } | null; product: { id: string; name: string; key?: string | undefined; }; timeLogs?: { id: string; description: string | null; date: string; hours: number; isActive: boolean; }[] | undefined; }, { id: string; key: string; title: string; description: string | null; aiPrompt: string | null; generatedCode: string | null; implementationDetails: string | null; status: "TODO" | "IN_PROGRESS" | "REVIEW" | "COMPLETED" | "CANCELLED" | "BLOCKED"; type: "TASK" | "BUG" | "FEATURE_REQUEST" | "IMPROVEMENT"; priority: "LOW" | "MEDIUM" | "HIGH" | "URGENT"; estimatedHours: number | null; actualHours: number | null; startedAt: string | null; completedAt: string | null; createdAt: string; updatedAt: string; assignedTo: { id: string; name: string; email: string; } | null; feature: { id: string; name: string; description?: string | null | undefined; } | null; product: { id: string; name: string; key?: string | undefined; }; timeLogs?: { id: string; description: string | null; date: string; hours: number; isActive: boolean; }[] | undefined; }>; export declare const FeatureSchema: z.ZodObject<{ id: z.ZodString; key: z.ZodString; name: z.ZodString; description: z.ZodNullable<z.ZodString>; acceptanceCriteria: z.ZodNullable<z.ZodString>; status: z.ZodEnum<["PLANNED", "IN_PROGRESS", "REVIEW", "COMPLETED", "CANCELLED"]>; priority: z.ZodEnum<["LOW", "MEDIUM", "HIGH", "URGENT"]>; estimatedHours: z.ZodNullable<z.ZodNumber>; actualHours: z.ZodNullable<z.ZodNumber>; progress: z.ZodNumber; product: z.ZodObject<{ id: z.ZodString; name: z.ZodString; key: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; name: string; key?: string | undefined; }, { id: string; name: string; key?: string | undefined; }>; tickets: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; key: z.ZodString; title: z.ZodString; description: z.ZodNullable<z.ZodString>; aiPrompt: z.ZodNullable<z.ZodString>; generatedCode: z.ZodNullable<z.ZodString>; implementationDetails: z.ZodNullable<z.ZodString>; status: z.ZodEnum<["TODO", "IN_PROGRESS", "REVIEW", "COMPLETED", "CANCELLED", "BLOCKED"]>; priority: z.ZodEnum<["LOW", "MEDIUM", "HIGH", "URGENT"]>; type: z.ZodEnum<["TASK", "BUG", "FEATURE_REQUEST", "IMPROVEMENT"]>; estimatedHours: z.ZodNullable<z.ZodNumber>; actualHours: z.ZodNullable<z.ZodNumber>; startedAt: z.ZodNullable<z.ZodString>; completedAt: z.ZodNullable<z.ZodString>; createdAt: z.ZodString; updatedAt: z.ZodString; assignedTo: z.ZodNullable<z.ZodObject<{ id: z.ZodString; name: z.ZodString; email: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; name: string; email: string; }, { id: string; name: string; email: string; }>>; feature: z.ZodNullable<z.ZodObject<{ id: z.ZodString; name: z.ZodString; description: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { id: string; name: string; description?: string | null | undefined; }, { id: string; name: string; description?: string | null | undefined; }>>; product: z.ZodObject<{ id: z.ZodString; name: z.ZodString; key: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; name: string; key?: string | undefined; }, { id: string; name: string; key?: string | undefined; }>; timeLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; hours: z.ZodNumber; date: z.ZodString; description: z.ZodNullable<z.ZodString>; isActive: z.ZodBoolean; }, "strip", z.ZodTypeAny, { id: string; description: string | null; date: string; hours: number; isActive: boolean; }, { id: string; description: string | null; date: string; hours: number; isActive: boolean; }>, "many">>; }, "strip", z.ZodTypeAny, { id: string; key: string; title: string; description: string | null; aiPrompt: string | null; generatedCode: string | null; implementationDetails: string | null; status: "TODO" | "IN_PROGRESS" | "REVIEW" | "COMPLETED" | "CANCELLED" | "BLOCKED"; type: "TASK" | "BUG" | "FEATURE_REQUEST" | "IMPROVEMENT"; priority: "LOW" | "MEDIUM" | "HIGH" | "URGENT"; estimatedHours: number | null; actualHours: number | null; startedAt: string | null; completedAt: string | null; createdAt: string; updatedAt: string; assignedTo: { id: string; name: string; email: string; } | null; feature: { id: string; name: string; description?: string | null | undefined; } | null; product: { id: string; name: string; key?: string | undefined; }; timeLogs?: { id: string; description: string | null; date: string; hours: number; isActive: boolean; }[] | undefined; }, { id: string; key: string; title: string; description: string | null; aiPrompt: string | null; generatedCode: string | null; implementationDetails: string | null; status: "TODO" | "IN_PROGRESS" | "REVIEW" | "COMPLETED" | "CANCELLED" | "BLOCKED"; type: "TASK" | "BUG" | "FEATURE_REQUEST" | "IMPROVEMENT"; priority: "LOW" | "MEDIUM" | "HIGH" | "URGENT"; estimatedHours: number | null; actualHours: number | null; startedAt: string | null; completedAt: string | null; createdAt: string; updatedAt: string; assignedTo: { id: string; name: string; email: string; } | null; feature: { id: string; name: string; description?: string | null | undefined; } | null; product: { id: string; name: string; key?: string | undefined; }; timeLogs?: { id: string; description: string | null; date: string; hours: number; isActive: boolean; }[] | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { id: string; key: string; description: string | null; status: "IN_PROGRESS" | "REVIEW" | "COMPLETED" | "CANCELLED" | "PLANNED"; priority: "LOW" | "MEDIUM" | "HIGH" | "URGENT"; estimatedHours: number | null; actualHours: number | null; name: string; product: { id: string; name: string; key?: string | undefined; }; acceptanceCriteria: string | null; progress: number; tickets?: { id: string; key: string; title: string; description: string | null; aiPrompt: string | null; generatedCode: string | null; implementationDetails: string | null; status: "TODO" | "IN_PROGRESS" | "REVIEW" | "COMPLETED" | "CANCELLED" | "BLOCKED"; type: "TASK" | "BUG" | "FEATURE_REQUEST" | "IMPROVEMENT"; priority: "LOW" | "MEDIUM" | "HIGH" | "URGENT"; estimatedHours: number | null; actualHours: number | null; startedAt: string | null; completedAt: string | null; createdAt: string; updatedAt: string; assignedTo: { id: string; name: string; email: string; } | null; feature: { id: string; name: string; description?: string | null | undefined; } | null; product: { id: string; name: string; key?: string | undefined; }; timeLogs?: { id: string; description: string | null; date: string; hours: number; isActive: boolean; }[] | undefined; }[] | undefined; }, { id: string; key: string; description: string | null; status: "IN_PROGRESS" | "REVIEW" | "COMPLETED" | "CANCELLED" | "PLANNED"; priority: "LOW" | "MEDIUM" | "HIGH" | "URGENT"; estimatedHours: number | null; actualHours: number | null; name: string; product: { id: string; name: string; key?: string | undefined; }; acceptanceCriteria: string | null; progress: number; tickets?: { id: string; key: string; title: string; description: string | null; aiPrompt: string | null; generatedCode: string | null; implementationDetails: string | null; status: "TODO" | "IN_PROGRESS" | "REVIEW" | "COMPLETED" | "CANCELLED" | "BLOCKED"; type: "TASK" | "BUG" | "FEATURE_REQUEST" | "IMPROVEMENT"; priority: "LOW" | "MEDIUM" | "HIGH" | "URGENT"; estimatedHours: number | null; actualHours: number | null; startedAt: string | null; completedAt: string | null; createdAt: string; updatedAt: string; assignedTo: { id: string; name: string; email: string; } | null; feature: { id: string; name: string; description?: string | null | undefined; } | null; product: { id: string; name: string; key?: string | undefined; }; timeLogs?: { id: string; description: string | null; date: string; hours: number; isActive: boolean; }[] | undefined; }[] | undefined; }>; export declare const ProductSchema: z.ZodObject<{ id: z.ZodString; key: z.ZodString; name: z.ZodString; description: z.ZodNullable<z.ZodString>; status: z.ZodEnum<["PLANNING", "IN_DEVELOPMENT", "TESTING", "LAUNCHED", "MAINTENANCE", "ARCHIVED"]>; progress: z.ZodNumber; targetDate: z.ZodNullable<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; key: string; description: string | null; status: "PLANNING" | "IN_DEVELOPMENT" | "TESTING" | "LAUNCHED" | "MAINTENANCE" | "ARCHIVED"; name: string; progress: number; targetDate: string | null; }, { id: string; key: string; description: string | null; status: "PLANNING" | "IN_DEVELOPMENT" | "TESTING" | "LAUNCHED" | "MAINTENANCE" | "ARCHIVED"; name: string; progress: number; targetDate: string | null; }>; export declare const UserSchema: z.ZodObject<{ id: z.ZodString; name: z.ZodString; email: z.ZodString; role: z.ZodEnum<["ADMIN", "MEMBER"]>; organizationId: z.ZodString; avatar: z.ZodNullable<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; name: string; email: string; role: "ADMIN" | "MEMBER"; organizationId: string; avatar: string | null; }, { id: string; name: string; email: string; role: "ADMIN" | "MEMBER"; organizationId: string; avatar: string | null; }>; export declare const TimeLogSchema: z.ZodObject<{ id: z.ZodString; description: z.ZodNullable<z.ZodString>; hours: z.ZodNumber; date: z.ZodString; startedAt: z.ZodNullable<z.ZodString>; endedAt: z.ZodNullable<z.ZodString>; isActive: z.ZodBoolean; ticket: z.ZodNullable<z.ZodObject<{ id: z.ZodString; title: z.ZodString; key: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; title: string; key?: string | undefined; }, { id: string; title: string; key?: string | undefined; }>>; feature: z.ZodNullable<z.ZodObject<{ id: z.ZodString; name: z.ZodString; key: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; name: string; key?: string | undefined; }, { id: string; name: string; key?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { id: string; description: string | null; date: string; startedAt: string | null; feature: { id: string; name: string; key?: string | undefined; } | null; hours: number; isActive: boolean; endedAt: string | null; ticket: { id: string; title: string; key?: string | undefined; } | null; }, { id: string; description: string | null; date: string; startedAt: string | null; feature: { id: string; name: string; key?: string | undefined; } | null; hours: number; isActive: boolean; endedAt: string | null; ticket: { id: string; title: string; key?: string | undefined; } | null; }>; export type Ticket = z.infer<typeof TicketSchema>; export type Feature = z.infer<typeof FeatureSchema>; export type Product = z.infer<typeof ProductSchema>; export type User = z.infer<typeof UserSchema>; export type TimeLog = z.infer<typeof TimeLogSchema>; export declare const GetTasksArgsSchema: z.ZodObject<{ status: z.ZodOptional<z.ZodEnum<["TODO", "IN_PROGRESS", "REVIEW", "COMPLETED", "CANCELLED", "BLOCKED"]>>; priority: z.ZodOptional<z.ZodEnum<["LOW", "MEDIUM", "HIGH", "URGENT"]>>; productId: z.ZodOptional<z.ZodString>; featureId: z.ZodOptional<z.ZodString>; limit: z.ZodDefault<z.ZodNumber>; }, "strip", z.ZodTypeAny, { limit: number; status?: "TODO" | "IN_PROGRESS" | "REVIEW" | "COMPLETED" | "CANCELLED" | "BLOCKED" | undefined; priority?: "LOW" | "MEDIUM" | "HIGH" | "URGENT" | undefined; productId?: string | undefined; featureId?: string | undefined; }, { status?: "TODO" | "IN_PROGRESS" | "REVIEW" | "COMPLETED" | "CANCELLED" | "BLOCKED" | undefined; priority?: "LOW" | "MEDIUM" | "HIGH" | "URGENT" | undefined; productId?: string | undefined; featureId?: string | undefined; limit?: number | undefined; }>; export declare const StartTaskArgsSchema: z.ZodObject<{ taskId: z.ZodString; notes: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { taskId: string; notes?: string | undefined; }, { taskId: string; notes?: string | undefined; }>; export declare const CompleteTaskArgsSchema: z.ZodObject<{ taskId: z.ZodString; completionNotes: z.ZodOptional<z.ZodString>; timeSpent: z.ZodOptional<z.ZodNumber>; codeChanges: z.ZodOptional<z.ZodString>; implementationDetails: z.ZodOptional<z.ZodString>; testResults: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { taskId: string; implementationDetails?: string | undefined; completionNotes?: string | undefined; timeSpent?: number | undefined; codeChanges?: string | undefined; testResults?: string | undefined; }, { taskId: string; implementationDetails?: string | undefined; completionNotes?: string | undefined; timeSpent?: number | undefined; codeChanges?: string | undefined; testResults?: string | undefined; }>; export declare const CreateTaskArgsSchema: z.ZodObject<{ title: z.ZodString; description: z.ZodOptional<z.ZodString>; featureId: z.ZodOptional<z.ZodString>; productId: z.ZodString; priority: z.ZodDefault<z.ZodEnum<["LOW", "MEDIUM", "HIGH", "URGENT"]>>; type: z.ZodDefault<z.ZodEnum<["TASK", "BUG", "FEATURE_REQUEST", "IMPROVEMENT"]>>; status: z.ZodDefault<z.ZodEnum<["TODO", "IN_PROGRESS", "REVIEW", "COMPLETED", "CANCELLED"]>>; estimatedHours: z.ZodOptional<z.ZodNumber>; assignedToId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; status: "TODO" | "IN_PROGRESS" | "REVIEW" | "COMPLETED" | "CANCELLED"; type: "TASK" | "BUG" | "FEATURE_REQUEST" | "IMPROVEMENT"; priority: "LOW" | "MEDIUM" | "HIGH" | "URGENT"; productId: string; description?: string | undefined; estimatedHours?: number | undefined; featureId?: string | undefined; assignedToId?: string | undefined; }, { title: string; productId: string; description?: string | undefined; status?: "TODO" | "IN_PROGRESS" | "REVIEW" | "COMPLETED" | "CANCELLED" | undefined; type?: "TASK" | "BUG" | "FEATURE_REQUEST" | "IMPROVEMENT" | undefined; priority?: "LOW" | "MEDIUM" | "HIGH" | "URGENT" | undefined; estimatedHours?: number | undefined; featureId?: string | undefined; assignedToId?: string | undefined; }>; export declare const GetFeaturesArgsSchema: z.ZodObject<{ productId: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodEnum<["PLANNED", "IN_PROGRESS", "REVIEW", "COMPLETED", "CANCELLED"]>>; includeTickets: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { includeTickets: boolean; status?: "IN_PROGRESS" | "REVIEW" | "COMPLETED" | "CANCELLED" | "PLANNED" | undefined; productId?: string | undefined; }, { status?: "IN_PROGRESS" | "REVIEW" | "COMPLETED" | "CANCELLED" | "PLANNED" | undefined; productId?: string | undefined; includeTickets?: boolean | undefined; }>; export declare const BreakdownFeatureArgsSchema: z.ZodObject<{ featureId: z.ZodString; additionalContext: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { featureId: string; additionalContext?: string | undefined; }, { featureId: string; additionalContext?: string | undefined; }>; export declare const LogTimeArgsSchema: z.ZodObject<{ taskId: z.ZodOptional<z.ZodString>; featureId: z.ZodOptional<z.ZodString>; hours: z.ZodNumber; description: z.ZodOptional<z.ZodString>; date: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { hours: number; description?: string | undefined; date?: string | undefined; featureId?: string | undefined; taskId?: string | undefined; }, { hours: number; description?: string | undefined; date?: string | undefined; featureId?: string | undefined; taskId?: string | undefined; }>; export declare const UpdateTaskImplementationArgsSchema: z.ZodObject<{ taskId: z.ZodString; implementationDetails: z.ZodString; testResults: z.ZodOptional<z.ZodString>; codeChanges: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { implementationDetails: string; taskId: string; codeChanges?: string | undefined; testResults?: string | undefined; }, { implementationDetails: string; taskId: string; codeChanges?: string | undefined; testResults?: string | undefined; }>; export declare const GetDevelopmentGuidanceArgsSchema: z.ZodObject<{ context: z.ZodOptional<z.ZodEnum<["task_implementation", "testing", "code_review", "debugging", "general"]>>; taskId: z.ZodOptional<z.ZodString>; additionalContext: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { taskId?: string | undefined; additionalContext?: string | undefined; context?: "task_implementation" | "testing" | "code_review" | "debugging" | "general" | undefined; }, { taskId?: string | undefined; additionalContext?: string | undefined; context?: "task_implementation" | "testing" | "code_review" | "debugging" | "general" | undefined; }>; export type GetTasksArgs = z.infer<typeof GetTasksArgsSchema>; export type StartTaskArgs = z.infer<typeof StartTaskArgsSchema>; export type CompleteTaskArgs = z.infer<typeof CompleteTaskArgsSchema>; export type CreateTaskArgs = z.infer<typeof CreateTaskArgsSchema>; export type GetFeaturesArgs = z.infer<typeof GetFeaturesArgsSchema>; export type BreakdownFeatureArgs = z.infer<typeof BreakdownFeatureArgsSchema>; export type LogTimeArgs = z.infer<typeof LogTimeArgsSchema>; export type UpdateTaskImplementationArgs = z.infer<typeof UpdateTaskImplementationArgsSchema>; export type GetDevelopmentGuidanceArgs = z.infer<typeof GetDevelopmentGuidanceArgsSchema>; //# sourceMappingURL=types.d.ts.map