Sari la conținut

Română · beta. Traducerea a fost făcută automat și este încă în curs de revizuire. Citește pagina în engleză

perspectiva aiqbenchProduse AI

analiza aiqbench

Mistral Studio now exposes built-in and custom Model Context Protocol (MCP) connectors via API/SDK, enabling developers to ground AI agents in enterprise data without rebuilding integration layers. The release introduces direct tool calling and human-in-the-loop approval flows, offering precise control over tool invocation while maintaining necessary governance for production environments. These features streamline the development of complex workflows across Mistral's ecosystem by centralizing connector management and reducing the overhead of maintaining external API documentation and authentication logic.
Sursă care acoperăMistral AI
Ce este aceastaLectura unui model asupra articolului și a acoperirii conexe, scrisă pentru aiqbench. Nu sunt cuvintele publicației.

Connect the dots: Build with built-in and custom MCPs in Studio

Mistral AI5 min de cititArticolul și perspectiva sunt în engleză.

Connect enterprise data to your AI applications with reusable connectors, direct tool calling, and human-in-the-loop approval controls.

Today we are releasing Connectors in Studio to unblock developers building highly customised AI applications grounded in enterprise data. All built-in connectors, as well as custom MCPs, are now available via API/SDK to be used with all model and agent calls.

We are also introducing direct tool calling, giving developers precise control over how and when tools are invoked, without authentication barriers getting in the way of testing and iterating. In addition, you can now implement human-in-the-loop approval flows, allowing secure review and confirmation before tool execution, ensuring both flexibility and governance.

Programmatic access for creating, modifying, listing and deleting your connectors but also listing their tools and directly running them.

Programmatic access for creating, modifying, listing and deleting your connectors but also listing their tools and directly running them.

All connectors are centrally registered making them available across Mistral apps: LeChat and AI Studio (with Vibe coming soon).

All connectors are centrally registered making them available across Mistral apps: LeChat and AI Studio (with Vibe coming soon).

Usage via Conversation API, Completions API, and Agent SDK can now facilitate complex workflows and integration with enterprise systems like CRMs, knowledgebases & productivity tools.

Usage via Conversation API, Completions API, and Agent SDK can now facilitate complex workflows and integration with enterprise systems like CRMs, knowledgebases & productivity tools.

Building enterprise AI agents is getting easier. The harder part is everything around them: tracking down the right API docs, writing and maintaining tool functions, building integrations, setting up OAuth, handling token refresh, and debugging edge cases like broken pagination.

Because of this, teams keep rebuilding the same integration layer. Even within the same company, similar integrations are often implemented multiple times in arbitrary code, leading to security risks, lack of traffic observability, and duplication of work.

A connector solves this by packaging an integration into a single, reusable entity using the MCP protocol.

my_connector = client.beta.connectors.create(

server="https://your-mcp-server.internal/salesforce",

"client_id": os.environ["SALESFORCE_CLIENT_ID"],

"redirect_uri": "https://your-app.internal/oauth/callback",

Once registered, the custom MCP connector is discoverable, governed & monitored in Studio and becomes a native tool for any conversation, agent, or workflow without rewriting integration logic, without re-implementing auth, without duplicating it across teams. Set up once, run it all the time, everywhere. Attaching a connector to any conversation takes one line:

response = client.beta.conversations.start_async(

inputs="Which enterprise accounts renewed last quarter?",

Let’s build an agent for a multi-step workflow based on reasoning across sources given agent’s secure connectivity to GitHub, public repo content & docs, and live data from the web. The agent can understand intent, analyse code, and propose changes alongside other common use cases like generating tests, refactoring, identifying inefficiencies, bugs or vulnerabilities.

client = Mistral(api_key=os.environ["MISTRAL_API_KEY"])

To query and explore code bases, we will leverage the DeepWiki remote server which provides an MCP interface to API/tool endpoint. This way the agent can explore the content and documentation without scraping docs manually or loading whole repos.

my_custom_mcp = client.beta.connectors.create_async(

server="https://mcp.deepwiki.com/mcp",

Registering the MCP server once allows users to reuse it across conversations, agents, or direct tool calls. This is the entry point for any custom MCP flow. For a comprehensive example of how to manage built-in and custom connectors see cookbook: Connectors Management .

The agent should also be able to connect to GitHub and the web; users don’t need to create those connectors as they are already built into Mistral.

Note that a connector can expose dozens of tools. If users want to exclude potentially damaging actions, tool_configuration controls the tool availability without modifying the connector itself. More details can be found in Cookbook: Using Connectors in Conversations .

my_agent = client.beta.agents.create_async(

instructions="""\ You are an Open-Source Software Auditor. \

Always be thorough and cite your sources.\

{"type": "connector", "connector_id": "my_custom_mcp.name"},

response = await client.beta.conversations.start_async(

agent_id=my_agent.id,

Not every workflow needs the model to decide when and how tools are invoked. For a more deterministic experience, users can now call connectors directly.

result = await client.beta.connectors.call_tool_async(

print(f"Tool output:\n{result.content}")

This is especially useful for debugging and pipeline-style automation which limits ambiguity. For the full pattern, see cookbook: Connector tool calling .

Some actions should not execute without explicit approval. requires_confirmation pauses execution and hands control back to your application before the tool runs:

The model proposes, the user application decides whether to proceed. The boundary between AI judgment and human judgment is explicit and written in code. For the full approval flow, including the pending tool call and resume step, see cookbook: Human-in-the-loop Confirmation .

You can now use Connectors in Studio, in Public Preview. Start building today by visiting the Studio console: https://console.mistral.ai/build/connectors

Text integral sub licența deschisă a publicației · 756 cuvinte

Subiecte conexe