converse-mcp-server 4.10.1 → 4.11.0
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 +2 -2
- package/README.md +11 -10
- package/docs/API.md +9 -8
- package/docs/ARCHITECTURE.md +1 -1
- package/docs/PROVIDERS.md +11 -9
- package/package.json +9 -9
- package/src/providers/copilot.js +17 -5
- package/src/providers/gemini-cli.js +55 -24
- package/src/providers/google.js +34 -11
package/.env.example
CHANGED
|
@@ -103,10 +103,10 @@ CLOUDFLARE_API_TOKEN=your_cloudflare_api_token_here
|
|
|
103
103
|
# with "did you mean" suggestions otherwise. Per request, use "provider:model".
|
|
104
104
|
# CODEX_DEFAULT_MODEL=gpt-6-astra # gpt-6.1-sol, gpt-6-sol, gpt-6-luna, gpt-6-astra, gpt-5.6-sol, gpt-5.6-terra, gpt-5.6-luna, gpt-5.5, gpt-5.3-codex-spark (CODEX_MODEL is the legacy name)
|
|
105
105
|
# CLAUDE_DEFAULT_MODEL=claude-fable-5-2
|
|
106
|
-
# AGY_DEFAULT_MODEL=gemini-
|
|
106
|
+
# AGY_DEFAULT_MODEL=gemini-4-hydrogen # Antigravity CLI: gemini-4-carbon (default, requires Google AI Ultra), gemini-4-hydrogen, gemini-3.8-flash
|
|
107
107
|
# COPILOT_DEFAULT_MODEL=gpt-6.1-sol # COPILOT_MODEL is the legacy name
|
|
108
108
|
# OPENAI_DEFAULT_MODEL=gpt-6.1-sol
|
|
109
|
-
# GOOGLE_DEFAULT_MODEL=gemini-4-
|
|
109
|
+
# GOOGLE_DEFAULT_MODEL=gemini-4-carbon
|
|
110
110
|
# XAI_DEFAULT_MODEL=grok-4.5
|
|
111
111
|
# ANTHROPIC_DEFAULT_MODEL=claude-opus-5-5
|
|
112
112
|
# MISTRAL_DEFAULT_MODEL=mistral-medium-3-5
|
package/README.md
CHANGED
|
@@ -259,7 +259,8 @@ SUMMARIZATION_MODEL=gpt-5-nano # Default: gpt-5-nano
|
|
|
259
259
|
|
|
260
260
|
**Supported Models**:
|
|
261
261
|
|
|
262
|
-
- **gemini-4-
|
|
262
|
+
- **gemini-4-carbon** (default; aliases: `carbon`, `pro`, `gemini-pro`): Strongest Gemini model for long-horizon software engineering, scientific reasoning and agentic work; thinking levels low/medium/high; paid API tier only (1M unified context, 65K output)
|
|
263
|
+
- **gemini-4-hydrogen** (alias: `hydrogen`): Fast Gemini 4 model for everyday coding and agentic workflows; thinking levels low/medium/high/xhigh (`reasoning_effort: "xhigh"`); available on every API tier (1M unified context, 65K output)
|
|
263
264
|
- **gemini-3.1-pro-preview** (aliases: `gemini-3.1-pro`, `gemini-3`): Gemini 3.1 Pro reasoning with expanded thinking levels (1M context, 64K output)
|
|
264
265
|
- **gemini-3.5-flash** (aliases: `gemini-3.5`, `flash-3.5`): Frontier-level agentic and coding performance at Flash speed (1M context, 65K output)
|
|
265
266
|
- **gemini-3.8-flash** (aliases: `gemini-3.8`, `flash-3.8`): Current-generation Flash with stronger long-horizon agentic performance (1M context, 65K output; thinking levels low/medium/high — no minimal)
|
|
@@ -267,7 +268,7 @@ SUMMARIZATION_MODEL=gpt-5-nano # Default: gpt-5-nano
|
|
|
267
268
|
- **gemini-2.5-flash** (alias: `flash`): Ultra-fast (1M context, 65K output)
|
|
268
269
|
- **gemini-2.5-flash-lite** (alias: `flash-lite`): Lightweight fast model (1M context, 65K output)
|
|
269
270
|
|
|
270
|
-
**Note**: The Antigravity CLI provider serves `gemini-4-
|
|
271
|
+
**Note**: The Antigravity CLI provider serves `gemini-4-carbon`, `gemini-4-hydrogen` and `gemini-3.8-flash`. Bare `pro` and `gemini-pro` resolve to Gemini 4 Carbon on Antigravity first, then the Google API as failover; bare `gemini-3.1-pro-preview` routes to the Google API only. Bare `flash` and `gemini-3.8-flash` route to Antigravity first when it is installed (see [Model Selection](#model-selection)). Use `google:<model>` to always use the Google API.
|
|
271
272
|
|
|
272
273
|
### X.AI/Grok Models
|
|
273
274
|
|
|
@@ -351,7 +352,7 @@ Reach these only with the `copilot:` namespace (e.g. `copilot:gpt-6.1-sol`) —
|
|
|
351
352
|
|
|
352
353
|
- **OpenAI**: `gpt-6.1-sol` (aliases: `gpt-6`, `gpt-6.1`, `gpt-5`, `sol`), `gpt-6-sol`, `gpt-6-luna` (alias: `luna`), `gpt-5.6-sol` (alias: `gpt-5.6`), `gpt-5.6-terra`, `gpt-5.6-luna` (all support `reasoning_effort`)
|
|
353
354
|
- **Anthropic**: `claude-opus-5.5` (aliases: `opus`, `claude`), `claude-fable-5.2` (alias: `fable`), `claude-fable-5.1`, `claude-fable-5`, `claude-sonnet-5.5` (alias: `sonnet`), `claude-haiku-5.5` (alias: `haiku`), `claude-sonnet-5`, `claude-opus-5`, `claude-opus-4.8`
|
|
354
|
-
- **Google**: `gemini-4-
|
|
355
|
+
- **Google**: `gemini-4-carbon` (aliases: `gemini`, `carbon`, `gemini-4`), `gemini-4-hydrogen` (alias: `hydrogen`), `gemini-3.8-flash` (alias: `gemini-flash`)
|
|
355
356
|
|
|
356
357
|
## 📚 Help & Documentation
|
|
357
358
|
|
|
@@ -412,10 +413,10 @@ CODEX_APPROVAL_POLICY=never # never (default), untrusted, on-fa
|
|
|
412
413
|
# list; startup fails with suggestions otherwise.
|
|
413
414
|
CODEX_DEFAULT_MODEL=gpt-6-astra # CODEX_MODEL still works as a fallback
|
|
414
415
|
CLAUDE_DEFAULT_MODEL=claude-fable-5-2
|
|
415
|
-
AGY_DEFAULT_MODEL=gemini-4-
|
|
416
|
+
AGY_DEFAULT_MODEL=gemini-4-carbon # Requires Google AI Ultra; other plans can use gemini:hydrogen or set AGY_DEFAULT_MODEL=gemini-4-hydrogen
|
|
416
417
|
COPILOT_DEFAULT_MODEL=gpt-6.1-sol # COPILOT_MODEL still works as a fallback
|
|
417
418
|
OPENAI_DEFAULT_MODEL=gpt-6.1-sol
|
|
418
|
-
GOOGLE_DEFAULT_MODEL=gemini-4-
|
|
419
|
+
GOOGLE_DEFAULT_MODEL=gemini-4-carbon
|
|
419
420
|
XAI_DEFAULT_MODEL=grok-4.5
|
|
420
421
|
ANTHROPIC_DEFAULT_MODEL=claude-opus-5-5
|
|
421
422
|
MISTRAL_DEFAULT_MODEL=mistral-medium-3-5
|
|
@@ -484,13 +485,13 @@ Every entry in `models` takes one of four forms:
|
|
|
484
485
|
// A provider: its default model (hardcoded, or <PROVIDER>_DEFAULT_MODEL)
|
|
485
486
|
"codex"; // -> Codex (GPT-6 Astra)
|
|
486
487
|
"claude"; // -> Claude Agent SDK (Claude Fable 5.2)
|
|
487
|
-
"gemini"; // -> Antigravity CLI (Gemini 4
|
|
488
|
+
"gemini"; // -> Antigravity CLI (Gemini 4 Carbon)
|
|
488
489
|
"openai"; // -> OpenAI API (GPT-6.1 Sol)
|
|
489
490
|
|
|
490
491
|
// provider:model — that model on that provider only
|
|
491
492
|
"codex:astra"; // -> Codex (GPT-6 Astra)
|
|
492
493
|
"openai:gpt-6-astra"; // -> OpenAI API, even when Codex is available
|
|
493
|
-
"gemini:pro"; // -> Antigravity CLI (Gemini 4
|
|
494
|
+
"gemini:pro"; // -> Antigravity CLI (Gemini 4 Carbon)
|
|
494
495
|
"google:gemini-3.1-pro-preview"; // -> Google API
|
|
495
496
|
"copilot:sonnet"; // -> GitHub Copilot (Claude Sonnet 5.5)
|
|
496
497
|
"openrouter:z-ai/glm-5.2:online"; // -> OpenRouter with web search opt-in
|
|
@@ -498,7 +499,7 @@ Every entry in `models` takes one of four forms:
|
|
|
498
499
|
// A bare model ID or alias — the first configured provider that offers it
|
|
499
500
|
"gpt-6-astra"; // -> Codex, else OpenAI API
|
|
500
501
|
"opus"; // -> Claude Agent SDK, else Anthropic API
|
|
501
|
-
"pro"; // -> Antigravity CLI (gemini-4-
|
|
502
|
+
"pro"; // -> Antigravity CLI (gemini-4-carbon), else Google API
|
|
502
503
|
"grok"; // -> grok-4.5 (XAI)
|
|
503
504
|
"z-ai/glm-5.2"; // -> OpenRouter (any vendor/model slug)
|
|
504
505
|
```
|
|
@@ -516,11 +517,11 @@ Every entry in `models` takes one of four forms:
|
|
|
516
517
|
Provider priority order (subscription-based local providers first, then API-key providers), used by both `auto` and bare model names:
|
|
517
518
|
|
|
518
519
|
1. Codex (`codex` → GPT-6 Astra)
|
|
519
|
-
2. Gemini via Antigravity CLI (`gemini` / `agy` → Gemini 4
|
|
520
|
+
2. Gemini via Antigravity CLI (`gemini` / `agy` → Gemini 4 Carbon)
|
|
520
521
|
3. Claude Agent SDK (`claude` → Claude Fable 5.2)
|
|
521
522
|
4. Copilot (`copilot` → GPT-6.1 Sol; `auto` only, never bare names)
|
|
522
523
|
5. OpenAI (`openai` → GPT-6.1 Sol)
|
|
523
|
-
6. Google (`google` → Gemini 4
|
|
524
|
+
6. Google (`google` → Gemini 4 Carbon)
|
|
524
525
|
7. XAI (`xai` → Grok 4.5)
|
|
525
526
|
8. Anthropic (`anthropic` → Claude Opus 5.5)
|
|
526
527
|
9. Mistral (`mistral` → Mistral Medium 3.5)
|
package/docs/API.md
CHANGED
|
@@ -528,7 +528,8 @@ Provide models as plain name strings in the `models` array. Each entry is `auto`
|
|
|
528
528
|
|
|
529
529
|
| Model | Aliases | Context | Output | Notes |
|
|
530
530
|
|-------|---------|---------|--------|-------|
|
|
531
|
-
| `gemini-4-
|
|
531
|
+
| `gemini-4-carbon` | `carbon`, `pro`, `gemini-pro` | 1M | 65K | Default; strongest Gemini for long-horizon software engineering and scientific reasoning; thinking low/medium/high; paid API tier only |
|
|
532
|
+
| `gemini-4-hydrogen` | `hydrogen` | 1M | 65K | Fast Gemini 4 for everyday coding and agentic work; thinking low/medium/high/xhigh; every API tier |
|
|
532
533
|
| `gemini-3.1-pro-preview` | `gemini-3.1-pro`, `gemini-3` | 1M | 64K | Gemini 3.1 Pro reasoning, expanded thinking levels |
|
|
533
534
|
| `gemini-3.5-flash` | `gemini-3.5`, `flash-3.5` | 1M | 65K | Frontier agentic/coding at Flash speed |
|
|
534
535
|
| `gemini-3.8-flash` | `gemini-3.8`, `flash-3.8` | 1M | 65K | Current-generation Flash; thinking low/medium/high only |
|
|
@@ -536,7 +537,7 @@ Provide models as plain name strings in the `models` array. Each entry is `auto`
|
|
|
536
537
|
| `gemini-2.5-flash` | `flash` | 1M | 65K | Ultra-fast |
|
|
537
538
|
| `gemini-2.5-flash-lite` | `flash-lite` | 1M | 65K | Lightweight fast model |
|
|
538
539
|
|
|
539
|
-
**Note:** The **Antigravity CLI** provider (`agy`, OAuth-based) serves `gemini-4-
|
|
540
|
+
**Note:** The **Antigravity CLI** provider (`agy`, OAuth-based) serves `gemini-4-carbon`, `gemini-4-hydrogen` and `gemini-3.8-flash`. Bare `pro` and `gemini-pro` resolve to Gemini 4 Carbon on Antigravity first, then the Google API as failover; bare `gemini-3.1-pro-preview` routes to the Google API only. Bare `flash` and `gemini-3.8-flash` route to Antigravity first when `agy` is installed; the bare name `gemini` is the Antigravity namespace. Use `google:<model>` (e.g. `google:pro`) to always use the Google API.
|
|
540
541
|
|
|
541
542
|
### X.AI / Grok Models
|
|
542
543
|
|
|
@@ -637,7 +638,7 @@ All three are uncensored ("abliterated") reasoning models using Abliteration's O
|
|
|
637
638
|
|
|
638
639
|
The **Antigravity CLI** (`agy`) provides subscription-based access to Gemini models through Google OAuth:
|
|
639
640
|
|
|
640
|
-
- **Models** (text-only): `gemini-4-
|
|
641
|
+
- **Models** (text-only): `gemini-4-carbon` (default; `carbon`, `pro`, `gemini-pro`, ...; `gemini:pro`), `gemini-4-hydrogen` (`hydrogen`, ...; `gemini:hydrogen`; `reasoning_effort: "xhigh"` selects its XHigh variant), `gemini-3.8-flash` (`flash`, `gemini-3.8`, `flash-3.8`, ...; `gemini:flash`). Gemini 4 Carbon requires Google AI Ultra; other plans can use `gemini:hydrogen` or set `AGY_DEFAULT_MODEL=gemini-4-hydrogen`. Default override: `AGY_DEFAULT_MODEL`.
|
|
641
642
|
- **Namespaces**: `gemini`, `agy`, `antigravity`, `gemini-cli`
|
|
642
643
|
- **Availability**: the `agy` binary is found on PATH or at the platform install location
|
|
643
644
|
- **Permissions**: `agy` runs with `--dangerously-skip-permissions`, so every tool request is auto-approved
|
|
@@ -666,7 +667,7 @@ Reach these only with the `copilot:` namespace (also `github-copilot:`, `copilot
|
|
|
666
667
|
|
|
667
668
|
- **OpenAI**: `gpt-6.1-sol` (aliases: `gpt-6`, `gpt-6.1`, `gpt-5`, `sol`), `gpt-6-sol`, `gpt-6-luna` (alias: `luna`), `gpt-5.6-sol` (alias: `gpt-5.6`), `gpt-5.6-terra`, `gpt-5.6-luna` (all accept `reasoning_effort`)
|
|
668
669
|
- **Anthropic**: `claude-opus-5.5` (aliases: `opus`, `claude`), `claude-fable-5.2` (alias: `fable`), `claude-fable-5.1`, `claude-fable-5`, `claude-sonnet-5.5` (alias: `sonnet`), `claude-haiku-5.5` (alias: `haiku`), `claude-sonnet-5`, `claude-opus-5`, `claude-opus-4.8`
|
|
669
|
-
- **Google**: `gemini-4-
|
|
670
|
+
- **Google**: `gemini-4-carbon` (aliases: `gemini`, `carbon`, `gemini-4`), `gemini-4-hydrogen` (alias: `hydrogen`), `gemini-3.8-flash` (alias: `gemini-flash`)
|
|
670
671
|
- Any other `copilot:<id>` is rejected with suggestions
|
|
671
672
|
|
|
672
673
|
### Model Selection
|
|
@@ -685,7 +686,7 @@ Every entry in `models` takes one of four forms:
|
|
|
685
686
|
"gpt-6" // Codex (-> gpt-6.1-sol), else OpenAI API
|
|
686
687
|
"openai:gpt-6" // OpenAI API only
|
|
687
688
|
"gemini-2.5-flash" // Google API
|
|
688
|
-
"pro" // Antigravity CLI (-> gemini-4-
|
|
689
|
+
"pro" // Antigravity CLI (-> gemini-4-carbon), else Google API
|
|
689
690
|
"google:pro" // Google API only
|
|
690
691
|
"grok-4.5" // X.AI
|
|
691
692
|
"deepseek" // DeepSeek (-> deepseek-v4-pro)
|
|
@@ -699,7 +700,7 @@ Every entry in `models` takes one of four forms:
|
|
|
699
700
|
"claude" // Claude Agent SDK (-> Claude Fable 5.2)
|
|
700
701
|
"claude:opus" // Claude Agent SDK (Claude Opus 5.5)
|
|
701
702
|
"codex:luna" // Codex (GPT-6 Luna)
|
|
702
|
-
"gemini" // Antigravity CLI (Gemini 4
|
|
703
|
+
"gemini" // Antigravity CLI (Gemini 4 Carbon)
|
|
703
704
|
"copilot:gpt-6.1-sol" // GitHub Copilot SDK
|
|
704
705
|
```
|
|
705
706
|
|
|
@@ -748,10 +749,10 @@ Each provider's default model (used for its bare provider name and for `auto`) c
|
|
|
748
749
|
```bash
|
|
749
750
|
CODEX_DEFAULT_MODEL=gpt-6-astra # CODEX_MODEL is honored as a legacy fallback
|
|
750
751
|
CLAUDE_DEFAULT_MODEL=claude-fable-5-2
|
|
751
|
-
AGY_DEFAULT_MODEL=gemini-4-
|
|
752
|
+
AGY_DEFAULT_MODEL=gemini-4-carbon # Antigravity CLI (gemini)
|
|
752
753
|
COPILOT_DEFAULT_MODEL=gpt-6.1-sol # COPILOT_MODEL is honored as a legacy fallback
|
|
753
754
|
OPENAI_DEFAULT_MODEL=gpt-6.1-sol
|
|
754
|
-
GOOGLE_DEFAULT_MODEL=gemini-4-
|
|
755
|
+
GOOGLE_DEFAULT_MODEL=gemini-4-carbon
|
|
755
756
|
XAI_DEFAULT_MODEL=grok-4.5
|
|
756
757
|
ANTHROPIC_DEFAULT_MODEL=claude-opus-5-5
|
|
757
758
|
MISTRAL_DEFAULT_MODEL=mistral-medium-3-5
|
package/docs/ARCHITECTURE.md
CHANGED
package/docs/PROVIDERS.md
CHANGED
|
@@ -26,14 +26,15 @@ This guide documents all supported AI providers in the Converse MCP Server and t
|
|
|
26
26
|
- **Get Key**: [makersuite.google.com/app/apikey](https://makersuite.google.com/app/apikey)
|
|
27
27
|
- **Environment Variable**: `GOOGLE_API_KEY`
|
|
28
28
|
- **Supported Models**:
|
|
29
|
-
- `gemini-4-
|
|
29
|
+
- `gemini-4-carbon` (default; aliases: `carbon`, `pro`, `gemini-pro`) - Strongest Gemini model for long-horizon software engineering, scientific reasoning and agentic work; thinking levels low/medium/high; paid API tier only (1M unified context, 65K output)
|
|
30
|
+
- `gemini-4-hydrogen` (alias: `hydrogen`) - Fast Gemini 4 model for everyday coding and agentic workflows; thinking levels low/medium/high/xhigh; available on every API tier (1M unified context, 65K output)
|
|
30
31
|
- `gemini-3.1-pro-preview` (aliases: `gemini-3.1-pro`, `gemini-3`) - Gemini 3.1 Pro reasoning with expanded thinking levels (1M context, 64K output)
|
|
31
32
|
- `gemini-3.5-flash` (aliases: `gemini-3.5`, `flash-3.5`) - Frontier-level agentic and coding performance at Flash speed (1M context, 65K output)
|
|
32
33
|
- `gemini-3.8-flash` (aliases: `gemini-3.8`, `flash-3.8`) - Current-generation Flash with stronger long-horizon agentic performance (1M context, 65K output; thinking levels low/medium/high — no minimal)
|
|
33
34
|
- `gemini-2.5-pro` (alias: `pro 2.5`) - Deep reasoning with thinking budget (1M context, 65K output)
|
|
34
35
|
- `gemini-2.5-flash` (alias: `flash`) - Ultra-fast model with thinking budget (1M context, 65K output)
|
|
35
36
|
- `gemini-2.5-flash-lite` (alias: `flash-lite`) - Lightweight fast model (1M context, 65K output)
|
|
36
|
-
- **Note**: The **Antigravity CLI** provider (`agy`, OAuth-based access) serves `gemini-4-
|
|
37
|
+
- **Note**: The **Antigravity CLI** provider (`agy`, OAuth-based access) serves `gemini-4-carbon`, `gemini-4-hydrogen` and `gemini-3.8-flash`, and it comes before the Google API in bare-name order. When `agy` is installed, bare `pro` and `gemini-pro` resolve to Gemini 4 Carbon on Antigravity first, with the Google API as failover; bare `gemini-3.1-pro-preview` routes to the Google API only. The bare name `gemini` is the Antigravity namespace. Use `google:<model>` (e.g. `google:pro`, `google:gemini-2.5-flash`) to always use the Google API. Names only the Google API serves (e.g. `gemini-2.5-pro`, `gemini-3.5-flash`) route there directly.
|
|
37
38
|
|
|
38
39
|
### X.AI (Grok)
|
|
39
40
|
- **API Key Format**: `xai-...` (starts with `xai-`)
|
|
@@ -157,10 +158,11 @@ This guide documents all supported AI providers in the Converse MCP Server and t
|
|
|
157
158
|
2. Authenticate: run `agy` once interactively and complete the Google OAuth login. This also establishes workspace trust for your home directory (the provider spawns each call in a per-call subdirectory under `~/.converse/agy-runs`).
|
|
158
159
|
- **Availability**: The `agy` binary is found on PATH or at the platform install location
|
|
159
160
|
- **Environment Variables**:
|
|
160
|
-
- `AGY_DEFAULT_MODEL` - Model used for bare `gemini` and `auto` (default: `gemini-4-
|
|
161
|
+
- `AGY_DEFAULT_MODEL` - Model used for bare `gemini` and `auto` (default: `gemini-4-carbon`, requires Google AI Ultra; other plans can use `gemini:hydrogen` or set `AGY_DEFAULT_MODEL=gemini-4-hydrogen`)
|
|
161
162
|
- **Namespaces**: `gemini`, `agy`, `antigravity`, `gemini-cli` (all equivalent, e.g. `agy:pro`)
|
|
162
163
|
- **Supported Models** (text-only — print mode has no image input channel):
|
|
163
|
-
- `gemini-4-
|
|
164
|
+
- `gemini-4-carbon` (aliases: `carbon`, `pro`, `gemini-pro`, ...) - Gemini 4 Carbon (default; `gemini` alone = `gemini:gemini-4-carbon`; `gemini:pro`)
|
|
165
|
+
- `gemini-4-hydrogen` (aliases: `hydrogen`, `gemini-hydrogen`, ...) - Gemini 4 Hydrogen, every plan (`gemini:hydrogen`); `reasoning_effort: "xhigh"` selects its XHigh variant
|
|
164
166
|
- `gemini-3.8-flash` (aliases: `flash`, `gemini-3.8`, `flash-3.8`, ...) - Gemini 3.8 Flash (`gemini:flash`)
|
|
165
167
|
- Every model has Low, Medium, and High variants selected by `reasoning_effort`.
|
|
166
168
|
|
|
@@ -215,7 +217,7 @@ agy
|
|
|
215
217
|
**Differences from Google API Provider:**
|
|
216
218
|
- **Authentication**: Google OAuth via `agy` vs API Key (Google API)
|
|
217
219
|
- **Billing**: Antigravity subscription/compute allowance vs pay-per-use API
|
|
218
|
-
- **Model Routing**: `gemini` / `gemini:<model>` / `agy:<model>` → Antigravity CLI provider; `google:<model>` → Google API provider; bare `pro` and `gemini-pro` resolve to Gemini 4
|
|
220
|
+
- **Model Routing**: `gemini` / `gemini:<model>` / `agy:<model>` → Antigravity CLI provider; `google:<model>` → Google API provider; bare `pro` and `gemini-pro` resolve to Gemini 4 Carbon on Antigravity first, then the Google API on authentication/availability failure. Bare `gemini-3.1-pro-preview` routes to the Google API only. Bare `gemini-3.8-flash` is served by both providers and tries Antigravity first; bare `flash` is Gemini 3.8 Flash on Antigravity but Gemini 2.5 Flash on the Google API, so it does not fail over between them.
|
|
219
221
|
- **Images**: Not supported (text-only) vs full multimodal on the Google API provider
|
|
220
222
|
- **Permissions**: `agy` runs with `--dangerously-skip-permissions` (headless calls cannot prompt), so every tool request, including shell commands and file writes, is auto-approved. Bare names and `auto` reach it whenever `agy` is installed; use `google:<model>` to keep a request on the plain API.
|
|
221
223
|
|
|
@@ -260,7 +262,7 @@ agy
|
|
|
260
262
|
- `copilot` - GPT-6.1 Sol, or `COPILOT_DEFAULT_MODEL`
|
|
261
263
|
- OpenAI: `gpt-6.1-sol` (aliases: `gpt-6`, `gpt-6.1`, `gpt-5`, `sol`), `gpt-6-sol`, `gpt-6-luna` (alias: `luna`), `gpt-5.6-sol` (alias: `gpt-5.6`), `gpt-5.6-terra`, `gpt-5.6-luna`
|
|
262
264
|
- Anthropic: `claude-opus-5.5` (aliases: `opus`, `claude`; Copilot Pro+/Max/Business/Enterprise), `claude-fable-5.2` (alias: `fable`), `claude-fable-5.1`, `claude-fable-5`, `claude-sonnet-5.5` (alias: `sonnet`), `claude-haiku-5.5` (alias: `haiku`), `claude-sonnet-5`, `claude-opus-5`, `claude-opus-4.8`
|
|
263
|
-
- Google: `gemini-4-
|
|
265
|
+
- Google: `gemini-4-carbon` (aliases: `gemini`, `carbon`, `gemini-4`), `gemini-4-hydrogen` (alias: `hydrogen`), `gemini-3.8-flash` (alias: `gemini-flash`)
|
|
264
266
|
- **Reasoning**: The GPT-6 and GPT-5.6 tiers accept `reasoning_effort` (clamped onto Copilot's `low`–`xhigh`).
|
|
265
267
|
- **Unknown IDs**: Any other `copilot:<id>` is rejected with suggestions; only the IDs and aliases above are accepted.
|
|
266
268
|
|
|
@@ -300,10 +302,10 @@ Each provider has a `<PROVIDER>_DEFAULT_MODEL` variable that sets the model used
|
|
|
300
302
|
```bash
|
|
301
303
|
CODEX_DEFAULT_MODEL=gpt-6-astra # CODEX_MODEL is honored as a legacy fallback
|
|
302
304
|
CLAUDE_DEFAULT_MODEL=claude-fable-5-2
|
|
303
|
-
AGY_DEFAULT_MODEL=gemini-4-
|
|
305
|
+
AGY_DEFAULT_MODEL=gemini-4-carbon # Antigravity CLI (gemini)
|
|
304
306
|
COPILOT_DEFAULT_MODEL=gpt-6.1-sol # COPILOT_MODEL is honored as a legacy fallback
|
|
305
307
|
OPENAI_DEFAULT_MODEL=gpt-6.1-sol
|
|
306
|
-
GOOGLE_DEFAULT_MODEL=gemini-4-
|
|
308
|
+
GOOGLE_DEFAULT_MODEL=gemini-4-carbon
|
|
307
309
|
XAI_DEFAULT_MODEL=grok-4.5
|
|
308
310
|
ANTHROPIC_DEFAULT_MODEL=claude-opus-5-5
|
|
309
311
|
MISTRAL_DEFAULT_MODEL=mistral-medium-3-5
|
|
@@ -411,7 +413,7 @@ Examples:
|
|
|
411
413
|
"sonnet" // Claude Agent SDK (claude-sonnet-5-5), else Anthropic API
|
|
412
414
|
"claude" // Claude Agent SDK (defaults to Claude Fable 5.2)
|
|
413
415
|
"claude:opus" // Claude Agent SDK (Claude Opus 5.5)
|
|
414
|
-
"pro" // Antigravity CLI (gemini-4-
|
|
416
|
+
"pro" // Antigravity CLI (gemini-4-carbon), else Google API
|
|
415
417
|
"google:pro" // Google API only
|
|
416
418
|
"gemini-2.5-pro" // Google API
|
|
417
419
|
"grok-4.5" // X.AI
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "converse-mcp-server",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.11.0",
|
|
4
4
|
"description": "Converse MCP Server - Converse with other LLMs with chat and consensus tools",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -93,30 +93,30 @@
|
|
|
93
93
|
".env.example"
|
|
94
94
|
],
|
|
95
95
|
"dependencies": {
|
|
96
|
-
"@anthropic-ai/claude-agent-sdk": "^0.3.
|
|
97
|
-
"@anthropic-ai/sdk": "^1.
|
|
98
|
-
"@github/copilot-sdk": "^1.0.
|
|
99
|
-
"@google/genai": "^3.
|
|
96
|
+
"@anthropic-ai/claude-agent-sdk": "^0.3.325",
|
|
97
|
+
"@anthropic-ai/sdk": "^1.8.0",
|
|
98
|
+
"@github/copilot-sdk": "^1.0.34",
|
|
99
|
+
"@google/genai": "^3.3.0",
|
|
100
100
|
"@lydell/node-pty": "1.2.0-beta.18",
|
|
101
101
|
"@mistralai/mistralai": "^3.5.0",
|
|
102
102
|
"@modelcontextprotocol/node": "^2.1.2",
|
|
103
103
|
"@modelcontextprotocol/server": "^2.4.0",
|
|
104
|
-
"@openai/codex-sdk": "^0.
|
|
104
|
+
"@openai/codex-sdk": "^0.169.0",
|
|
105
105
|
"cors": "^2.8.6",
|
|
106
106
|
"dotenv": "^18.0.10",
|
|
107
107
|
"express": "^5.3.0",
|
|
108
108
|
"lru-cache": "^11.5.3",
|
|
109
109
|
"nanoid": "^6.0.2",
|
|
110
|
-
"openai": "^7.
|
|
110
|
+
"openai": "^7.57.0",
|
|
111
111
|
"p-limit": "^7.3.3",
|
|
112
|
-
"vite": "^8.3.
|
|
112
|
+
"vite": "^8.3.8",
|
|
113
113
|
"zod": "^4.6.7"
|
|
114
114
|
},
|
|
115
115
|
"devDependencies": {
|
|
116
116
|
"@modelcontextprotocol/sdk": "^1.32.2",
|
|
117
117
|
"@vitest/coverage-v8": "^5.1.0",
|
|
118
118
|
"cross-env": "^10.1.0",
|
|
119
|
-
"eslint": "^10.
|
|
119
|
+
"eslint": "^10.15.0",
|
|
120
120
|
"rimraf": "^6.1.4",
|
|
121
121
|
"vitest": "^5.1.0"
|
|
122
122
|
}
|
package/src/providers/copilot.js
CHANGED
|
@@ -223,17 +223,29 @@ const SUPPORTED_MODELS = {
|
|
|
223
223
|
},
|
|
224
224
|
|
|
225
225
|
// Google models
|
|
226
|
-
'gemini-4-
|
|
227
|
-
modelName: 'gemini-4-
|
|
228
|
-
friendlyName: 'Gemini 4
|
|
226
|
+
'gemini-4-carbon': {
|
|
227
|
+
modelName: 'gemini-4-carbon',
|
|
228
|
+
friendlyName: 'Gemini 4 Carbon (via Copilot)',
|
|
229
229
|
contextWindow: 1048576,
|
|
230
230
|
maxOutputTokens: 65536,
|
|
231
231
|
supportsStreaming: true,
|
|
232
232
|
supportsImages: false,
|
|
233
233
|
supportsWebSearch: false,
|
|
234
234
|
timeout: 1800000,
|
|
235
|
-
description: 'Google Gemini 4
|
|
236
|
-
aliases: ['gemini', '
|
|
235
|
+
description: 'Google Gemini 4 Carbon via Copilot subscription',
|
|
236
|
+
aliases: ['gemini', 'carbon', 'gemini-4'],
|
|
237
|
+
},
|
|
238
|
+
'gemini-4-hydrogen': {
|
|
239
|
+
modelName: 'gemini-4-hydrogen',
|
|
240
|
+
friendlyName: 'Gemini 4 Hydrogen (via Copilot)',
|
|
241
|
+
contextWindow: 1048576,
|
|
242
|
+
maxOutputTokens: 65536,
|
|
243
|
+
supportsStreaming: true,
|
|
244
|
+
supportsImages: false,
|
|
245
|
+
supportsWebSearch: false,
|
|
246
|
+
timeout: 1800000,
|
|
247
|
+
description: 'Google Gemini 4 Hydrogen via Copilot subscription',
|
|
248
|
+
aliases: ['hydrogen'],
|
|
237
249
|
},
|
|
238
250
|
'gemini-3.8-flash': {
|
|
239
251
|
modelName: 'gemini-3.8-flash',
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
* establishes workspace trust for the user's home directory.
|
|
20
20
|
*
|
|
21
21
|
* The provider registry key remains 'gemini-cli'; its namespaces are `gemini:`
|
|
22
|
-
* and `agy:`. Gemini 4
|
|
23
|
-
* Google AI Ultra plans, so other plans select `gemini:
|
|
22
|
+
* and `agy:`. Gemini 4 Carbon is the default; Antigravity serves it only on
|
|
23
|
+
* Google AI Ultra plans, so other plans select `gemini:hydrogen` (or set
|
|
24
24
|
* AGY_DEFAULT_MODEL). Antigravity no longer offers Gemini 3.1 Pro.
|
|
25
25
|
*/
|
|
26
26
|
|
|
@@ -60,9 +60,9 @@ const PTY_COLS = 1000;
|
|
|
60
60
|
* channel).
|
|
61
61
|
*/
|
|
62
62
|
const SUPPORTED_MODELS = {
|
|
63
|
-
'gemini-4-
|
|
64
|
-
modelName: 'gemini-4-
|
|
65
|
-
friendlyName: 'Gemini 4
|
|
63
|
+
'gemini-4-carbon': {
|
|
64
|
+
modelName: 'gemini-4-carbon',
|
|
65
|
+
friendlyName: 'Gemini 4 Carbon (via Antigravity CLI)',
|
|
66
66
|
contextWindow: 1048576,
|
|
67
67
|
maxOutputTokens: 65536,
|
|
68
68
|
supportsStreaming: true,
|
|
@@ -71,21 +71,45 @@ const SUPPORTED_MODELS = {
|
|
|
71
71
|
supportsThinking: true,
|
|
72
72
|
timeout: DEFAULT_TIMEOUT_MS,
|
|
73
73
|
description:
|
|
74
|
-
'Gemini 4
|
|
74
|
+
'Gemini 4 Carbon via Antigravity CLI (agy, default) - requires Antigravity Google OAuth login on a Google AI Ultra plan',
|
|
75
75
|
aliases: [
|
|
76
|
-
'
|
|
77
|
-
'gemini-
|
|
78
|
-
'gemini
|
|
76
|
+
'carbon',
|
|
77
|
+
'gemini-carbon',
|
|
78
|
+
'gemini carbon',
|
|
79
79
|
'gemini-4',
|
|
80
80
|
'gemini4',
|
|
81
|
-
'gemini 4
|
|
82
|
-
'4-
|
|
81
|
+
'gemini 4 carbon',
|
|
82
|
+
'4-carbon',
|
|
83
83
|
'pro',
|
|
84
84
|
'gemini-pro',
|
|
85
85
|
'gemini pro',
|
|
86
86
|
],
|
|
87
|
-
// agy display-name base; reasoning_effort selects
|
|
88
|
-
|
|
87
|
+
// agy display-name base; reasoning_effort selects one of agyEffortTiers
|
|
88
|
+
// as the parenthesized variant
|
|
89
|
+
agyModelBase: 'Gemini 4 Carbon',
|
|
90
|
+
agyEffortTiers: ['low', 'medium', 'high'],
|
|
91
|
+
},
|
|
92
|
+
'gemini-4-hydrogen': {
|
|
93
|
+
modelName: 'gemini-4-hydrogen',
|
|
94
|
+
friendlyName: 'Gemini 4 Hydrogen (via Antigravity CLI)',
|
|
95
|
+
contextWindow: 1048576,
|
|
96
|
+
maxOutputTokens: 65536,
|
|
97
|
+
supportsStreaming: true,
|
|
98
|
+
supportsImages: false,
|
|
99
|
+
supportsWebSearch: false,
|
|
100
|
+
supportsThinking: true,
|
|
101
|
+
timeout: DEFAULT_TIMEOUT_MS,
|
|
102
|
+
description:
|
|
103
|
+
'Gemini 4 Hydrogen via Antigravity CLI (agy) - requires Antigravity Google OAuth login; available on every plan',
|
|
104
|
+
aliases: [
|
|
105
|
+
'hydrogen',
|
|
106
|
+
'gemini-hydrogen',
|
|
107
|
+
'gemini hydrogen',
|
|
108
|
+
'gemini 4 hydrogen',
|
|
109
|
+
'4-hydrogen',
|
|
110
|
+
],
|
|
111
|
+
agyModelBase: 'Gemini 4 Hydrogen',
|
|
112
|
+
agyEffortTiers: ['low', 'medium', 'high', 'xhigh'],
|
|
89
113
|
},
|
|
90
114
|
'gemini-3.8-flash': {
|
|
91
115
|
modelName: 'gemini-3.8-flash',
|
|
@@ -111,10 +135,11 @@ const SUPPORTED_MODELS = {
|
|
|
111
135
|
'3.8-flash',
|
|
112
136
|
],
|
|
113
137
|
agyModelBase: 'Gemini 3.8 Flash',
|
|
138
|
+
agyEffortTiers: ['low', 'medium', 'high'],
|
|
114
139
|
},
|
|
115
140
|
};
|
|
116
141
|
|
|
117
|
-
const DEFAULT_MODEL = 'gemini-4-
|
|
142
|
+
const DEFAULT_MODEL = 'gemini-4-carbon';
|
|
118
143
|
|
|
119
144
|
/**
|
|
120
145
|
* Custom error class for Gemini CLI (agy) provider errors
|
|
@@ -185,22 +210,28 @@ export function findAgyBinary() {
|
|
|
185
210
|
return _cachedAgyPath;
|
|
186
211
|
}
|
|
187
212
|
|
|
188
|
-
// agy
|
|
189
|
-
//
|
|
190
|
-
const
|
|
213
|
+
// agy lists each catalog model as '<base> (Low)', '(Medium)', '(High)' and,
|
|
214
|
+
// where the model offers it, '(XHigh)'.
|
|
215
|
+
const AGY_TIER_LABELS = {
|
|
216
|
+
low: 'Low',
|
|
217
|
+
medium: 'Medium',
|
|
218
|
+
high: 'High',
|
|
219
|
+
xhigh: 'XHigh',
|
|
220
|
+
};
|
|
191
221
|
|
|
192
222
|
/**
|
|
193
223
|
* Map a reasoning_effort value to the agy parenthesized variant suffix.
|
|
194
224
|
* Unset effort selects High, agy's own default.
|
|
225
|
+
* @param {string[]} tiers - The model's agyEffortTiers
|
|
195
226
|
* @param {string} [reasoningEffort]
|
|
196
|
-
* @returns {string} e.g. '(Low)', '(Medium)', '(High)'
|
|
227
|
+
* @returns {string} e.g. '(Low)', '(Medium)', '(High)', '(XHigh)'
|
|
197
228
|
*/
|
|
198
|
-
function effortSuffix(reasoningEffort) {
|
|
229
|
+
function effortSuffix(tiers, reasoningEffort) {
|
|
199
230
|
if (!reasoningEffort) {
|
|
200
231
|
return '(High)';
|
|
201
232
|
}
|
|
202
|
-
const tier = clampReasoningEffort(reasoningEffort.toLowerCase(),
|
|
203
|
-
return `(${tier
|
|
233
|
+
const tier = clampReasoningEffort(reasoningEffort.toLowerCase(), tiers);
|
|
234
|
+
return `(${AGY_TIER_LABELS[tier]})`;
|
|
204
235
|
}
|
|
205
236
|
|
|
206
237
|
/**
|
|
@@ -221,7 +252,7 @@ export function resolveAgyModel(model, reasoningEffort) {
|
|
|
221
252
|
ErrorCodes.MODEL_NOT_FOUND,
|
|
222
253
|
);
|
|
223
254
|
}
|
|
224
|
-
return `${entry.agyModelBase} ${effortSuffix(reasoningEffort)}`;
|
|
255
|
+
return `${entry.agyModelBase} ${effortSuffix(entry.agyEffortTiers, reasoningEffort)}`;
|
|
225
256
|
}
|
|
226
257
|
|
|
227
258
|
/**
|
|
@@ -656,11 +687,11 @@ async function executeAgy(messages, options) {
|
|
|
656
687
|
const cleaned = cleanAgyOutput(output);
|
|
657
688
|
|
|
658
689
|
if (exitCode !== 0) {
|
|
659
|
-
// agy's model list is per-plan (Gemini 4
|
|
690
|
+
// agy's model list is per-plan (Gemini 4 Carbon is Ultra-only), so a
|
|
660
691
|
// catalog model can still be missing for the signed-in account.
|
|
661
692
|
if (/not recognized as a known model/i.test(cleaned)) {
|
|
662
693
|
throw new GeminiCliProviderError(
|
|
663
|
-
`Antigravity CLI (agy) does not offer "${agyModel}" to the signed-in account (Gemini 4
|
|
694
|
+
`Antigravity CLI (agy) does not offer "${agyModel}" to the signed-in account (Gemini 4 Carbon requires a Google AI Ultra plan). Use gemini:hydrogen, or set AGY_DEFAULT_MODEL to change the default. agy output: ${cleaned.slice(0, 800)}`,
|
|
664
695
|
ErrorCodes.MODEL_NOT_FOUND,
|
|
665
696
|
);
|
|
666
697
|
}
|
package/src/providers/google.js
CHANGED
|
@@ -100,10 +100,10 @@ const SUPPORTED_MODELS = {
|
|
|
100
100
|
'3.1-pro',
|
|
101
101
|
],
|
|
102
102
|
},
|
|
103
|
-
'gemini-4-
|
|
104
|
-
modelName: 'gemini-4-
|
|
105
|
-
friendlyName: 'Gemini (4
|
|
106
|
-
contextWindow: 1048576, // 1M tokens
|
|
103
|
+
'gemini-4-carbon': {
|
|
104
|
+
modelName: 'gemini-4-carbon',
|
|
105
|
+
friendlyName: 'Gemini (4 Carbon)',
|
|
106
|
+
contextWindow: 1048576, // 1M tokens, shared by input and output
|
|
107
107
|
maxOutputTokens: 65536,
|
|
108
108
|
supportsStreaming: true,
|
|
109
109
|
supportsImages: true,
|
|
@@ -113,20 +113,43 @@ const SUPPORTED_MODELS = {
|
|
|
113
113
|
thinkingLevels: ['low', 'medium', 'high'],
|
|
114
114
|
timeout: 900000,
|
|
115
115
|
description:
|
|
116
|
-
'Gemini 4
|
|
116
|
+
'Gemini 4 Carbon - Strongest Gemini model for long-horizon software engineering, scientific reasoning and agentic work (1M context)',
|
|
117
117
|
aliases: [
|
|
118
|
-
'
|
|
119
|
-
'gemini-
|
|
120
|
-
'gemini
|
|
118
|
+
'carbon',
|
|
119
|
+
'gemini-carbon',
|
|
120
|
+
'gemini carbon',
|
|
121
121
|
'gemini-4',
|
|
122
122
|
'gemini4',
|
|
123
|
-
'gemini 4
|
|
124
|
-
'4-
|
|
123
|
+
'gemini 4 carbon',
|
|
124
|
+
'4-carbon',
|
|
125
125
|
'gemini pro',
|
|
126
126
|
'gemini-pro',
|
|
127
127
|
'pro',
|
|
128
128
|
],
|
|
129
129
|
},
|
|
130
|
+
'gemini-4-hydrogen': {
|
|
131
|
+
modelName: 'gemini-4-hydrogen',
|
|
132
|
+
friendlyName: 'Gemini (4 Hydrogen)',
|
|
133
|
+
contextWindow: 1048576, // 1M tokens, shared by input and output
|
|
134
|
+
maxOutputTokens: 65536,
|
|
135
|
+
supportsStreaming: true,
|
|
136
|
+
supportsImages: true,
|
|
137
|
+
supportsThinking: true,
|
|
138
|
+
supportsWebSearch: true,
|
|
139
|
+
thinkingMode: 'level',
|
|
140
|
+
// Hydrogen adds an xhigh level above high (its default).
|
|
141
|
+
thinkingLevels: ['low', 'medium', 'high', 'xhigh'],
|
|
142
|
+
timeout: 900000,
|
|
143
|
+
description:
|
|
144
|
+
'Gemini 4 Hydrogen - Fast Gemini 4 model for everyday coding and agentic workflows, available on every API tier (1M context)',
|
|
145
|
+
aliases: [
|
|
146
|
+
'hydrogen',
|
|
147
|
+
'gemini-hydrogen',
|
|
148
|
+
'gemini hydrogen',
|
|
149
|
+
'gemini 4 hydrogen',
|
|
150
|
+
'4-hydrogen',
|
|
151
|
+
],
|
|
152
|
+
},
|
|
130
153
|
'gemini-3.5-flash': {
|
|
131
154
|
modelName: 'gemini-3.5-flash',
|
|
132
155
|
friendlyName: 'Gemini (Flash 3.5)',
|
|
@@ -458,7 +481,7 @@ async function retryWithBackoff(fn, maxRetries = 4) {
|
|
|
458
481
|
/**
|
|
459
482
|
* Main Google provider implementation
|
|
460
483
|
*/
|
|
461
|
-
const DEFAULT_MODEL = 'gemini-4-
|
|
484
|
+
const DEFAULT_MODEL = 'gemini-4-carbon';
|
|
462
485
|
|
|
463
486
|
export const googleProvider = {
|
|
464
487
|
defaultModel: DEFAULT_MODEL,
|