Hostinger Ecommerce MCP
Il s'agit d'un serveur Model Context Protocol (MCP) permettant d'interagir avec l'API Hostinger Ecommerce.
Installation
- Installer les dépendances :
npm install
- Construire le projet :
npm run build
- Configuration du serveur MCP :
- MacOS (zsh) :
{ "mcpServers" : { "hostinger-ecommerce" : { "command" : "node", "args" : ["<path/to/hostinger-ecommerce-mcp/build/index.js>", "--jwt", "<votre-jwt-token>", "--store-id", "<votre-store-id>" ] } } }
- Windows (cmd) :
{ "mcpServers" : { "hostinger-ecommerce" : { "command" : "cmd", "args" : ["/c", "node", "<path/to/hostinger-ecommerce-mcp/build/index.js>", "--jwt", "<votre-jwt-token>", "--store-id", "<votre-store-id>" ] } } } }
Outils disponibles
Le serveur MCP fournit les outils suivants :
getProduct - Récupère un produit unique par ID
- Paramètre :
productId
- ID du produit à récupérer
- Paramètre :
getProducts - Permet d'obtenir une liste de produits (25 au maximum)
- Paramètres
limit
(facultatif, valeur par défaut : 25) - Nombre maximal de produits à renvoyeroffset
(optionnel, valeur par défaut : 0) - Décalage pour la pagination
- Paramètres
updateProductDescription - Met à jour la description d'un produit
- Paramètres
productId
- ID du produit à mettre à jourdescription
- La nouvelle description du produit
- Paramètres