Skip to main content
Glama

🌐 FastAPI Server - Mistral Agent Manager

Ce dossier contient le serveur FastAPI pour la gestion des agents Mistral via API REST.

📁 Structure

mcp-server/
├── main.py                # Serveur FastAPI principal
├── simple_server.py       # Serveur MCP simple (stdio) - ancien
├── test_mcp.py           # Tests du serveur MCP - ancien
├── pyproject.toml        # Configuration du projet
├── uv.lock              # Lock file des dĂ©pendances
├── .env                 # Variables d'environnement
├── .python-version      # Version Python
├── .gitignore          # Fichiers à ignorer
└── .venv/              # Environnement virtuel Python

🚀 DĂ©marrage rapide

  1. Installer uv (si pas déjà fait) :

    curl -LsSf https://astral.sh/uv/install.sh | sh
    export PATH="$HOME/.local/bin:$PATH"
  2. Installer les dépendances :

    cd mcp-server
    uv sync --locked
  3. Démarrer le serveur MCP :

    uv run python main.py

🔧 Utilisation avec l'inspecteur MCP

  1. Lancer l'inspecteur :

    npx @modelcontextprotocol/inspector
  2. Se connecter au serveur :

    • Transport : stdio

    • Command : uv run python main.py

    • Working Directory : /Users/yoandicosmo/Documents/LeChat MCP Hack/mcp-server

  3. Accéder à l'interface :

    • MCP Inspector : http://localhost:6274 (quand l'inspecteur est lancĂ©)

đŸ› ïž Outils disponibles

  • ✅ create_agent - CrĂ©er un nouvel agent Mistral

  • ✅ list_agents - Lister tous les agents

  • ✅ get_agent_details - Obtenir les dĂ©tails d'un agent

  • ✅ delete_agent - Supprimer un agent par ID

  • ✅ search_agent - Rechercher un agent par nom

🔧 Configuration

  1. Variables d'environnement : Configurez MISTRAL_API_KEY dans .env

  2. Transport : Le serveur utilise stdio pour la communication MCP

  3. API Mistral : Intégration complÚte avec l'API Mistral

🔗 IntĂ©gration avec Le Chat

Pour utiliser ce serveur MCP avec Le Chat :

  1. Configurer Le Chat pour pointer vers ce serveur MCP

  2. Utiliser les outils directement dans Le Chat pour gérer les agents Mistral

  3. Créer des agents via des prompts naturels dans Le Chat

📖 Documentation

  • MCP Inspector : http://localhost:6274 (quand l'inspecteur est lancĂ©)

  • Documentation MCP : https://modelcontextprotocol.io/

-
security - not tested
F
license - not found
-
quality - not tested

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Uzbyr/mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server