Skip to content

Add MiniMax provider to the cli-client example host - #2611

Open
octo-patch wants to merge 1 commit into
modelcontextprotocol:mainfrom
octo-patch:octo/20260804-provider-add-recvrfAfSYpndZ
Open

Add MiniMax provider to the cli-client example host#2611
octo-patch wants to merge 1 commit into
modelcontextprotocol:mainfrom
octo-patch:octo/20260804-provider-add-recvrfAfSYpndZ

Conversation

@octo-patch

Copy link
Copy Markdown

Reason: Add a MiniMax LLM provider to the cli-client example host.

MiniMax is reachable through an OpenAI-compatible Chat Completions endpoint, so the new minimax provider reuses the host's existing Chat Completions request/response mapping and only swaps the client wiring:

  • providers/minimax.ts: MiniMaxProvider authenticates with MINIMAX_API_KEY and targets MINIMAX_BASE_URL (default https://api.minimax.io/v1); unless pinned with --model/MINIMAX_MODEL, it resolves the newest mainline MiniMax-M<version> model from the models API.
  • cli.ts: registers minimax in the provider picker (auto-selected when MINIMAX_API_KEY is set) and updates the usage, error, and status text.
  • README.md: documents the provider and its example command in the provider table, commands, and flags sections.
  • test/providers.test.ts: adds unit tests for model selection and the API-key requirement.
  • providers/scripted.ts: includes minimax in the run-with-a-real-provider hint.

Checks run: vitest run test/providers.test.ts (10 passed), targeted tsc --noEmit over the providers and test files, eslint on the changed files, and prettier --check on the changed files.

Add a minimax LLMProvider that reuses the existing OpenAI-compatible
Chat Completions mapping, registered via MINIMAX_API_KEY / --provider
minimax, with model resolution from the models API, README docs, and
unit tests for model selection and the API-key requirement.

Co-Authored-By: Claude <noreply@anthropic.com>
@octo-patch
octo-patch requested a review from a team as a code owner August 4, 2026 03:37
@changeset-bot

changeset-bot Bot commented Aug 4, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: b14851e

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@pkg-pr-new

pkg-pr-new Bot commented Aug 4, 2026

Copy link
Copy Markdown

Open in StackBlitz

@modelcontextprotocol/client

npm i https://pkg.pr.new/@modelcontextprotocol/client@2611

@modelcontextprotocol/codemod

npm i https://pkg.pr.new/@modelcontextprotocol/codemod@2611

@modelcontextprotocol/core

npm i https://pkg.pr.new/@modelcontextprotocol/core@2611

@modelcontextprotocol/server

npm i https://pkg.pr.new/@modelcontextprotocol/server@2611

@modelcontextprotocol/server-legacy

npm i https://pkg.pr.new/@modelcontextprotocol/server-legacy@2611

@modelcontextprotocol/express

npm i https://pkg.pr.new/@modelcontextprotocol/express@2611

@modelcontextprotocol/fastify

npm i https://pkg.pr.new/@modelcontextprotocol/fastify@2611

@modelcontextprotocol/hono

npm i https://pkg.pr.new/@modelcontextprotocol/hono@2611

@modelcontextprotocol/node

npm i https://pkg.pr.new/@modelcontextprotocol/node@2611

commit: b14851e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant