Mcp Legiti

io.github.codespar由 GitHub 账号 codespar 发布v0.2.0-alpha.4更新于 Oct 27, 2026

DEPRECATED: no live endpoint (collection-prod.inspcdn.net does not resolve)

已验证STDIO仅桌面金融商业与电商

概览

AI 生成的概览

已弃用的 Legiti 反欺诈 MCP 服务器:可提交订单做欺诈评估并上报账户、交易与拒付事件,但其默认端点已无法解析。

可以做什么
  • 提交订单及旧版销售单进行同步欺诈评估,返回 approve、reject 或 manual 决策
  • 获取订单最新决策,并手动覆盖或更新决策状态
  • 回传订单状态变更、已确认欺诈及拒付争议结果
  • 上报账户、认证、登录、登出、注册、找回密码与资料更新事件
  • 跟踪票务活动、活动浏览、销售以及支付方式事件(授权、扣款、退款、撤销)
适用场景
仅当你已有可用的 Legiti 端点与合约时才考虑,因为默认主机无法解析且该包在 npm 上已弃用。否则不值得安装,仅作参考保留。
运行要求
通过 npm 包以 stdio 在本地运行(npx 或 npm install)。需要 LEGITI_API_KEY 中的 Legiti API 密钥(JWT bearer 令牌),可选 LEGITI_BASE_URL,其默认主机目前无法解析。需要 Legiti 账户及独立的沙箱与生产密钥。
安装前请注意
该服务器已弃用,默认配置下没有任何工具能连到在线服务。API 密钥是访问欺诈评分账户的 bearer 令牌;测试请使用沙箱密钥,因为用生产密钥发送测试数据会污染 Legiti 的机器学习模型。工具会把 CPF、支付与账户等客户数据发送给 Legiti,部分工具上报的欺诈结果会影响后续评分。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Mcp Legiti,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

@codespar/mcp-legiti

Deprecated: no live endpoint. Measured on 2026-09-27 against two public DNS resolvers (8.8.8.8 and 1.1.1.1): collection-prod.inspcdn.net, the host this server calls, does not resolve in DNS. No tool in this server reaches a service. The package is deprecated on npm and stays in this repository for reference only. If you have a working endpoint, point the server at it with LEGITI_BASE_URL. To bring the package back, open an issue in mcp-dev-latam with the provider's documented base URL.

MCP server for Legiti — Brazilian fraud prevention, ticketing-native with a simple synchronous evaluation API.

Fourth entry in the CodeSpar fraud category, after @codespar/mcp-clearsale, @codespar/mcp-konduto, and @codespar/mcp-sift. Legiti (formerly Inspetor, São Paulo) occupies the mid-size BR tier: smaller public footprint than ClearSale, more vertical depth than Konduto for ticketing / events, and a simpler API surface than Sift.

Positioning

StrengthTypical fit
ClearSaleBR pioneer (2001), large chargeback historyDefault for large BR retail
KondutoBR, API-first, behavioral device intelDigital-native BR ecommerce
Legiti (this)BR, ticketing-native, sync evaluationBR ticketing marketplaces, mid-size retail
SiftGlobal, multi-abuse-type ML, workflowsInternational enterprise

BR merchants frequently bundle 2-3 of these for best-of-breed scoring — Legiti for its ticketing-specific signals, ClearSale or Konduto for the generalist fraud layer, Sift for cross-border flows.

Tools (18)

