
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).
概览
本地 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 的网络连接。
安装
在 SourceWeft 中
- 打开 控制台中的 Ruff Lint X402,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Ruff Python Lint API — pay-per-call for AI agents (MCP + x402)
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_pythonfor 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
Use a dedicated low-balance wallet. $1 of USDC covers 200 lint calls.
Direct HTTP (x402)
Tool
lint_python({ code: string (≤200KB), filename?: string }) → ruff diagnostics (rule code, message, line/column, fix hints).
License
MIT
来源:README.md,提交 b6e176f
工具
0版本历史
1- v1.0.0最新Nov 5, 2026
评分
已满足适用检查项的 40%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
请在仓库或注册中心条目中声明许可证。