Ruff Lint X402

io.github.Divine-Software-Creations由 GitHub 帳號 Divine-Software-Creations 發布v1.0.0更新於 Nov 5, 2026

Ruff Python linting for AI agents, pay-per-call via x402 ($0.005 USDC on Base).

已驗證STDIO僅桌面金融開發者工具

概覽

AI 產生的概覽

本機 MCP 伺服器,讓助理用 ruff 檢查 Python 程式碼,每次呼叫透過 Base 上的 x402 支付 0.005 USDC。

可以做什麼
  • 檢查 Python 程式碼:送出程式碼字串(最大 200KB)與選用檔名,取得 ruff 診斷,包含規則代碼、訊息、行列位置與修正提示。
  • 按次付費:每次請求透過 Base 上的 x402 自動以 USDC 結算,無需註冊、API 金鑰或訂閱。
適用情境
適合在撰寫或審查程式碼時,讓助理快速進行 Python 風格與正確性檢查,且願意以 Base 錢包中的 USDC 按次支付小額費用,而非在本機執行 ruff。
執行需求
以本機 stdio 程序執行,通常透過 npx 從 npm 套件啟動,需要 Node.js。需要環境變數 EVM_PRIVATE_KEY,值為持有 USDC 的 Base 錢包私鑰。每次呼叫都需要連線至遠端 lint API 的網路。
安裝前請注意
伺服器要求透過 EVM_PRIVATE_KEY 提供錢包私鑰,該私鑰可控制錢包資金;README 建議使用專用的低餘額錢包。每次呼叫都會花費 USDC(1 美元約可呼叫 200 次)。送出的程式碼會傳送至第三方 API 分析,請勿傳送敏感原始碼。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Ruff Lint X402,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Ruff Python Lint API — pay-per-call for AI agents (MCP + x402)

[npm]

Give any AI agent instant Python linting with ruff. No signup, no API key, no subscription: $0.005 USDC per call, paid automatically over x402 on Base.

  • ⚡ Fast: ruff-powered, results in milliseconds
  • 🔒 Safe: code is statically analyzed, never executed
  • 🤖 Agent-native: MCP tool lint_python for Claude, Cursor, Windsurf, Gemini/Antigravity and any MCP client
  • 💸 Pay only for what you use; the facilitator covers gas, so your wallet only needs USDC

Landing page: https://stevensaavedra.com/lint · API: POST https://api.stevensaavedra.com/lint · Verified on PayAPI Market

MCP install

json
{  "mcpServers": {    "ruff-lint": {      "command": "npx",      "args": ["-y", "@divine-software-creations/ruff-lint-x402-mcp"],      "env": { "EVM_PRIVATE_KEY": "0x<key of a Base wallet holding a little USDC>" }    }  }}

Use a dedicated low-balance wallet. $1 of USDC covers 200 lint calls.

Direct HTTP (x402)

bash
curl -i -X POST https://api.stevensaavedra.com/lint \  -H 'content-type: application/json' \  -d '{"code":"import os\nx = 1","language":"python"}'# -> 402 Payment Required with x402 payment requirements.# Any x402 client (e.g. @x402/fetch) pays and retries automatically.

Tool

lint_python({ code: string (≤200KB), filename?: string }) → ruff diagnostics (rule code, message, line/column, fix hints).

License

MIT

來源:README.md,提交 b6e176f

工具

0
SourceWeft 曾在隔離沙箱中以無憑證方式啟動該軟體包一次,以列出其工具,但未能完成:伺服器未能啟動。

版本歷史

1
  1. v1.0.0最新Nov 5, 2026

評分

已滿足適用檢查項的 40%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。