UNPKG

mcp-codesentry

Version:

CodeSentry MCP - AI-powered code review assistant with 5 specialized review tools for security, best practices, and comprehensive code analysis

38 lines (33 loc) 1.32 kB
# Task ID: 11 # Title: Implement Task Context Management # Status: pending # Dependencies: 3, 6 # Priority: medium # Description: Develop functionality to maintain task context between pre-task and post-task reviews. # Details: 1. Implement TaskContextManager class: ```typescript class TaskContextManager { constructor(private storageManager: StorageManager) {} async storeTaskContext(taskId: string, context: { taskDescription: string, implementationPlan: string, planReviewResponse: ReviewResponse, codebaseSnapshotPath: string }): Promise<void> { // Store task context } async getTaskContext(taskId: string): Promise<TaskContext | null> { // Retrieve task context } async linkImplementationReview(taskId: string, implementationReview: ReviewResponse): Promise<void> { // Link implementation review to existing task context } } ``` 2. Define TaskContext interface 3. Implement persistence mechanism 4. Add task context cleanup policy 5. Implement context retrieval optimization # Test Strategy: Test storing and retrieving task contexts with various data. Verify linking of implementation reviews to existing contexts. Test context cleanup policy. Measure performance of context retrieval operations.