Skip to main content

Serveur MCP pour Candy-AI — Connecte Cédric8-Thinking au protocole Model Context Protocol

Project description

candy-mcp 🍬

Serveur MCP pour Candy-AI — Cédric8-Thinking

Connecte n'importe quel client compatible Model Context Protocol (Claude Desktop, Cursor, VS Code…) au moteur Cédric8-Thinking via la librairie candy-ai.


Installation

pip install candy-mcp

Nécessite Python 3.10+ et installe automatiquement candy-ai et mcp.


Utilisation rapide

1. Lancer le serveur

candy-mcp

2. Configurer Claude Desktop

Ajoute ce bloc dans ton fichier claude_desktop_config.json :

macOS : ~/Library/Application Support/Claude/claude_desktop_config.json
Windows : %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "candy-ai": {
      "command": "candy-mcp"
    }
  }
}

Redémarre Claude Desktop. Les outils Candy apparaîtront automatiquement. ✅


Outils disponibles

Outil Description
candy_ask Pose une question à Cédric8-Thinking (12 personnalités)
candy_batch Traite plusieurs prompts en un seul appel
candy_translate Traduit un texte vers la langue cible
candy_summarize Résume un texte long
candy_sentiment Analyse le sentiment (positif/négatif/neutre + score)
candy_keywords Extrait les mots-clés d'un texte
candy_status Vérifie que l'API Cédric8-Thinking est en ligne
candy_list_personalities Liste toutes les personnalités disponibles

Personnalités disponibles

Auto · Full · Coding · Writing · Math · Medicine · Law · Finance · Tutor · Summarizer · Analytic · Translator

💡 La personnalité Auto sélectionne automatiquement la meilleure selon ton prompt.


Exemples d'usage dans Claude Desktop

Une fois configuré, tu peux dire à Claude :

  • "Utilise Candy avec la personnalité Coding pour écrire un tri rapide en Python"
  • "Traduis ce texte en japonais via Candy"
  • "Résume cet article en 50 mots avec Candy"
  • "Analyse le sentiment de ce commentaire client avec Candy"
  • "Vérifie si l'API Candy est en ligne"

Configuration avancée — avec uvx

Si tu préfères ne pas installer globalement :

{
  "mcpServers": {
    "candy-ai": {
      "command": "uvx",
      "args": ["candy-mcp"]
    }
  }
}

Intégration avec d'autres clients MCP

Cursor / VS Code

{
  "mcp": {
    "servers": {
      "candy-ai": {
        "command": "candy-mcp",
        "type": "stdio"
      }
    }
  }
}

Via Python directement

import subprocess
import sys

# Lance le serveur MCP en sous-processus
process = subprocess.Popen(
    [sys.executable, "-m", "candy_mcp.server"],
    stdin=subprocess.PIPE,
    stdout=subprocess.PIPE,
)

Architecture

Client MCP (Claude Desktop, Cursor…)
        │
        │ stdio (JSON-RPC 2.0)
        ▼
  candy-mcp (ce serveur)
        │
        │ candy-ai (Python)
        ▼
  Cédric8-Thinking API
  (candy-gate.hubworld.net)

Publier sa propre version

# 1. Cloner et modifier
git clone https://github.com/candy-gate/candy-mcp
cd candy-mcp

# 2. Build
pip install hatchling
python -m hatchling build

# 3. Publier sur PyPI
pip install twine
twine upload dist/*

Licence

MIT — Libre d'utilisation, y compris commerciale.


Propulsé par Cédric8-Thinking · candy-ai v21

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

candy_mcp-1.0.0.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

candy_mcp-1.0.0-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file candy_mcp-1.0.0.tar.gz.

File metadata

  • Download URL: candy_mcp-1.0.0.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for candy_mcp-1.0.0.tar.gz
Algorithm Hash digest
SHA256 db1d57c1cb257ffe889b6fc2029dcde60e36ae0d4d0e1d69e786225756a5aaa9
MD5 3a6b07d808e1fff61a5e3e2c3033727d
BLAKE2b-256 7ab0af13175eb03ff3755d41e768806511b9baf8621f27548d83d4780a00f03f

See more details on using hashes here.

File details

Details for the file candy_mcp-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: candy_mcp-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for candy_mcp-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 612dbfd547020967264db5f2ad2dc13b44ad1a571c70e2dc961b4c1fc22107b1
MD5 3b0424930d29cd565b40b270f44f0b01
BLAKE2b-256 f6e20b5a2f406f4f987a13185dcd17d0d584f107e36a30cd0876bb8e1e1566ed

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page