Workflow éditeur avec MCP : implémenter une tâche et enregistrer la progression dans Corcava
Utilisez MCP depuis Cursor pour implémenter des tâches et enregistrer automatiquement l'avancement dans Corcava. Ce workflow centré sur l'IDE montre comment ouvrir une tâche, générer un plan d'implémentation, réaliser le travail et mettre à jour le statut — sans quitter l'éditeur.
Ce que ce workflow permet
Le workflow Cursor avec MCP crée une boucle de développement fluide :
Résultats clés
- Flux tâche → code : Ouvrir une tâche et commencer à l'implémenter tout de suite
- Plan d'implémentation : Générer des plans pas à pas à partir des descriptions de tâches
- Suivi d'avancement : Enregistrer l'avancement automatiquement en travaillant
- Mises à jour de statut : Mettre à jour le statut de la tâche quand le travail est terminé
- Intégration IDE : Tout se fait dans Cursor, sans changer de contexte
Prérequis
Avant d'utiliser ce workflow, assurez-vous d'avoir :
- Cursor avec le serveur MCP Corcava configuré
- Une clé API avec accès lecture et écriture aux tâches
- Une tâche Corcava à implémenter
- Un dépôt de code ouvert dans Cursor
Workflow pas à pas
Étape 1 : Ouvrir la tâche dans Corcava
Start by retrieving the task details:
Open Task Prompt
What the AI does:
- Calls
get_taskto retrieve task details - Reads task description and comments
- Extracts acceptance criteria and requirements
- Presents task information for implementation
Step 2: Generate Implementation Plan
Create a step-by-step plan based on the task:
Implementation Plan Prompt
What the AI does:
- Analyzes task requirements
- Reviews codebase structure (if accessible)
- Creates step-by-step implementation plan
- Identifies files and code changes needed
Step 3: Execute Implementation
Implement the plan step by step:
Execute Implementation Prompt
What the AI does:
- Creates or modifies files according to plan
- Implements code changes
- Follows the step-by-step plan
- Ensures code meets task requirements
Step 4: Log Progress to Corcava
Add a progress comment as you work:
Log Progress Prompt
What the AI does:
- Drafts progress comment with implementation details
- Shows preview for approval
- Waits for confirmation token
- Calls
add_task_commentafter approval
Step 5: Update Task Status
Update task status when implementation is complete:
Update Status Prompt (Requires Approval)
What the AI does:
- Drafts status update and completion comment
- Shows preview of changes
- Waits for confirmation token
- Calls
update_taskandadd_task_commentafter approval
Complete Workflow Prompts
Here are complete, copy-paste ready prompts for Cursor users:
Full Cursor Implementation Workflow
Use this when: You want to implement a task end-to-end in Cursor
Quick Task Implementation
Use this when: You want a quick implementation workflow
Log Progress Only
Use this when: You've already implemented and just need to log progress
Workflow Variants
Variant 1: Feature Implementation
Full feature implementation workflow:
What happens: AI implements full feature with testing and progress updates
Variant 2: Bug Fix Workflow
Bug fix implementation workflow:
What happens: AI fixes bug and logs clear progress updates
Variant 3: Refactoring Workflow
Refactoring task workflow:
What happens: AI performs refactoring with progress tracking
Example: Complete Cursor Implementation Session
Here's a real example of how a Cursor implementation session flows:
User Prompt
AI Response (Task Details)
Task #123: Implement user authentication
Description: Add user login/logout functionality with email and password authentication.
Acceptance Criteria:
- User can register with email and password
- User can login with credentials
- User can logout
- Session management works correctly
Status: In Progress
AI Implementation Plan
Implementation Plan:
- Create authentication controller:
app/Http/Controllers/AuthController.php - Create login view:
resources/views/auth/login.blade.php - Create register view:
resources/views/auth/register.blade.php - Add routes:
routes/web.php - Implement session management middleware
AI Implementation (Code Changes)
✅ Created app/Http/Controllers/AuthController.php
✅ Created resources/views/auth/login.blade.php
✅ Created resources/views/auth/register.blade.php
✅ Updated routes/web.php with auth routes
✅ Implemented session management
AI Progress Comment Preview
Progress Comment (Ready to Post):
"Implementation in progress: Created authentication controller, login/register views, and routes. Files modified: AuthController.php, login.blade.php, register.blade.php, web.php. Next: Test login/logout functionality."
Type 'CONFIRM' or 'YES, ADD COMMENT' to post this comment.
User Approval
AI Action (After Approval)
✅ Posted progress comment to task #123
Implementation is in progress. Continue when ready to mark as complete.
Safety Patterns
✅ Approval-Based Updates
This workflow uses explicit approval for all write operations:
- Read-first: Always open and review task before implementing
- Preview comments: Show comment text before posting
- Preview status changes: Show status update before applying
- Confirmation tokens: Require "CONFIRM" or "YES, ADD COMMENT" / "YES, UPDATE STATUS"
- Code review: Implementation happens in your editor where you can review
Troubleshooting
Task Not Found
Symptom: Cannot retrieve task details
Possible causes:
- Task ID incorrect
- Task in different workspace
- API key lacks read access
Fix: Verify task ID and API key permissions. Check workspace access.
Implementation Plan Too Vague
Symptom: Plan doesn't specify files or changes
Possible causes:
- Task description lacks detail
- Codebase structure not accessible
Fix: Ask for more specific plan: "Generate detailed plan with exact file paths and code changes"
Comments Not Being Posted
Symptom: AI doesn't post comments even after approval
Possible causes:
- Confirmation token not recognized
- API key lacks write permissions
Fix: Use exact confirmation: "CONFIRM" or "YES, ADD COMMENT". Verify API key has write access.
Related Tools
This workflow uses these Corcava MCP tools:
get_task
Open and read task details
add_task_comment
Log progress as comments
update_task
Update task status when complete
list_task_comments
Review previous progress before updating
Related Use Cases
Commits to Tasks
Map commits to tasks and log changes
Time Tracking
Track time while implementing tasks
Implement Tasks in Cursor
Connect Cursor to Corcava and implement tasks without leaving your editor