You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat(nl2sql): add GLM, Doubao, and Sakana Fugu providers (19 -> 22)
Three more built-in OpenAI-compatible NL->SQL providers, each a one-line
_PROVIDERS registry entry (all derived lookup tables update automatically):
- glm -> https://api.z.ai/api/paas/v4 ZAI_API_KEY (fallback ZHIPUAI_API_KEY) glm-4.5-flash
- doubao -> https://ark.cn-beijing.volces.com/api/v3 ARK_API_KEY doubao-seed-1-6-251015
- sakana -> https://api.sakana.ai/v1 SAKANA_API_KEY fugu
Base URLs, key env vars, and default models verified against each
vendor's official docs. Extended the key-discovery test with the new
deviating env vars (ZAI_API_KEY, ARK_API_KEY). Bumped the built-in count
to 22 in README/tools.md/tour.md and added the three rows to the
user-guide provider table. release-notes-0.6.9 left at 19 (historical).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0122yLZLJ8t4W43sdN6BmTZc
* test(nl2sql): cover GLM legacy ZHIPUAI_API_KEY fallback
Addresses Sourcery review on #252 — the GLM spec accepts both ZAI_API_KEY
and the legacy ZHIPUAI_API_KEY; parametrize the key-discovery test for the
fallback too.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0122yLZLJ8t4W43sdN6BmTZc
---------
Co-authored-by: Claude <noreply@anthropic.com>
| NL→SQL — single provider | Set any one vendor key (`ANTHROPIC_API_KEY`, `OPENAI_API_KEY`, `GEMINI_API_KEY`, `XAI_API_KEY`, `GROQ_API_KEY`, `HF_TOKEN`, … — 19 built-in providers). MCPg auto-picks the default. |
224
+
| NL→SQL — single provider | Set any one vendor key (`ANTHROPIC_API_KEY`, `OPENAI_API_KEY`, `GEMINI_API_KEY`, `XAI_API_KEY`, `GROQ_API_KEY`, `HF_TOKEN`, … — 22 built-in providers). MCPg auto-picks the default. |
225
225
| NL→SQL — multiple providers, caller picks | Set all vendor keys you want active. Each call to `translate_nl_to_sql` can pass `provider="…"` (any configured built-in or custom). |
226
226
227
227
### Full reference
@@ -492,7 +492,7 @@ Compact category list. For the full, current tool reference see
Copy file name to clipboardExpand all lines: docs/tools.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ plumbing:
34
34
|`MCPG_SECRETS_BACKEND`|`env` (default), `vault`, `aws`, or `gcp`. Resolves credential settings through HashiCorp Vault, AWS Secrets Manager, or GCP Secret Manager instead of plain env vars. Per-provider config: `MCPG_VAULT_*`, `MCPG_AWS_*`, `MCPG_GCP_*`. |
35
35
|`MCPG_OTEL_ENABLED` / `MCPG_OTEL_SERVICE_NAME`| Emit one OpenTelemetry span per `call_tool` (tool name, argument count, status — never argument values). Requires the `mcpg[otel]` extra. |
36
36
|`MCPG_SLOW_CALL_THRESHOLD_MS` / `MCPG_LOG_FORMAT`| Log a structured "slow call" record when a tool exceeds the threshold; switch the logger between `text` and `json` formats. |
0 commit comments