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.
Files changed (42) hide show
  1. package/.env.example +6 -3
  2. package/README.md +96 -94
  3. package/docs/API.md +703 -1562
  4. package/docs/ARCHITECTURE.md +13 -11
  5. package/docs/EXAMPLES.md +241 -667
  6. package/docs/PROVIDERS.md +104 -79
  7. package/package.json +1 -1
  8. package/src/async/asyncJobStore.js +2 -2
  9. package/src/async/jobRunner.js +6 -1
  10. package/src/async/providerStreamNormalizer.js +59 -1
  11. package/src/config.js +4 -3
  12. package/src/prompts/helpPrompt.js +43 -61
  13. package/src/providers/anthropic.js +0 -31
  14. package/src/providers/claude.js +0 -14
  15. package/src/providers/codex.js +15 -21
  16. package/src/providers/copilot.js +36 -202
  17. package/src/providers/deepseek.js +73 -53
  18. package/src/providers/gemini-cli.js +0 -3
  19. package/src/providers/google.js +10 -27
  20. package/src/providers/interface.js +0 -3
  21. package/src/providers/mistral.js +169 -63
  22. package/src/providers/openai-compatible.js +113 -28
  23. package/src/providers/openai.js +14 -66
  24. package/src/providers/openrouter-discovery.js +308 -0
  25. package/src/providers/openrouter.js +452 -282
  26. package/src/providers/xai.js +298 -280
  27. package/src/services/summarizationService.js +4 -14
  28. package/src/systemPrompts.js +19 -2
  29. package/src/tools/cancelJob.js +7 -1
  30. package/src/tools/chat.js +957 -995
  31. package/src/tools/checkStatus.js +1 -0
  32. package/src/tools/index.js +2 -6
  33. package/src/tools/modes/parallel.js +488 -0
  34. package/src/tools/modes/roundtable.js +495 -0
  35. package/src/tools/modes/streamShared.js +31 -0
  36. package/src/utils/contextProcessor.js +1 -38
  37. package/src/utils/conversationExporter.js +6 -26
  38. package/src/utils/formatStatus.js +46 -19
  39. package/src/utils/modelRouting.js +207 -4
  40. package/src/providers/openrouter-endpoints-client.js +0 -220
  41. package/src/tools/consensus.js +0 -1813
  42. package/src/tools/conversation.js +0 -1233
@@ -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 # Single-provider chat tool
21
- │ └── consensus.js # Multi-provider consensus tool
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 'consensus':
98
- return await consensusTool(args);
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 (optional)
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-2.5-pro',
301
- 'grok': 'grok-4-0709'
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 Tool**: Executes all providers simultaneously
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