KosmoKrator

other

Mistralai MCP, CLI, and Lua Integration for AI Agents

Mistralai integration docs for AI agents: MCP gateway setup, Mistralai CLI commands, Lua API reference, credentials, and function schemas.

7 functions 3 read 4 write API key auth

Mistralai for agents

Credentials can be configured manually in web or CLI hosts.

Use this integration from Lua code mode, the headless integrations CLI, or the KosmoKrator MCP gateway. The same package metadata powers all three surfaces.

Machine-Readable Metadata
integration_slug
mistralai
route_slug
mistralai
package
mistralai
auth_strategy
api_key API key
cli_setup_supported
true
cli_runtime_supported
true
mcp_gateway_supported
true
lua_supported
true
supports_multi_account
true

Quick Links

Mistralai MCP Client Matrix

Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for Mistralai.

Mistralai CLI Matrix

Use these pages for direct Mistralai CLI workflows in scripts, CI, cron, and agent wrappers.

Function Catalog

FunctionTypeParametersDescription
mistralai.mistralai_chat Write write 4 Generate a chat completion using a MistralAI model. Send a list of messages (with roles "system", "user", or "assistant") and receive a model-generated response. Use temperature to control creativity (0 = deterministic, 1 = creative).
mistralai.mistralai_create_embedding Write write 2 Generate text embeddings using a MistralAI embedding model. Converts text into numerical vectors for semantic search, similarity comparison, or clustering. Supports single strings or arrays of strings.
mistralai.mistralai_list_models Read read 0 List all models available in your MistralAI account. Returns model IDs, creation timestamps, and capabilities. Use this to discover which models you can use for chat completions or embeddings.
mistralai.mistralai_finetune Write write 4 Create a fine-tuning job on MistralAI. Upload training data and select a base model to create a custom fine-tuned model. The job runs asynchronously — check the returned job ID for status updates.
mistralai.mistralai_list_agents Read read 0 List all MistralAI agents in your account. Returns agent IDs, names, models, and descriptions. Agents are AI assistants with custom instructions and tools.
mistralai.mistralai_create_agent Write write 4 Create a new MistralAI agent. Specify a name, model, and instructions to define how the agent should behave. Agents are persistent AI assistants that can be used for conversations with custom personalities and capabilities.
mistralai.mistralai_get_current_user Read read 0 Get information about the currently authenticated MistralAI user. Returns account details, subscription tier, and usage information.