Pioneira brasileira em prevenção a fraudes (fundada em 2001). Score de risco de pedido, device fingerprinting, feedback de chargeback. Release alpha no npm — endpoints pendentes de validação contra o portal de desenvolvedor da ClearSale fechado por contrato.
O ClearSale dá ao seu agente 18 tools que ele chama direto — escolha as que precisar, no Claude, Cursor ou qualquer cliente MCP.
send_order_for_analysis — Submit an order to ClearSale for fraud analysis. Returns a score (0-100) and a decision (APROVADO / REPROVADO / EM_ANALISE). Include as much signal as possible — billing + shipping, IP, device, items, and payment — to improve the decision.get_order_analysis — Retrieve the current analysis state of an order previously sent to ClearSale. Useful when the initial response was EM_ANALISE and the decision is made asynchronously.update_order_status — Notify ClearSale of the merchant's final decision on an order (APROVADO / CANCELADO / DEVOLVIDO). This feeds the ML model and is required for accurate future decisions on the same buyer.// Your agent calls a tool directly — no glue code.
// CodeSpar's managed tier handles OAuth2, token rotation and rate limits.
const result = await session.call("send_order_for_analysis", { /* ... */ });$ npm install @codespar/mcp-clearsale@alphaAdicione esta entrada ao seu claude_desktop_config.json (ou a config de qualquer cliente compatível com MCP).
{
"mcpServers": {
"clearsale": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-clearsale@alpha"
],
"env": {
"CLEARSALE_API_KEY": "<your_clearsale_api_key>"
}
}
}
}Depois de reiniciar, seu agente pode chamar qualquer uma das 18 ferramentas abaixo — teste send_order_for_analysis primeiro.
Necessárias pra autenticar o server. Armazenadas criptografadas ao usar a hospedagem gerenciada da CodeSpar.
CLEARSALE_API_KEYClearSale API key / bearer token used in the Authorization header
CLEARSALE_BASE_URLClearSale API base URL. Defaults to https://api.clearsale.com.br (prod). Override per contract-issued staging URL.
Cada ferramenta é independente — seu agente carrega só o que precisa pra reduzir contexto e tempo de resposta.
send_order_for_analysisget_order_analysisupdate_order_statuslist_orderscreate_chargeback_notificationget_order_scorecreate_device_fingerprint_sessionget_device_fingerprintMCP é um protocolo — qualquer framework que o fale pode montar este server.