converse-mcp-server 2.26.1 → 2.27.2
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/README.md +37 -17
- package/docs/API.md +28 -5
- package/docs/EXAMPLES.md +1112 -1112
- package/docs/PROVIDERS.md +48 -16
- package/package.json +14 -14
- package/src/providers/anthropic.js +29 -2
- package/src/providers/claude.js +100 -30
- package/src/providers/copilot.js +7 -27
- package/src/tools/chat.js +8 -1
- package/src/tools/consensus.js +8 -1
- package/src/utils/modelRouting.js +7 -0
package/README.md
CHANGED
|
@@ -161,7 +161,7 @@ Get multiple AI models to analyze the same question simultaneously. Each model c
|
|
|
161
161
|
// Asynchronous consensus (for complex analysis)
|
|
162
162
|
{
|
|
163
163
|
"prompt": "Review our system architecture and provide comprehensive recommendations",
|
|
164
|
-
"models": ["gpt-5", "gemini-2.5-pro", "claude-sonnet-4"],
|
|
164
|
+
"models": ["gpt-5", "gemini-2.5-pro", "claude-sonnet-4-6"],
|
|
165
165
|
"files": ["/path/to/architecture-docs"],
|
|
166
166
|
"async": true, // Run in background
|
|
167
167
|
"enable_cross_feedback": true
|
|
@@ -268,11 +268,12 @@ SUMMARIZATION_MODEL=gpt-5-nano # Default: gpt-5-nano
|
|
|
268
268
|
|
|
269
269
|
### Anthropic Models
|
|
270
270
|
|
|
271
|
-
- **claude-
|
|
272
|
-
- **claude-
|
|
273
|
-
- **claude-
|
|
274
|
-
- **claude-
|
|
275
|
-
- **claude-
|
|
271
|
+
- **claude-fable-5** (alias: `fable`): Most capable model for demanding reasoning and long-horizon agentic work (1M context, 128K output)
|
|
272
|
+
- **claude-opus-4-8** (alias: `opus`): Most capable Opus for complex reasoning and agentic coding (200K context, 1M via beta, 128K output)
|
|
273
|
+
- **claude-opus-4-7** / **claude-opus-4-6**: Previous Opus generations with adaptive thinking (128K output)
|
|
274
|
+
- **claude-opus-4-5** / **claude-opus-4-1**: Legacy Opus models with extended thinking (64K / 32K output)
|
|
275
|
+
- **claude-sonnet-4-6** (alias: `sonnet`): Best combination of speed and intelligence with adaptive thinking (64K output)
|
|
276
|
+
- **claude-haiku-4-5** (alias: `haiku`): Fast and intelligent for simple queries (64K output)
|
|
276
277
|
|
|
277
278
|
### Mistral Models
|
|
278
279
|
|
|
@@ -300,6 +301,14 @@ SUMMARIZATION_MODEL=gpt-5-nano # Default: gpt-5-nano
|
|
|
300
301
|
- Requires ChatGPT login or CODEX_API_KEY
|
|
301
302
|
- See [Configuration](#configuration) for sandbox and approval settings
|
|
302
303
|
|
|
304
|
+
### Claude Agent SDK Models
|
|
305
|
+
|
|
306
|
+
- **claude** (aliases: `claude-sdk`, `claude-code`): Claude via the Claude Agent SDK
|
|
307
|
+
- Defaults to Claude Fable 5; pick a specific model with `claude:fable` or `claude:opus`
|
|
308
|
+
- Uses Claude Code CLI authentication (`claude login`) - no API key needed
|
|
309
|
+
- Direct filesystem access from working directory
|
|
310
|
+
- Unknown `claude:`-prefixed names pass through to the SDK (e.g. `claude:claude-sonnet-4-6`)
|
|
311
|
+
|
|
303
312
|
## 📚 Help & Documentation
|
|
304
313
|
|
|
305
314
|
### Built-in Help
|
|
@@ -398,6 +407,13 @@ Use `"auto"` for automatic model selection, or specify exact models:
|
|
|
398
407
|
"pro"; // -> gemini-2.5-pro
|
|
399
408
|
"grok"; // -> grok-4-0709
|
|
400
409
|
"grok-4"; // -> grok-4-0709
|
|
410
|
+
"fable"; // -> claude-fable-5 (Anthropic API)
|
|
411
|
+
"opus"; // -> claude-opus-4-8 (Anthropic API)
|
|
412
|
+
|
|
413
|
+
// SDK providers (subscription-based, no API key)
|
|
414
|
+
"claude"; // -> Claude Agent SDK (Claude Fable 5)
|
|
415
|
+
"claude:opus"; // -> Claude Agent SDK (Claude Opus 4.8)
|
|
416
|
+
"copilot:codex"; // -> GitHub Copilot SDK (gpt-5.3-codex)
|
|
401
417
|
```
|
|
402
418
|
|
|
403
419
|
**Auto Model Behavior:**
|
|
@@ -405,17 +421,21 @@ Use `"auto"` for automatic model selection, or specify exact models:
|
|
|
405
421
|
- **Chat Tool**: Selects the first available provider and uses its default model
|
|
406
422
|
- **Consensus Tool**: When using `["auto"]`, automatically expands to the first 3 available providers
|
|
407
423
|
|
|
408
|
-
Provider priority order (
|
|
409
|
-
|
|
410
|
-
1.
|
|
411
|
-
2.
|
|
412
|
-
3.
|
|
413
|
-
4.
|
|
414
|
-
5.
|
|
415
|
-
6.
|
|
416
|
-
7.
|
|
417
|
-
|
|
418
|
-
|
|
424
|
+
Provider priority order (subscription-based SDK providers first, then API-key providers):
|
|
425
|
+
|
|
426
|
+
1. Codex (`codex`)
|
|
427
|
+
2. Gemini CLI (`gemini`)
|
|
428
|
+
3. Claude Agent SDK (`claude` → Claude Fable 5)
|
|
429
|
+
4. Copilot (`copilot`)
|
|
430
|
+
5. OpenAI (`gpt-5`)
|
|
431
|
+
6. Google (`gemini-pro`)
|
|
432
|
+
7. XAI (`grok-4-0709`)
|
|
433
|
+
8. Anthropic (`claude-sonnet-4-20250514`)
|
|
434
|
+
9. Mistral (`magistral-medium-2506`)
|
|
435
|
+
10. DeepSeek (`deepseek-reasoner`)
|
|
436
|
+
11. OpenRouter (`qwen/qwen3-coder`)
|
|
437
|
+
|
|
438
|
+
The system will use the first 3 providers that are available (authenticated SDK or valid API key). This enables automatic multi-model consensus without manually specifying models.
|
|
419
439
|
|
|
420
440
|
### Advanced Configuration
|
|
421
441
|
|
package/docs/API.md
CHANGED
|
@@ -547,11 +547,17 @@ When complete, `check_status` for the continuation_id renders the full lap trans
|
|
|
547
547
|
|
|
548
548
|
| Model | Alias | Context | Tokens | Features | Use Cases |
|
|
549
549
|
|-------|-------|---------|--------|----------|-----------|
|
|
550
|
-
| `claude-
|
|
551
|
-
| `claude-opus-4-
|
|
552
|
-
| `claude-
|
|
553
|
-
| `claude-
|
|
554
|
-
| `claude-
|
|
550
|
+
| `claude-fable-5` | `fable`, `fable-5` | 1M | 128K | Adaptive thinking, effort, images, caching, compaction | Most demanding reasoning, long-horizon agentic work |
|
|
551
|
+
| `claude-opus-4-8` | `opus`, `opus-4.8` | 200K (1M beta) | 128K | Adaptive thinking, effort, images, caching, compaction | Complex reasoning, agentic coding |
|
|
552
|
+
| `claude-opus-4-7` | `opus-4.7` | 200K (1M beta) | 128K | Adaptive thinking, effort, images, caching, compaction | Previous Opus generation |
|
|
553
|
+
| `claude-opus-4-6` | `opus-4.6` | 200K (1M beta) | 128K | Adaptive thinking, effort, images, caching, compaction | Previous Opus generation |
|
|
554
|
+
| `claude-opus-4-5-20251101` | `opus-4.5` | 200K | 64K | Extended thinking, effort (beta), images, caching | Legacy Opus |
|
|
555
|
+
| `claude-opus-4-1-20250805` | `opus-4.1`, `opus-4` | 200K | 32K | Extended thinking, images, caching | Legacy Opus |
|
|
556
|
+
| `claude-sonnet-4-6` | `sonnet`, `sonnet-4.6` | 200K (1M beta) | 64K | Adaptive thinking, effort, images, caching, compaction | Best speed/intelligence balance |
|
|
557
|
+
| `claude-sonnet-4-5-20250929` | `sonnet-4.5` | 200K (1M beta) | 64K | Extended thinking, images, caching | Legacy Sonnet |
|
|
558
|
+
| `claude-haiku-4-5-20251001` | `haiku`, `haiku-4.5` | 200K | 64K | Extended thinking, images, caching | Fast and intelligent |
|
|
559
|
+
|
|
560
|
+
**Note:** Claude Fable 5 does not accept the `temperature` parameter (it is silently omitted). Models with adaptive thinking control thinking depth via `reasoning_effort`, which maps to Anthropic's `effort` parameter.
|
|
555
561
|
|
|
556
562
|
**Prompt Caching (Always Enabled):**
|
|
557
563
|
- System prompts are automatically cached for 1 hour using Anthropic's prompt caching
|
|
@@ -592,6 +598,16 @@ When complete, `check_status` for the continuation_id renders the full lap trans
|
|
|
592
598
|
- **Response times**: 6-20 seconds typical (complex tasks may take minutes)
|
|
593
599
|
- **Authentication**: Requires ChatGPT login OR `CODEX_API_KEY` environment variable
|
|
594
600
|
|
|
601
|
+
### Claude Agent SDK Models
|
|
602
|
+
|
|
603
|
+
**Claude** is also available through the Claude Agent SDK, using Claude Code CLI authentication instead of an API key:
|
|
604
|
+
|
|
605
|
+
- **Model**: `claude` (aliases: `claude-sdk`, `claude-code`) - defaults to Claude Fable 5
|
|
606
|
+
- **Model selection**: `claude:fable` (Claude Fable 5) or `claude:opus` (Claude Opus 4.8); unknown `claude:`-prefixed names pass through to the SDK (e.g. `claude:claude-sonnet-4-6`)
|
|
607
|
+
- **Authentication**: Claude Code login (`claude login`) - no `ANTHROPIC_API_KEY` needed
|
|
608
|
+
- **Direct file access**: Reads files from working directory
|
|
609
|
+
- **Note**: `temperature`, `use_websearch`, and `reasoning_effort` are managed by the SDK (ignored if specified)
|
|
610
|
+
|
|
595
611
|
### Gemini CLI Models (OAuth-based)
|
|
596
612
|
|
|
597
613
|
**Gemini CLI** provides subscription-based access to Gemini models through OAuth:
|
|
@@ -657,6 +673,13 @@ Use `"auto"` for automatic selection or specify exact models:
|
|
|
657
673
|
{"model": "pro"} // -> gemini-2.5-pro
|
|
658
674
|
{"model": "grok"} // -> grok-4-0709
|
|
659
675
|
{"model": "grok-4"} // -> grok-4-0709
|
|
676
|
+
{"model": "fable"} // -> claude-fable-5 (Anthropic API)
|
|
677
|
+
{"model": "opus"} // -> claude-opus-4-8 (Anthropic API)
|
|
678
|
+
|
|
679
|
+
// SDK providers (subscription-based)
|
|
680
|
+
{"model": "claude"} // -> Claude Agent SDK (Claude Fable 5)
|
|
681
|
+
{"model": "claude:opus"} // -> Claude Agent SDK (Claude Opus 4.8)
|
|
682
|
+
{"model": "copilot:codex"} // -> GitHub Copilot SDK (gpt-5.3-codex)
|
|
660
683
|
```
|
|
661
684
|
|
|
662
685
|
## Configuration
|