loading…
Search for a command to run...
loading…
Enables interaction with the Chrome Fair Trade platform to manage trading deals, monitor market prices, and handle supplier accounts. It provides tools for calc
Enables interaction with the Chrome Fair Trade platform to manage trading deals, monitor market prices, and handle supplier accounts. It provides tools for calculating FOT rates, updating deal statuses, and managing automated WhatsApp communication sessions.
Remote MCP server for the Chrome Fair Trade platform, intended for deployment on Render.
package-1.json to package.jsonstart script to run compiled output from dist/index.jstsconfig.json so TypeScript actually includes src/**/*.tstypescript, tsx, @types/node, @types/expressrender.yaml so CFT_ADMIN_SECRET is not committed in plaintext/health route and safer MCP endpoint error handling| Tool | What it does |
|---|---|
cft_health |
Platform + DB health check |
cft_market_prices |
Live CIF China + FOT rates, all grades |
cft_list_deals |
All deals, filter by status |
cft_deal_stats |
KPIs: tonnage, fees, grade breakdown |
cft_whatsapp_sessions |
Active WhatsApp conversation states |
cft_reset_whatsapp_session |
Unstick a supplier's WhatsApp flow |
cft_update_deal_status |
Approve / reject a deal |
cft_verify_certificate |
QR-verified deal certificate lookup |
cft_calculate_fot |
Reverse-Netback FOT calculation |
cft_list_suppliers |
All registered supplier accounts |
npm install
npm run build
CFT_BASE_URL=https://cft-terminal-hub.vercel.app CFT_ADMIN_SECRET=your-secret npm start
Server routes:
GET /GET /healthPOST /mcpRender accepts custom build and start commands for Node services, which fits this project layout. citeturn150812view3
git init
git add .
git commit -m "fix: productionize CFT MCP server"
git branch -M main
git remote add origin https://github.com/Afrinov8/cft-mcp-server.git
git push -u origin main
npm install && npm run buildnpm startSet these in Render:
CFT_BASE_URL=https://cft-terminal-hub.vercel.appCFT_ADMIN_SECRET=...your actual admin secret...NODE_ENV=productionDo not commit the real admin secret into the repo. Render blueprints support sync: false for secrets so values are not hardcoded in render.yaml. citeturn652236search0turn652236search3
https://your-service.onrender.com/healthhttps://your-service.onrender.com/mcpThis project still assumes the upstream CFT app exposes these endpoints:
/api/health/api/market/api/deals/api/admin/api/verifyIf any of those routes differ on the Vercel app, the MCP server will deploy correctly but those specific tools will fail at runtime.
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"cft-mcp-server": {
"command": "npx",
"args": []
}
}
}