Corcava logo Le seul outil métier dont vous avez besoin Corcava
Menu

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 :

Workflow pas à pas

Étape 1 : Ouvrir la tâche dans Corcava

Start by retrieving the task details:

Open Task Prompt

"Open task #[ID] from Corcava: - Get the full task details including description and comments - Show me: task title, description, acceptance criteria, and current status - Check if there are any related files or code references in comments I want to implement this task."

What the AI does:

  1. Calls get_task to retrieve task details
  2. Reads task description and comments
  3. Extracts acceptance criteria and requirements
  4. Presents task information for implementation

Step 2: Generate Implementation Plan

Create a step-by-step plan based on the task:

Implementation Plan Prompt

"Based on task #[ID], generate an implementation plan: - Break down the task into concrete steps - Identify which files need to be created or modified - List the code changes needed - Show me: step-by-step plan with file paths and changes Keep the plan actionable and specific to this codebase."

What the AI does:

  1. Analyzes task requirements
  2. Reviews codebase structure (if accessible)
  3. Creates step-by-step implementation plan
  4. Identifies files and code changes needed

Step 3: Execute Implementation

Implement the plan step by step:

Execute Implementation Prompt

"Now implement the plan for task #[ID]: - Execute each step of the implementation plan - Create or modify files as needed - Write code that meets the acceptance criteria - Test the changes if possible Work through the plan systematically."

What the AI does:

  1. Creates or modifies files according to plan
  2. Implements code changes
  3. Follows the step-by-step plan
  4. Ensures code meets task requirements

Step 4: Log Progress to Corcava

Add a progress comment as you work:

Log Progress Prompt

"Add a progress comment to task #[ID]: - Comment: 'Implementation in progress: [what was done]. Files modified: [list]. Next: [next steps].' - Show me the comment text first for approval - Wait for my confirmation before posting I must type 'CONFIRM' or 'YES, ADD COMMENT' before you post."

What the AI does:

  1. Drafts progress comment with implementation details
  2. Shows preview for approval
  3. Waits for confirmation token
  4. Calls add_task_comment after approval

Step 5: Update Task Status

Update task status when implementation is complete:

Update Status Prompt (Requires Approval)

"When task #[ID] implementation is complete: - Update task status to 'done' (or appropriate status) - Add a completion comment: 'Implementation complete. Changes: [summary]. Ready for review.' - Show me the status change and comment before applying - Wait for my 'CONFIRM' or 'YES, UPDATE STATUS' before updating Only update after I explicitly approve."

What the AI does:

  1. Drafts status update and completion comment
  2. Shows preview of changes
  3. Waits for confirmation token
  4. Calls update_task and add_task_comment after approval

Complete Workflow Prompts

Here are complete, copy-paste ready prompts for Cursor users:

Full Cursor Implementation Workflow

"Help me implement task #[ID] from Corcava: 1. Open the task and show me the details (title, description, acceptance criteria) 2. Generate a step-by-step implementation plan based on the task requirements 3. Execute the implementation plan, creating/modifying files as needed 4. As you work, add a progress comment: 'Implementation in progress: [what was done]. Files: [list]. Next: [next steps].' (wait for my 'CONFIRM' before posting) 5. When complete, update task status to 'done' and add completion comment (wait for my 'CONFIRM' before updating) Important: Always preview comments and status changes before applying, and only proceed after explicit confirmation."

Use this when: You want to implement a task end-to-end in Cursor

Quick Task Implementation

"Implement task #[ID]. Open it, create a plan, execute it, then log progress back to Corcava. Show me progress comment before posting (wait for 'CONFIRM')."

Use this when: You want a quick implementation workflow

Log Progress Only

"Add a progress comment to task #[ID]: '[what I accomplished]. Files changed: [list]. Next: [next steps].' Show me the comment first, then wait for my 'CONFIRM' before posting."

Use this when: You've already implemented and just need to log progress

Workflow Variants

Variant 1: Feature Implementation

Full feature implementation workflow:

"Implement feature task #[ID]: - Open task and review requirements - Generate implementation plan (files, components, tests) - Implement feature with tests - Log progress: 'Feature implementation: [done]. Files: [list]. Tests: [status].' - Update status when complete Follow full workflow with progress logging."

What happens: AI implements full feature with testing and progress updates

Variant 2: Bug Fix Workflow

Bug fix implementation workflow:

"Fix bug task #[ID]: - Open task and understand the bug - Identify root cause and fix - Test the fix - Log progress: 'Bug fix: [issue]. Fix: [solution]. Files: [list]. Tested: [yes/no].' - Update status to 'done' when fixed Focus on quick fix with clear progress logging."

What happens: AI fixes bug and logs clear progress updates

Variant 3: Refactoring Workflow

Refactoring task workflow:

"Refactor task #[ID]: - Open task and understand refactoring scope - Plan refactoring steps (which files, what changes) - Execute refactoring systematically - Log progress: 'Refactoring: [scope]. Files: [list]. Tests passing: [yes/no].' - Update status when complete Track refactoring progress with detailed comments."

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

"Help me implement task #123 from Corcava."

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:

  1. Create authentication controller: app/Http/Controllers/AuthController.php
  2. Create login view: resources/views/auth/login.blade.php
  3. Create register view: resources/views/auth/register.blade.php
  4. Add routes: routes/web.php
  5. 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

"CONFIRM"

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:

Related Use Cases

Implement Tasks in Cursor

Connect Cursor to Corcava and implement tasks without leaving your editor