Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
chore: add MiniMax as an OpenAI-compatible LLM provider
Diego Zacarias4fb5a8fb9739
diff --git a/charts/clerum-crds/crds/host.yaml b/charts/clerum-crds/crds/host.yamlindex 197d73439..8599faceb 100644--- a/charts/clerum-crds/crds/host.yaml+++ b/charts/clerum-crds/crds/host.yaml@@ -74,6 +74,7 @@ spec:- moonshot- nebius- novita+ - minimax- azuredescription: LLM provider to use.name:@@ -189,6 +190,7 @@ spec:- moonshot- nebius- novita+ - minimax- azuredescription: >-Fallback LLM provider. Same enum as spec.model.provider.diff --git a/charts/clerum-crds/crds/workflowrecipe.yaml b/charts/clerum-crds/crds/workflowrecipe.yamlindex addda89cc..ec1bae3ab 100644--- a/charts/clerum-crds/crds/workflowrecipe.yaml+++ b/charts/clerum-crds/crds/workflowrecipe.yaml@@ -284,7 +284,7 @@ spec:# transport is mono-credential and cannot deliver Bedrock's key# pair nor azure's required non-secret AZURE_OPENAI_ENDPOINT —# fail at admission, not mid-workflow (see workflowService).- enum: [openai, claude, zai, bailian, vertex, openrouter, gemini, deepseek, groq, together, fireworks, mistral, xai, cerebras, deepinfra, perplexity, moonshot, nebius, novita]+ enum: [openai, claude, zai, bailian, vertex, openrouter, gemini, deepseek, groq, together, fireworks, mistral, xai, cerebras, deepinfra, perplexity, moonshot, nebius, novita, minimax]description: LLM provider.secretRef:type: object@@ -558,7 +558,7 @@ spec:# bedrock AND azure intentionally absent (mono-credential# WRC transport; see the comment on the first llm provider# enum above).- enum: [openai, claude, zai, bailian, vertex, openrouter, gemini, deepseek, groq, together, fireworks, mistral, xai, cerebras, deepinfra, perplexity, moonshot, nebius, novita]+ enum: [openai, claude, zai, bailian, vertex, openrouter, gemini, deepseek, groq, together, fireworks, mistral, xai, cerebras, deepinfra, perplexity, moonshot, nebius, novita, minimax]soul:type: stringdescription: Per-step SOUL content override.diff --git a/control-api/package-lock.json b/control-api/package-lock.jsonindex 94317002b..45c93ac23 100644--- a/control-api/package-lock.json+++ b/control-api/package-lock.json@@ -1,12 +1,12 @@{"name": "clerum-control-api",- "version": "0.1.470",+ "version": "0.1.471","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "clerum-control-api",- "version": "0.1.470",+ "version": "0.1.471","dependencies": {"@clerum/display-field": "file:../packages/display-field","@clerum/image-policy": "file:../packages/image-policy",diff --git a/control-api/package.json b/control-api/package.jsonindex 32f95cd2f..d4f9cf5ff 100644--- a/control-api/package.json+++ b/control-api/package.json@@ -1,6 +1,6 @@{"name": "clerum-control-api",- "version": "0.1.470",+ "version": "0.1.471","description": "Internal Clerum control plane REST API + UI for managing CRDs and secrets","main": "dist/main.js","engines": {diff --git a/control-api/src/config.ts b/control-api/src/config.tsindex fa9d553d0..be5871cbc 100644--- a/control-api/src/config.ts+++ b/control-api/src/config.ts@@ -115,7 +115,7 @@ type Config = {// TOTAL mapped model count is below this, the whole run SKIPS stale-marking// (a flappy/truncated external catalog must not mass-stale the allowlist);// the inert `enabled=false` inserts still proceed. Calibrated off the vendored- // snapshot (~1051 mapped models across 21 providers) — a conservative <10%+ // snapshot (~1058 mapped models across 22 providers) — a conservative <10%// floor catches a catastrophic collapse without tripping on normal variation.modelsDevMinPlausibleLiveTotal: number// §4.5 sanity guard, layer 2: per-provider low/zero-live floor. A providerdiff --git a/control-api/src/data/modelsDevSnapshot.ts b/control-api/src/data/modelsDevSnapshot.tsindex 5ba49b0e7..c988c1751 100644--- a/control-api/src/data/modelsDevSnapshot.ts+++ b/control-api/src/data/modelsDevSnapshot.ts@@ -2,7 +2,7 @@* VENDORED offline snapshot of the public models.dev catalog* (https://models.dev/api.json, MIT-licensed). GENERATED DATA — do not edit by hand.*- * Trimmed to only the ~21 models.dev provider keys that control-api maps to its+ * Trimmed to only the ~22 models.dev provider keys that control-api maps to its* providers, and to only the fields discovery consumes ({ id, name?, limit.context? }).* Used by services/modelsDevClient.ts as the offline fallback when the LIVE fetch* of api.json fails, so catalog sync always has data. Regenerate by re-fetching@@ -4533,4 +4533,24 @@ export const VENDORED_MODELS_DEV_SNAPSHOT: RawModelsDevCatalog = {'gpt-5.5': { id: 'gpt-5.5', name: 'GPT-5.5', limit: { context: 1050000 } },},},+ minimax: {+ name: 'MiniMax (minimax.io)',+ models: {+ 'MiniMax-M2.7': { id: 'MiniMax-M2.7', name: 'MiniMax-M2.7', limit: { context: 204800 } },+ 'MiniMax-M2.7-highspeed': {+ id: 'MiniMax-M2.7-highspeed',+ name: 'MiniMax-M2.7-highspeed',+ limit: { context: 204800 },+ },+ 'MiniMax-M2.1': { id: 'MiniMax-M2.1', name: 'MiniMax-M2.1', limit: { context: 204800 } },+ 'MiniMax-M2': { id: 'MiniMax-M2', name: 'MiniMax-M2', limit: { context: 196608 } },+ 'MiniMax-M2.5-highspeed': {+ id: 'MiniMax-M2.5-highspeed',+ name: 'MiniMax-M2.5-highspeed',+ limit: { context: 204800 },+ },+ 'MiniMax-M3': { id: 'MiniMax-M3', name: 'MiniMax-M3', limit: { context: 1000000 } },+ 'MiniMax-M2.5': { id: 'MiniMax-M2.5', name: 'MiniMax-M2.5', limit: { context: 204800 } },+ },+ },}diff --git a/control-api/src/db.ts b/control-api/src/db.tsindex a4e1e5403..4d37efad1 100644--- a/control-api/src/db.ts+++ b/control-api/src/db.ts@@ -5914,6 +5914,24 @@ export const CONTROL_API_MIGRATIONS: DbMigration[] = [version: '0099_gfs_upload_finalizing_recovery',apply: applyGfsUploadFinalizingSchema,},+ {+ version: '0100_seed_minimax_allowed_model',+ apply: async db => {+ // Seed one sensible default model for the newly added `minimax` provider+ // (packages/llm-providers). Same shape as 0056/0057/0058: enabled=true (a+ // provider without credentials is unusable regardless), a `vendor` label+ // for UI grouping, and ON CONFLICT DO NOTHING so the migration stays+ // idempotent and never clobbers an admin-edited row. `MiniMax-M2` mirrors+ // registryCore's minimax defaultModel. Operators curate the rest via+ // /llm-models.+ await db.query(`+ INSERT INTO llm_allowed_models (provider, model, vendor)+ VALUES+ ('minimax', 'MiniMax-M2', 'MiniMax')+ ON CONFLICT DO NOTHING;+ `)+ },+ },]async function consolidateWorkflowAllowedUsersToTriggers(db: DbClient): Promise<void> {diff --git a/control-api/src/services/modelsDevClient.ts b/control-api/src/services/modelsDevClient.tsindex c39e1a6f2..91fb47c0d 100644--- a/control-api/src/services/modelsDevClient.ts+++ b/control-api/src/services/modelsDevClient.ts@@ -61,9 +61,9 @@ export type RawModelsDevCatalog = Record<string, RawModelsDevProvider>/*** Our provider id → models.dev provider KEY (spec 09 §11.2: the mapping layer is- * load-bearing — ~10/21 keys differ from our ids). Every value was verified+ * load-bearing — ~10/22 keys differ from our ids). Every value was verified* against a live `api.json` fetch during implementation. Providers absent from- * this map (none today — all 21 are mapped) would simply contribute nothing.+ * this map (none today — all 22 are mapped) would simply contribute nothing.** Notable / non-obvious choices:* - `zai` → `zai-coding-plan`: our zai baseURL is the Z.AI *Coding Plan*@@ -77,7 +77,10 @@ export type RawModelsDevCatalog = Record<string, RawModelsDevProvider>* `fireworks` → `fireworks-ai`, `moonshot` → `moonshotai`,* `novita` → `novita-ai`.* - direct (key == our id): openai, openrouter, deepseek, groq, mistral, xai,- * cerebras, deepinfra, perplexity, nebius, azure.+ * cerebras, deepinfra, perplexity, nebius, minimax, azure. Our minimax+ * baseURL is the international `minimax.io` endpoint, so we map to the+ * `minimax` key (the international catalog), not `minimax-cn` / the+ * coding-plan keys.** NOTE: Azure/Bedrock ids in models.dev are generic model ids, NOT the Azure* deployment names / regional inference-profile ids a real deployment uses.@@ -106,6 +109,7 @@ export const PROVIDER_KEY_MAP: Readonly<Record<LlmProviderId, string>> = {moonshot: 'moonshotai',nebius: 'nebius',novita: 'novita-ai',+ minimax: 'minimax',azure: 'azure',}diff --git a/control-api/test/crd.llmProviderEnums.test.ts b/control-api/test/crd.llmProviderEnums.test.tsindex 6a38f77cc..0a8604030 100644--- a/control-api/test/crd.llmProviderEnums.test.ts+++ b/control-api/test/crd.llmProviderEnums.test.ts@@ -26,6 +26,7 @@ const NEW_SINGLE_KEY = ['moonshot','nebius','novita',+ 'minimax',] as constfunction collectProviderEnums(crdFile: string): string[][] {@@ -55,7 +56,7 @@ function collectProviderEnums(crdFile: string): string[][] {}describe('LLM provider CRD enums', () => {- it('host.yaml carries all 15 new providers (incl. azure) in both provider enums', () => {+ it('host.yaml carries all 16 new providers (incl. azure) in both provider enums', () => {const enums = collectProviderEnums('host.yaml')// spec.model.provider + spec.llmPolicy.fallbacks[].providerexpect(enums).toHaveLength(2)@@ -69,7 +70,7 @@ describe('LLM provider CRD enums', () => {}})- it('workflowrecipe.yaml carries the 14 single-key providers but EXCLUDES azure and bedrock', () => {+ it('workflowrecipe.yaml carries the 15 single-key providers but EXCLUDES azure and bedrock', () => {const enums = collectProviderEnums('workflowrecipe.yaml')// the two WRC provider enums (model.provider + a second one ~line 543)expect(enums).toHaveLength(2)diff --git a/control-api/test/llmProviders.test.ts b/control-api/test/llmProviders.test.tsindex ac82486ed..842006b5d 100644--- a/control-api/test/llmProviders.test.ts+++ b/control-api/test/llmProviders.test.ts@@ -13,7 +13,7 @@ import {// (same convention as @clerum/image-policy → control-api/test/imagePolicy.test.ts).describe('PROVIDER_IDS', () => {- it('is the canonical 21-provider set in auto-detect priority order', () => {+ it('is the canonical 22-provider set in auto-detect priority order', () => {expect([...PROVIDER_IDS]).toEqual(['openai','claude',@@ -35,6 +35,7 @@ describe('PROVIDER_IDS', () => {'moonshot','nebius','novita',+ 'minimax','azure',])})@@ -131,7 +132,7 @@ describe('non-secret per-Host env', () => {expect(PROVIDER_NON_SECRET_ENV.bailian).toEqual([])})- it('declares azure required AZURE_OPENAI_ENDPOINT; the 14 single-key providers have none', () => {+ it('declares azure required AZURE_OPENAI_ENDPOINT; the 15 single-key providers have none', () => {// azure carries a REQUIRED non-secret env — the reason it is admissible on a// Host (host-<ref>-env delivers it) but excluded from the mono-credential// WRC/workflowrecipe path.@@ -154,6 +155,7 @@ describe('non-secret per-Host env', () => {'moonshot','nebius','novita',+ 'minimax',] as const) {expect(PROVIDER_NON_SECRET_ENV[id]).toEqual([])}diff --git a/control-api/test/services.modelsDevClient.test.ts b/control-api/test/services.modelsDevClient.test.tsindex 68c9a76c2..a5096f995 100644--- a/control-api/test/services.modelsDevClient.test.ts+++ b/control-api/test/services.modelsDevClient.test.ts@@ -37,7 +37,7 @@ const FIXTURE: RawModelsDevCatalog = {}describe('modelsDevClient — PROVIDER_KEY_MAP', () => {- it('maps every one of our 21 providers to a models.dev key', () => {+ it('maps every one of our 22 providers to a models.dev key', () => {for (const id of PROVIDER_IDS) {expect(typeof PROVIDER_KEY_MAP[id]).toBe('string')expect(PROVIDER_KEY_MAP[id].length).toBeGreaterThan(0)diff --git a/control-ui/components/LlmProviderConfig/index.tsx b/control-ui/components/LlmProviderConfig/index.tsxindex 0c8f68e12..812d6fce8 100644--- a/control-ui/components/LlmProviderConfig/index.tsx+++ b/control-ui/components/LlmProviderConfig/index.tsx@@ -67,7 +67,7 @@ function fallbackEffectiveSlots(* The single Host LLM configuration surface (spec Topic 1b, jury design C —* "model like A, render like C"). Credentials are a PROJECTION of the provider* domain: it renders provider blocks ONLY for `{primary} ∪ {each fallback}`, as- * a progressive flow, instead of a wall of all 21 provider groups.+ * a progressive flow, instead of a wall of all 22 provider groups.** 1. Primary provider block — provider + model + its credential field(s). The* asymmetric save gate (see `isPrimaryUsable`) blocks create/save until thediff --git a/control-ui/lib/llm.ts b/control-ui/lib/llm.tsindex 630150395..d9c27a41a 100644--- a/control-ui/lib/llm.ts+++ b/control-ui/lib/llm.ts@@ -85,6 +85,7 @@ export const LLM_DEFAULT_MODEL_BY_PROVIDER: Record<LlmProvider, string> = {moonshot: 'kimi-k2.6',nebius: 'Qwen/Qwen3-235B-A22B-Instruct-2507',novita: 'deepseek/deepseek-v3.2',+ minimax: 'MiniMax-M2',// Azure: the "model" is a per-deployment name the operator chooses; this is// only a placeholder pre-select (operator overrides in the allowlist).azure: 'gpt-4.1',@@ -102,6 +103,7 @@ const SECRET_FIELD_HINTS: Record<string, { label: string; placeholder: string }>'claude-api-key': { label: 'Claude API key', placeholder: 'sk-ant-...' },'zai-api-key': { label: 'Z.AI API key', placeholder: 'zai-...' },'bailian-api-key': { label: 'Bailian API key', placeholder: 'bailian-...' },+ 'minimax-api-key': { label: 'MiniMax API key', placeholder: 'eyJ...' },'vertex-service-account-json': {label: 'Google Vertex AI service account JSON',placeholder: '{ "type": "service_account", ... }',diff --git a/control-ui/package-lock.json b/control-ui/package-lock.jsonindex d3c00d762..186b759a2 100644--- a/control-ui/package-lock.json+++ b/control-ui/package-lock.json@@ -1,12 +1,12 @@{"name": "clerum-control-ui",- "version": "0.1.434",+ "version": "0.1.435","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "clerum-control-ui",- "version": "0.1.434",+ "version": "0.1.435","dependencies": {"@clerum/display-field": "file:../packages/display-field","@clerum/llm-providers": "file:../packages/llm-providers",diff --git a/control-ui/package.json b/control-ui/package.jsonindex e66af8377..414f82f1d 100644--- a/control-ui/package.json+++ b/control-ui/package.json@@ -1,6 +1,6 @@{"name": "clerum-control-ui",- "version": "0.1.434",+ "version": "0.1.435","private": true,"scripts": {"dev": "NEXT_IGNORE_INCORRECT_LOCKFILE=1 next dev",diff --git a/control-ui/public/provider-icons/minimax.svg b/control-ui/public/provider-icons/minimax.svgnew file mode 100644index 000000000..0b4584e25--- /dev/null+++ b/control-ui/public/provider-icons/minimax.svg@@ -0,0 +1 @@+<svg height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>MiniMax</title><path d="M2 19.5L7 4.5l5 8.5 5-8.5 5 15h-3.6l-2.9-8.9-3.5 6-3.5-6L5.6 19.5H2z" fill="#F23F5D" fill-rule="evenodd" clip-rule="evenodd"></path></svg>\ No newline at end of filediff --git a/docs/deploy/llm-providers.md b/docs/deploy/llm-providers.mdindex 21a31bf25..cb2e31cf1 100644--- a/docs/deploy/llm-providers.md+++ b/docs/deploy/llm-providers.md@@ -5,7 +5,7 @@ credentials (including the multi-slot providers **Google Vertex AI** and**Amazon Bedrock**), how to manage the operator-declared model allowlist, and howthe per-session model selector behaves in the desktop app.-The canonical provider set — **21 providers**, from `openai`, `claude`+The canonical provider set — **22 providers**, from `openai`, `claude`(Anthropic), `zai` and `bailian` through the own-SDK `vertex` / `bedrock` to theOpenAI-compatible additions and `azure` — and their credential slots live in theshared `@clerum/llm-providers` package, which the Control UI, control-api,@@ -39,7 +39,7 @@ secrets form only shows a hint linking there; it does not duplicate the editor.Every other provider (the OpenAI-compatible additions — `openrouter`, `gemini`,`deepseek`, `groq`, `together`, `fireworks`, `mistral`, `xai`, `cerebras`,-`deepinfra`, `perplexity`, `moonshot`, `nebius`, `novita`) uses a single+`deepinfra`, `perplexity`, `moonshot`, `nebius`, `novita`, `minimax`) uses a single`<id>-api-key` slot and needs no non-secret env.The secrets form is **write-only**: existing values are never displayed (the API@@ -86,7 +86,7 @@ deliberately absent from the recipe CRD's provider enum, so a recipe pinningeither is rejected at admission. The workflow `configure` transport carries asingle credential string, which can deliver neither Bedrock's key pair norAzure's required endpoint. Both remain fully supported for interactive Hosts;-the other 19 providers are admissible in recipes — see the+the other 20 providers are admissible in recipes — see the[providers overview](../llm-providers/README.md) for the per-surface matrix andthe `clerum-model-secret-mapping` caveat.diff --git a/docs/llm-providers/README.md b/docs/llm-providers/README.mdindex 75de54a83..16cbb565d 100644--- a/docs/llm-providers/README.md+++ b/docs/llm-providers/README.md@@ -22,7 +22,7 @@ by (potentially) three different people.```mermaidflowchart LRsubgraph P["1. PROVIDER — who serves the model"]- P1["Host CRD spec.model.provider<br/>one of 21 ids<br/>chosen by the operator"]+ P1["Host CRD spec.model.provider<br/>one of 22 ids<br/>chosen by the operator"]endsubgraph M["2. MODEL — which model of that provider"]M1["allowlist llm_allowed_models<br/>operator-declared in Control UI<br/>user picks within it, per chat"]@@ -51,7 +51,7 @@ A few rules that follow from this split, and that surprise people:## 2. Which providers are supported-**21 providers**, defined once in+**22 providers**, defined once in[`packages/llm-providers/index.cjs`](../../packages/llm-providers/index.cjs) —the single source of truth consumed by mcp-host, control-api, the workflowruntime, the host controller and the Control UI.@@ -60,7 +60,7 @@ They differ only in _how much code_ the integration needs. That is the axis thatdetermines everything else (which config they need, where they work, what can gowrong):-### Group A — OpenAI-compatible, pure data (16)+### Group A — OpenAI-compatible, pure data (17)These speak an OpenAI-compatible `/chat/completions` API. Integrating them is a`baseURL` + one API key, **no driver code**. They are all handled by one shared@@ -84,6 +84,7 @@ class, `OpenAICompatibleProvider`.| Moonshot | `moonshot` | `moonshot-api-key` | `kimi-k2.6` || Nebius | `nebius` | `nebius-api-key` | `Qwen/Qwen3-235B-A22B-Instruct-2507` || Novita AI | `novita` | `novita-api-key` | `deepseek/deepseek-v3.2` |+| MiniMax | `minimax` | `minimax-api-key` | `MiniMax-M2` |`openai` itself also speaks this protocol but uses the official SDK (Group B).@@ -114,8 +115,8 @@ authenticates with an `api-key` header instead of `Authorization: Bearer`, and| Surface | Providers supported || ----------------------------- | --------------------------------------- |-| Interactive Host (chat agent) | all **21** |-| WorkflowRecipe LLM steps | **19** — `bedrock` and `azure` excluded |+| Interactive Host (chat agent) | all **22** |+| WorkflowRecipe LLM steps | **20** — `bedrock` and `azure` excluded |`bedrock` and `azure` are deliberately absent from the WorkflowRecipe CRD enum:the workflow `configure` transport carries a **single** credential string, so it@@ -304,12 +305,12 @@ failing over on those would just mask bugs.### Known sharp edge: workflow steps and the secret mapping-The WorkflowRecipe CRD admits **19** providers, but the shipped+The WorkflowRecipe CRD admits **20** providers, but the shipped`clerum-model-secret-mapping` ConfigMap([`deploy/base/mcp-host/model-secret-mapping.yaml`](../../deploy/base/mcp-host/model-secret-mapping.yaml))maps only **five**: `openai`, `claude`, `zai`, `bailian`, `vertex`.-A recipe pinning any of the other 14 (`groq`, `mistral`, `xai`, …) passes+A recipe pinning any of the other 15 (`groq`, `mistral`, `xai`, `minimax`, …) passesadmission and then fails at runtime with `404 No secret mapping found`. ThisConfigMap is declarative — nothing generates it — so to use those providers inworkflows an operator must add the entry themselves:diff --git a/mcp-host/package-lock.json b/mcp-host/package-lock.jsonindex 0d8b61fd5..56457afba 100644--- a/mcp-host/package-lock.json+++ b/mcp-host/package-lock.json@@ -1,12 +1,12 @@{"name": "clerum-mcp-host",- "version": "0.1.269",+ "version": "0.1.270","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "clerum-mcp-host",- "version": "0.1.269",+ "version": "0.1.270","license": "SEE LICENSE IN LICENSE","dependencies": {"@anthropic-ai/sdk": "^0.32.0",diff --git a/mcp-host/package.json b/mcp-host/package.jsonindex 9639271fd..f9f2c0aab 100644--- a/mcp-host/package.json+++ b/mcp-host/package.json@@ -1,6 +1,6 @@{"name": "clerum-mcp-host",- "version": "0.1.269",+ "version": "0.1.270","description": "MCP Host - reads Host CRD and provides LLM access via OpenAI/Claude","main": "dist/main.js","engines": {diff --git a/mcp-host/src/llm/__tests__/makeProviderR6.test.ts b/mcp-host/src/llm/__tests__/makeProviderR6.test.tsindex 8e7e47d48..a61c6cb82 100644--- a/mcp-host/src/llm/__tests__/makeProviderR6.test.ts+++ b/mcp-host/src/llm/__tests__/makeProviderR6.test.ts@@ -36,6 +36,7 @@ const R6_COMPAT = ['moonshot','nebius','novita',+ 'minimax',] as constfunction createMockOpenAIClient() {diff --git a/mcp-host/src/llm/__tests__/registry.test.ts b/mcp-host/src/llm/__tests__/registry.test.tsindex daecbdc11..eb8b107ef 100644--- a/mcp-host/src/llm/__tests__/registry.test.ts+++ b/mcp-host/src/llm/__tests__/registry.test.ts@@ -27,8 +27,8 @@ describe('provider registry — auto-detection order (§5.9)', () => {])})- it('registers all 21 canonical providers and every R6 addition', () => {- expect(ALL_PROVIDERS).toHaveLength(21)+ it('registers all 22 canonical providers and every R6 addition', () => {+ expect(ALL_PROVIDERS).toHaveLength(22)for (const p of ['openrouter','gemini',@@ -44,6 +44,7 @@ describe('provider registry — auto-detection order (§5.9)', () => {'moonshot','nebius','novita',+ 'minimax','azure',] as const) {expect(ALL_PROVIDERS).toContain(p)diff --git a/mcp-host/src/llm/registryCore.ts b/mcp-host/src/llm/registryCore.tsindex 587ccc7a8..787f27bac 100644--- a/mcp-host/src/llm/registryCore.ts+++ b/mcp-host/src/llm/registryCore.ts@@ -177,6 +177,13 @@ const RUNTIME_FIELDS: Record<LlmProvider, RuntimeProviderFields> = {baseURL: 'https://api.novita.ai/openai',tokenizer: 'fallback',},+ minimax: {+ // International host; `${baseURL}/chat/completions` resolves to the+ // OpenAI-compatible route. China-region deployments use api.minimaxi.com.+ defaultModel: 'MiniMax-M2',+ baseURL: 'https://api.minimax.io/v1',+ tokenizer: 'fallback',+ },// Azure: light-driver arm (registry.ts). No STATIC baseURL — the per-resource// host comes from AZURE_OPENAI_ENDPOINT at construction, so it must NOT hit the// data-driven baseURL arm. Tokenizer 'openai' (it serves OpenAI models) anddiff --git a/packages/llm-providers/index.cjs b/packages/llm-providers/index.cjsindex 7e9989c6f..b38412052 100644--- a/packages/llm-providers/index.cjs+++ b/packages/llm-providers/index.cjs@@ -48,6 +48,7 @@ const PROVIDER_IDS = Object.freeze(['moonshot','nebius','novita',+ 'minimax',// Light-driver (OpenAI-compatible shape, non-vanilla auth/host).'azure',])@@ -112,6 +113,7 @@ const PROVIDER_CREDENTIAL_SLOTS = Object.freeze({moonshot: apiKeySlot('moonshot-api-key', 'MOONSHOT_API_KEY'),nebius: apiKeySlot('nebius-api-key', 'NEBIUS_API_KEY'),novita: apiKeySlot('novita-api-key', 'NOVITA_API_KEY'),+ minimax: apiKeySlot('minimax-api-key', 'MINIMAX_API_KEY'),// Azure: one API key, sent via the `api-key` header (driver concern, not here).azure: apiKeySlot('azure-openai-api-key', 'AZURE_OPENAI_API_KEY'),})@@ -141,6 +143,7 @@ const PROVIDER_DISPLAY_LABELS = Object.freeze({moonshot: 'Moonshot (Kimi)',nebius: 'Nebius',novita: 'Novita AI',+ minimax: 'MiniMax',azure: 'Azure OpenAI',})@@ -175,6 +178,7 @@ const PROVIDER_NON_SECRET_ENV = Object.freeze({moonshot: Object.freeze([]),nebius: Object.freeze([]),novita: Object.freeze([]),+ minimax: Object.freeze([]),// Azure has no fixed baseURL: the per-resource endpoint (and optional// api-version) are operator-supplied non-secret env. The `model` field is the// Azure DEPLOYMENT name, not a catalog id (documented for operators).diff --git a/packages/llm-providers/index.d.ts b/packages/llm-providers/index.d.tsindex 9aeb47789..a5177bb88 100644--- a/packages/llm-providers/index.d.ts+++ b/packages/llm-providers/index.d.ts@@ -26,6 +26,7 @@ export declare const PROVIDER_IDS: readonly ['moonshot','nebius','novita',+ 'minimax','azure',]