1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
//! # Batch request processing for MCP server
//!
//! This module provides batch operation support, allowing multiple tool calls
//! to be executed in a single request with dependency management and parallel execution.
//!
//! ## Features
//!
//! - **Parallel Execution**: Independent operations run concurrently
//! - **Dependency Management**: Specify operation dependencies with DAG validation
//! - **Partial Results**: Return successful results even if some operations fail
//! - **Performance**: Reduce network overhead by 60-80% for multi-tool workflows
//!
//! ## Example
//!
//! ```json
//! {
//! "jsonrpc": "2.0",
//! "id": 1,
//! "method": "batch/execute",
//! "params": {
//! "operations": [
//! {
//! "id": "query1",
//! "tool": "query_memory",
//! "arguments": {
//! "query": "authentication patterns",
//! "domain": "web-api"
//! }
//! },
//! {
//! "id": "analyze1",
//! "tool": "analyze_patterns",
//! "arguments": {
//! "task_type": "authentication"
//! },
//! "depends_on": ["query1"]
//! }
//! ],
//! "mode": "parallel"
//! }
//! }
//! ```
pub use DependencyGraph;
pub use BatchExecutor;
pub use ;