agentic-workflows-blueprint.workflow.mcp-linear-sync
Goal
Execute a controlled synchronization in Linear using the prevalidated MCP plan.
Scope
- Applies to: creating/updating Linear milestones and issues via MCP.
- Does not cover: planning from scratch (use
mcp-linear-plannerfirst).
Triggers
- "Run Linear sync"
- "Apply MCP plan to Linear"
- "Create/update issues in Linear from workflow"
Inputs
linearMcpPlan(frommcp-linear-planner)teamId/projectId(if required by selected actions)issuePayloads(titles, descriptions, parent/milestone links)dryRun(optional boolean)changeWindow(optional): execution window to respect during write callsriskClass(optional): risk level for execution controlsrollbackTicket(optional): rollback reference for handoff and incident traceability
Invariants
- Re-check tool schema before each distinct MCP tool usage.
- Do not run if preflight has unresolved blockers.
- Keep call sequence deterministic and log each action outcome.
- On error, return actionable remediation instead of silent retries.
- If outside
changeWindow, stop and returnmanual_intervention.
Procedure
- Validate
linearMcpPlanand unresolved blockers. - If
dryRun = true, render planned calls without mutating state. - Validate operational controls (
changeWindow,riskClass,rollbackTicket) from plan or explicit input. - Execute calls in order:
- context fetch calls (
list_teams,list_projects,list_milestones); - write calls (
create_milestone,create_issue,update_issue).
- Record each action with status (
success,failed,skipped). - Produce a final sync report with created/updated entities, failures, and operational metadata.
Outputs
syncReportwith action-by-action status.createdEntitiesandupdatedEntitieslists.retryPlanfor failed actions (if any).
Review gate
- No call executed without matching schema validation.
- Sync report clearly maps inputs to resulting Linear entities.
- Failures include exact next-step remediation.
- Execution respects change window constraints when provided.
References
../../SKILL.md../mcp-linear-planner/SKILL.md- Interactive HTML View