You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/api-reference.md
+35-1Lines changed: 35 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,6 +52,7 @@ Modify existing tasks with validation and relationship preservation
52
52
- Complexity refinement
53
53
- Tag management
54
54
- Relationship preservation
55
+
-**Concurrent access protection**: Prevents conflicts when multiple agents work in parallel
55
56
56
57
### `get_task`
57
58
Retrieve individual task details with optional related entity inclusion
@@ -76,6 +77,7 @@ Remove tasks with proper dependency cleanup
76
77
- Soft delete support
77
78
- Section cleanup
78
79
- Relationship validation
80
+
-**Concurrent access protection**: Prevents conflicts during deletion operations
79
81
80
82
### `search_tasks`
81
83
Find tasks using flexible filtering by status, priority, tags, and text queries
@@ -135,6 +137,7 @@ Modify existing features while preserving task relationships
135
137
- Priority adjustments
136
138
- Task relationship preservation
137
139
- Tag management
140
+
-**Concurrent access protection**: Prevents conflicts when multiple agents work in parallel
138
141
139
142
### `get_feature`
140
143
Retrieve feature details with optional task listings and progressive loading
@@ -159,6 +162,7 @@ Remove features with configurable task handling (cascade or orphan)
159
162
- Force deletion override
160
163
- Section cleanup
161
164
- Relationship validation
165
+
-**Concurrent access protection**: Prevents conflicts during deletion operations
162
166
163
167
### `search_features`
164
168
Find features using comprehensive filtering and text search capabilities
@@ -213,6 +217,7 @@ Modify existing projects with relationship preservation and validation
213
217
- Priority adjustments
214
218
- Relationship preservation
215
219
- Tag management
220
+
-**Concurrent access protection**: Prevents conflicts when multiple agents work in parallel
216
221
217
222
### `delete_project`
218
223
Remove projects with configurable cascade behavior for contained entities
@@ -225,6 +230,7 @@ Remove projects with configurable cascade behavior for contained entities
225
230
- Hard delete vs soft delete
226
231
- Comprehensive cleanup
227
232
- Relationship validation
233
+
-**Concurrent access protection**: Prevents conflicts during deletion operations
228
234
229
235
### `search_projects`
230
236
Find projects using advanced filtering, tagging, and full-text search capabilities
@@ -597,4 +603,32 @@ Use bulk operations when possible:
597
603
- Apply workflow prompts for structured process guidance
598
604
- Combine multiple tools in logical sequences for complex operations
599
605
600
-
This comprehensive API provides all the tools needed for sophisticated project management workflows while maintaining context efficiency and supporting AI-driven automation.
606
+
## Concurrent Access Protection
607
+
608
+
The MCP Task Orchestrator includes built-in protection against sub-agent collisions when multiple AI agents work in parallel. The locking system automatically prevents conflicts on update and delete operations for projects, features, and tasks.
609
+
610
+
### How It Works
611
+
612
+
-**Automatic Protection**: No additional configuration needed - protection is built into the tools
613
+
-**Conflict Detection**: Operations check for conflicts before proceeding
-**Timeout Protection**: Operations automatically expire after 2 minutes to prevent deadlocks from crashed agents
616
+
617
+
### Protected Operations
618
+
619
+
The following tools include concurrent access protection:
620
+
-`update_task` and `delete_task`
621
+
-`update_feature` and `delete_feature`
622
+
-`update_project` and `delete_project`
623
+
624
+
### Handling Conflicts
625
+
626
+
When a conflict is detected, the tool returns an error response indicating that another operation is currently active on the same entity. The recommended approach is to wait briefly and retry the operation.
627
+
628
+
### Best Practices
629
+
630
+
-**Parallel Workflows**: Multiple agents can safely work on different entities simultaneously
631
+
-**Retry Logic**: Implement simple retry logic for conflict scenarios
632
+
-**Entity Separation**: Distribute work across different projects, features, or tasks to minimize conflicts
633
+
634
+
This comprehensive API provides all the tools needed for sophisticated project management workflows while maintaining context efficiency, supporting AI-driven automation, and ensuring safe parallel operation.
0 commit comments