This release adds 4 notable features for engineering teams evaluating rollout.
✓ No known CVEs patched in this version
Topics
+14 more
Summary
AI summaryAdds Mistral function calling, Codestral FIM, and new Resources/Prompts primitives.
Full changelog
Second major release. Adds Mistral function calling, Codestral FIM, the Resources and Prompts MCP primitives, doubles the test coverage, and ships the package on npm.
Install
npx -y mistral-mcp
Package: https://www.npmjs.com/package/mistral-mcp
New tools
mistral_tool_call— OpenAI-style function calling withtool_choice(none/auto/any/required/ specific function) andparallel_tool_calls. Returns parsedtool_callsinstructuredContent. Does not execute the tools — hands the model's decision back to the caller. Source: docs.mistral.ai/capabilities/function_calling.codestral_fim— Fill-in-the-middle completion viamistral.fim.complete. Acceptsprompt+suffix+ optionalstoptokens. Model allow-list enforcescodestral-latest.
New primitives
- Resource
mistral://models— JSON catalog of supported model aliases grouped by capability (chat / embed / fim / tool_capable). Sources cited inline. - Prompt
french_invoice_reminder(debtor_name, amount_eur, days_overdue, tone)— polite / firm / final tones, 120-word cap. - Prompt
codestral_review(diff, focus)— senior-review lens: correctness / performance / security / api_design.
Fixed
- Streaming handler now uses the proper
CompletionEventtype imported from@mistralai/mistralai/models/components/completionevent.js— no moreas { data?: unknown }cast. - Streaming output captures
finish_reasonfrom the last choice and exposes it instructuredContent. bin/mainpaths stripped of leading./sonpx mistral-mcpresolves correctly after publish.
Tests — 32 passing
test/tools.unit.test.ts(11) — v0.2 toolstest/fn.unit.test.ts(8) — function calling + FIMtest/resources-prompts.unit.test.ts(7) — Resources + Promptstest/mistral.live.test.ts(4) — real Mistral API: chat, embeddings, function calling, FIMtest/mcp.stdio.test.ts(2) — spawnsdist/index.js, full MCP handshake over stdio
Examples
Two runnable scripts under examples/:
try-it.mjs— smoke test over the npm-published packagerate-it.mjs— feeds the README to Mistral Large through the MCP for a critical self-review
Spec compliance
MCP 2025-11-25. Full CHANGELOG: CHANGELOG.md.
Weekly OSS security release digest.
The CVE patches and breaking changes that affected production tools this week. One email, every Sunday.
No spam, unsubscribe anytime.
Share this release
About Swih/mistral-mcp
MCP server exposing 22 Mistral AI capabilities (chat, OCR, audio, vision, agents, embeddings, moderation, classification, files, batch) with dual transport (stdio + Streamable HTTP), structured outputs on every tool, and 6 curated French/English prompts with argument completion. Vendor API key required.
Related context
Beta — feedback welcome: [email protected]