Connect Mistral Vibe with Tredict

FAQ
LLMs are artificial systems that make mistakes and are no substitute for a trainer or your own mind.

Mistral Vibe comprises the Mistral Vibe Chat web interface and the Mistral Vibe Code CLI tool. Follow these steps to connect Mistral Vibe Chat or Mistral Vibe Code to the ‘Tredict MCP Server’.

Connect Mistral Vibe Chat via the OAuth connector (recommended)
In the ‘Vibe Chat’ web interface, go to ‘Context’ and click ‘Connectors’, then ‘Add connector’ and select ‘Add custom connector’.

Enable the ‘OAuth2 Advanced Settings’ so you can enter the Client ID and Client Secret, then fill in the fields as follows.

Connector name: Tredict
Server: https://www.tredict.com/api/mcp/v2
Description: Analyse endurance sports activities, build training plans and sync structured workouts to your sports watch.
Authentication: OAuth2.1
Client ID: mistral
Client Secret: mistral
Set up the custom OAuth connector for Tredict in Mistral Vibe Chat.
The custom OAuth connector fields for Tredict in Vibe Chat.

Click ‘Add connector’ to start the OAuth2 flow. You will be redirected to the Tredict authorisation page and, after successful sign-in, back to Vibe Chat.

The Tredict connector is connected in Mistral Vibe Chat.
The Tredict connector is connected to Vibe Chat.
Connect Mistral Vibe Chat via a Tredict access token
Alternatively, you can set up the connector with a personal access token instead of via OAuth.

In the ‘Vibe Chat’ web interface, go to the ‘Context’ page by selecting this entry in the left-hand side panel.
Click on ‘Connectors’ and then on the ‘Add connector’ button.

Create a Tredict Personal API access token now in the Tredict app under Settings -> Personal API / MCP -> Access token.

Now you can fill in the fields under the ‘Custom MCP Connector’ tab as follows:

Connector Server: https://www.tredict.com/api/mcp/v2
Authentication method: API Token Authentication
Header name: Authorization
Header type: Bearer
Header value: [Insert your Tredict Personal API Access Token here]
Add the Tredict MCP connector to Mistral Vibe Chat.
The MCP connector fields for Tredict in Vibe Chat.

Voilà! You should now be connected.

Choosing the Tredict selector in Mistral Vibe Chat
Now select the Tredict selector in the Mistral Chat input field by clicking on the corresponding icon and selecting ‘Tredict’.
Select the Tredict MCP connector in Mistral Vibe Chat.
The Tredict selector has to be selected for Vibe Chat to use the Tredict MCP tools.
Example prompts for Mistral Vibe Chat

Now you can use the ‘Tredict MCP Tools’ directly in Mistral Vibe Chat, for example with these prompts:

"Create a two-week training plan for running and cycling in Tredict. Based on my heart rate. Analyse my performance and training history beforehand so that you can get an idea of my fitness level."

"Please find recent training sessions without good titles, analyse them, and set a better title and description in Tredict."

"Analyse my training history and determine my functional threshold power (FTP) for running."

"Show me my best training session from last year."

Here you will find a list of Tredict MCP server tools, resources and prompts: Tredict MCP Server Documentation.

Example video: Setting better training titles with Mistral Vibe Chat
Vibe Chat improves the title and description of completed training sessions directly in Tredict.

Connect Mistral Vibe Code (CLI) to Tredict

Mistral Vibe Code is the CLI tool, formerly Mistral Vibe. Follow these steps to connect it to the ‘Tredict MCP Server’.

Add the MCP server configuration to Mistral Vibe Code
Open the Mistral Vibe Code configuration file at ~/.config/vibe/config.toml (Linux).

Add the following ‘MCP Server Configuration’:

[[mcp_servers]]
transport = "http"
name = "remote-api"
url = "https://www.tredict.com/api/mcp/v2"
startup_timeout_sec = 15.0
tool_timeout_sec = 120.0
api_key_env = "TREDICT_PERSONAL_API_KEY"
api_key_header = "Authorization"
api_key_format = "Bearer {token}"
Remove any existing empty entries, if necessary, from mcp_server = [] or paste the configuration there.

Create a Personal API key in Tredict at Settings -> Personal API / MCP -> Access Token.

Copy the API key and paste it into the file ~/.config/vibe/.env add:
TREDICT_PERSONAL_API_KEY='your_personal_api_token'
Restart Mistral Vibe Code.
Example prompts with Mistral Vibe Code

Now you can use the ‘Tredict MCP Tools’ directly in Mistral Vibe Code, for example with these prompts:

"Determine my running FTP by analysing my training history in Tredict."

"Create a 4-week heart rate-based running training plan directly in Tredict. Each training session should include both duration and estimated pace. The plan should be relaxed, with 5 training sessions per week. Integrate a few runs with sprints and one easy interval session per week. Before creating the plan, analyse my training history and current capabilities to better assess my fitness level."

Here you will find a detailed description of the tools, prompts and resources of the ‘Tredict MCP Server’: Tredict MCP Server Documentation.

You can find more information on configuring Mistral Vibe Code in the Mistral Vibe Code documentation.

Example: Creating a training plan with Mistral Vibe Code
In Mistral Vibe Code, a running training plan is created in Tredict.
In the Mistral Vibe Code terminal, the Devstral 2 LLM creates a running training plan directly in Tredict.
↓
2-Week Heart Rate-Based Running Plan (created by Mistral Vibe)
10
Training sessions
2
Weeks
5
Activities week Ø
44
Effort Ø
66%
Heart rate Ø
0%
FTPa Ø
General
Training phase
Heart rate
Zone type
Everyone
Performance level
Intensity
Free
Price
CC BY 4.0
License
Visit training plan created by Felix Gertz
The resulting training plan, created directly in Tredict with Mistral Vibe Code.
Click on it to view it in detail.