converse-mcp-server 2.29.2 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.example +6 -3
- package/README.md +96 -94
- package/docs/API.md +703 -1562
- package/docs/ARCHITECTURE.md +13 -11
- package/docs/EXAMPLES.md +241 -667
- package/docs/PROVIDERS.md +104 -79
- package/package.json +1 -1
- package/src/async/asyncJobStore.js +2 -2
- package/src/async/jobRunner.js +6 -1
- package/src/async/providerStreamNormalizer.js +59 -1
- package/src/config.js +4 -3
- package/src/prompts/helpPrompt.js +43 -61
- package/src/providers/anthropic.js +0 -31
- package/src/providers/claude.js +0 -14
- package/src/providers/codex.js +15 -21
- package/src/providers/copilot.js +36 -202
- package/src/providers/deepseek.js +73 -53
- package/src/providers/gemini-cli.js +0 -3
- package/src/providers/google.js +10 -27
- package/src/providers/interface.js +0 -3
- package/src/providers/mistral.js +169 -63
- package/src/providers/openai-compatible.js +113 -28
- package/src/providers/openai.js +14 -66
- package/src/providers/openrouter-discovery.js +308 -0
- package/src/providers/openrouter.js +452 -282
- package/src/providers/xai.js +298 -280
- package/src/services/summarizationService.js +4 -14
- package/src/systemPrompts.js +19 -2
- package/src/tools/cancelJob.js +7 -1
- package/src/tools/chat.js +957 -995
- package/src/tools/checkStatus.js +1 -0
- package/src/tools/index.js +2 -6
- package/src/tools/modes/parallel.js +488 -0
- package/src/tools/modes/roundtable.js +495 -0
- package/src/tools/modes/streamShared.js +31 -0
- package/src/utils/contextProcessor.js +1 -38
- package/src/utils/conversationExporter.js +6 -26
- package/src/utils/formatStatus.js +46 -19
- package/src/utils/modelRouting.js +207 -4
- package/src/providers/openrouter-endpoints-client.js +0 -220
- package/src/tools/consensus.js +0 -1813
- package/src/tools/conversation.js +0 -1233
package/docs/ARCHITECTURE.md
CHANGED
|
@@ -17,8 +17,8 @@ src/
|
|
|
17
17
|
│ ├── google.js # Google/Gemini provider implementation
|
|
18
18
|
│ └── xai.js # X.AI/Grok provider implementation
|
|
19
19
|
├── tools/ # MCP tool implementations
|
|
20
|
-
│ ├── chat.js #
|
|
21
|
-
│ └──
|
|
20
|
+
│ ├── chat.js # Unified chat tool (chat/consensus/roundtable modes)
|
|
21
|
+
│ └── modes/ # parallel.js + roundtable.js execution engines
|
|
22
22
|
├── utils/ # Utility functions
|
|
23
23
|
│ ├── logger.js # Structured logging
|
|
24
24
|
│ ├── context.js # File and image processing
|
|
@@ -93,9 +93,11 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
93
93
|
|
|
94
94
|
switch (name) {
|
|
95
95
|
case 'chat':
|
|
96
|
-
return await chatTool(args);
|
|
97
|
-
case '
|
|
98
|
-
return await
|
|
96
|
+
return await chatTool(args); // mode: chat | consensus | roundtable
|
|
97
|
+
case 'check_status':
|
|
98
|
+
return await checkStatusTool(args);
|
|
99
|
+
case 'cancel_job':
|
|
100
|
+
return await cancelJobTool(args);
|
|
99
101
|
default:
|
|
100
102
|
throw new McpError(ErrorCode.MethodNotFound, `Tool not found: ${name}`);
|
|
101
103
|
}
|
|
@@ -246,7 +248,7 @@ Continuation Management
|
|
|
246
248
|
Response to Client
|
|
247
249
|
```
|
|
248
250
|
|
|
249
|
-
### Multi-Provider Execution (Consensus)
|
|
251
|
+
### Multi-Provider Execution (Consensus mode)
|
|
250
252
|
```
|
|
251
253
|
User Request
|
|
252
254
|
↓
|
|
@@ -262,7 +264,7 @@ Parallel Execution ────┬─── Provider A
|
|
|
262
264
|
↓
|
|
263
265
|
Initial Response Collection
|
|
264
266
|
↓
|
|
265
|
-
Cross-Feedback Phase
|
|
267
|
+
Cross-Feedback Phase
|
|
266
268
|
↓
|
|
267
269
|
Parallel Refinement ───┬─── Provider A (sees B,C)
|
|
268
270
|
├─── Provider B (sees A,C)
|
|
@@ -297,8 +299,8 @@ export const config = {
|
|
|
297
299
|
models: {
|
|
298
300
|
aliases: {
|
|
299
301
|
'flash': 'gemini-2.5-flash',
|
|
300
|
-
'pro': 'gemini-
|
|
301
|
-
'grok': 'grok-4
|
|
302
|
+
'pro': 'gemini-3.1-pro-preview',
|
|
303
|
+
'grok': 'grok-4.5'
|
|
302
304
|
}
|
|
303
305
|
}
|
|
304
306
|
};
|
|
@@ -357,7 +359,7 @@ export function getContinuation(id) {
|
|
|
357
359
|
## 🚀 Performance Characteristics
|
|
358
360
|
|
|
359
361
|
### Parallel Execution
|
|
360
|
-
- **Consensus
|
|
362
|
+
- **Consensus mode**: Executes all providers simultaneously
|
|
361
363
|
- **Non-Blocking I/O**: All async operations use Promise.all()
|
|
362
364
|
- **Provider Isolation**: One provider failure doesn't affect others
|
|
363
365
|
- **Request Batching**: Multiple requests handled concurrently
|
|
@@ -474,7 +476,7 @@ function generateRequestId() {
|
|
|
474
476
|
logger.info('Processing chat request', {
|
|
475
477
|
requestId,
|
|
476
478
|
provider: 'openai',
|
|
477
|
-
model: 'gpt-5'
|
|
479
|
+
model: 'gpt-5.6'
|
|
478
480
|
});
|
|
479
481
|
```
|
|
480
482
|
|