ToolPurpose
evaluate_orderSubmit an order to Legiti for real-time fraud evaluation via the v2 order endpoint.
update_orderNotify Legiti of a status change on an existing order (e.g.
mark_order_fraudulentReport a confirmed chargeback / fraud outcome back to Legiti.
evaluate_saleLegacy single-shot sale evaluation via POST /evaluation.
track_accountNotify Legiti of an account lifecycle event (created / updated / deleted).
track_eventNotify Legiti of an Event (concert, show, match, session) lifecycle change.
track_saleNotify Legiti of a Sale state change (created / updated).
track_authNotify Legiti of an authentication or password event (login attempt, logout, password recovery request, pas...
track_loginNotify Legiti of a login attempt (successful or failed).
track_logoutNotify Legiti of a logout event.
track_signupNotify Legiti of a new account creation.
track_account_updateNotify Legiti of an account profile change (email, phone, CPF, address).
track_password_recoveryNotify Legiti of a password recovery request (the 'forgot password' click).
track_event_viewNotify Legiti that a user viewed an event/show page.
track_paymentNotify Legiti of a payment-method-level event (authorization attempt, capture, refund, void).
get_decisionFetch the latest Legiti decision for an order.
update_decision_statusManually override Legiti's decision for an order — typically used to accept or decline a sale that landed i...
mark_dispute_resolutionReport the outcome of a chargeback dispute back to Legiti — i.e.

Install

bash
npm install @codespar/mcp-legiti@alpha

Environment

bash
LEGITI_API_KEY="eyJhbGciOi..."   # JWT bearer token; requiredLEGITI_BASE_URL="..."             # optional; defaults to https://collection-prod.inspcdn.net

Authentication

Bearer token (JWT-format):

Authorization: Bearer <LEGITI_API_KEY>

Legiti issues separate sandbox and production keys. The sandbox key tags every request as test data so it does NOT train the ML model. Always develop and run integration tests with the sandbox key — hitting production with test data pollutes the model.

Decision values

evaluate_order and evaluate_sale return one of three decisions:

  • approve — ship it
  • reject — block the sale
  • manual — route to manual review

Evaluation is synchronous; the response may take up to ~20 seconds.

Typical flow (ticketing)

  1. At signup / login, call track_account (create/update) and track_auth (login/logout, password_recovery, password_reset). Every auth attempt — successful or failed — is valuable signal for account-takeover detection.
  2. When a new event (concert, show, match) is published on the platform, call track_event (create). Update on price/capacity/date changes.
  3. At checkout, call evaluate_order with the sale, account, payment, CPF, and the primary event_date_id. Act on the returned decision: approve → ship, reject → block, manual → human review.
  4. As the order progresses (paid, shipped, delivered, cancelled, refunded), call update_order.
  5. When a chargeback is confirmed by the issuer, call mark_order_fraudulent. This is Legiti's primary ML feedback channel — unreported chargebacks degrade future decision quality for similar buyers.

Typical flow (non-ticketing ecommerce)

Skip track_event. The event_date_id fields become optional in evaluate_order — Legiti will still evaluate on account + sale + payment signal, though ticketing-vertical features will be unused.

Alpha note

Shipped as 0.1.0-alpha.1. Legiti's public documentation is tighter than ClearSale's or Konduto's:

  • Documented in open-source github.com/legiti/docs-backend: POST /evaluation, plus the Collection API (account, event, sale, transfer, auth, password) shape and the Authorization: Bearer scheme.
  • Documented on docs.legiti.com integration guides: the v2 order family (POST /v2/order, PUT /v2/order, POST /v2/order/mark_fraudulent).
  • Dropped from the original category spec: create_rule / list_rules / update_rule / delete_rule — no public custom-rules surface exists on Legiti. If a customer contract exposes one, promote to 0.2.0.

Promote to 0.1.0 once the v2 order payload schema is confirmed in production.

Run

bash
# stdio (default — for Claude Desktop, Cursor, etc)npx @codespar/mcp-legiti
# HTTP (for server-to-server testing)MCP_HTTP=true MCP_PORT=3000 npx @codespar/mcp-legiti

Category

fraud — fourth server in this CodeSpar category alongside ClearSale, Konduto, and Sift. Fraud servers share a common shape (analyze → decide → feedback) distinct from payments, which makes cross-provider swaps (ClearSale ↔ Konduto ↔ Legiti) more straightforward than cross-acquirer swaps.

Enterprise

Need governance, budget limits, and audit trails for agent payments? CodeSpar Enterprise adds policy engine, payment routing, and compliance templates on top of these MCP servers.

License

MIT

来源:packages/fraud/legiti/README.md,提交 d0a519a

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

2
  1. v0.2.0-alpha.4最新Sep 27, 2026
  2. v0.2.0-alpha.3Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分