Hostinger Ecommerce MCP
Tương tác với API Hostinger Ecommerce bằng mã thông báo JWT và ID cửa hàng.
GitHubDùng thử MCP nàyĐược tài trợ
Tài liệu
Hostinger Ecommerce MCP
This is a Model Context Protocol (MCP) server for interacting with the Hostinger Ecommerce API.
Setup
- Install dependencies:
npm install
- Build the project:
npm run build
- MCP server configuration:
- MacOS (zsh):
{
"mcpServers": {
"hostinger-ecommerce": {
"command": "node",
"args": [
"<path/to/hostinger-ecommerce-mcp/build/index.js>",
"--jwt",
"<your-jwt-token>",
"--store-id",
"<your-store-id>"
]
}
}
}
- Windows (cmd):
{
"mcpServers": {
"hostinger-ecommerce": {
"command": "cmd",
"args": [
"/c",
"node",
"<path/to/hostinger-ecommerce-mcp/build/index.js>",
"--jwt",
"<your-jwt-token>",
"--store-id",
"<your-store-id>"
]
}
}
}
Available Tools
The MCP server provides the following tools:
-
getProduct - Retrieves a single product by ID
- Parameter:
productId- The ID of the product to retrieve
- Parameter:
-
getProducts - Retrieves a list of products (maximum 25)
- Parameters:
limit(optional, default: 25) - Maximum number of products to returnoffset(optional, default: 0) - Offset for pagination
- Parameters:
-
updateProductDescription - Updates a product's description
- Parameters:
productId- The ID of the product to updatedescription- The new product description
- Parameters: