> For the complete documentation index, see [llms.txt](https://help.meltingspot.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.meltingspot.io/manage-spot/integrations/assistants-ia-mcp/connecter-openai-codex.md).

# Connecter OpenAI Codex

Connectez Codex à votre Spot avec le plugin MeltingSpot, ou en ajoutant le serveur MCP.

Deux façons de connecter Codex à votre Spot :

* **avec le plugin MeltingSpot (recommandé)** : la connexion est déjà configurée, et des consignes guident Codex pour utiliser MeltingSpot correctement ;
* **en ajoutant le serveur MCP à la main**.

Codex partage sa configuration entre l'application de bureau, la ligne de commande et l'extension pour éditeur de code : ajoutez MeltingSpot une fois, il est disponible partout.

Avant de commencer, vérifiez les [prérequis](https://help.meltingspot.io/manage-spot/integrations/assistants-ia-mcp.md#avant-de-commencer) : vous êtes administrateur du Spot et le serveur MCP est activé pour ce Spot.

{% hint style="info" %}
Les libellés ci-dessous sont ceux de l'interface Codex en anglais.
{% endhint %}

## Installer le plugin MeltingSpot (recommandé)

1. Dans un terminal, ajoutez la marketplace MeltingSpot :

   ```bash
   codex plugin marketplace add meltingspot/meltingspot-for-ai
   ```
2. Dans le répertoire des plugins de Codex, installez `meltingspot` depuis la marketplace `meltingspot`.
3. Connectez-vous à MeltingSpot quand Codex vous le demande : choisissez votre Spot dans **Spot à connecter**, puis cliquez sur **Autoriser**.

Pour en savoir plus sur son contenu, consultez [Plugin et skills MeltingSpot](https://help.meltingspot.io/manage-spot/integrations/assistants-ia-mcp/plugin-et-skills-meltingspot.md).

## Ou : ajouter le serveur à la main

{% tabs %}
{% tab title="Application de bureau" %}

1. Ouvrez **Settings > MCP servers**, puis cliquez sur **Add server**.
2. Choisissez **Streamable HTTP** et saisissez l'adresse du serveur :

   ```
   https://mcp.meltingspot.io/mcp
   ```
3. Enregistrez, puis cliquez sur **Restart**.
4. Cliquez sur **Authenticate** à côté de MeltingSpot.
5. La page MeltingSpot s'ouvre dans votre navigateur : choisissez votre Spot dans **Spot à connecter**, puis cliquez sur **Autoriser**.
   {% endtab %}

{% tab title="Ligne de commande" %}

1. Dans un terminal, ajoutez le serveur :

   ```bash
   codex mcp add meltingspot --url https://mcp.meltingspot.io/mcp
   ```
2. Lancez la connexion :

   ```bash
   codex mcp login meltingspot
   ```
3. La page MeltingSpot s'ouvre dans votre navigateur : choisissez votre Spot dans **Spot à connecter**, puis cliquez sur **Autoriser**.

Pour vérifier que MeltingSpot est bien ajouté : `codex mcp list`.
{% endtab %}
{% endtabs %}

## Utiliser MeltingSpot

Faites votre demande à Codex, par exemple : « Liste les groupes de mon Spot. » Dans l'application de bureau, tapez `/mcp` dans la zone de saisie pour voir les serveurs connectés.

## Déconnecter MeltingSpot

Retirez MeltingSpot depuis **Settings > MCP servers**, ou supprimez le bloc `[mcp_servers.meltingspot]` du fichier `~/.codex/config.toml`.

{% hint style="info" %}
Pour piloter un autre Spot, ajoutez un second serveur avec la même adresse et un autre nom, par exemple `meltingspot-academie`, puis choisissez l'autre Spot sur la page MeltingSpot.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.meltingspot.io/manage-spot/integrations/assistants-ia-mcp/connecter-openai-codex.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
