spendtron

io.github.swantron由 GitHub 账号 swantron 发布v1.1.0更新于 Nov 2, 2026

Finds the GitHub Actions workflow eating your CI bill and suggests fix diffs, verified against runs.

已验证Streamable HTTP可网页运行云端与基础设施开发者工具

概览

AI 生成的概览

只读 MCP 服务器,按真实计算成本对 GitHub 组织的 Actions 工作流和仓库排序,并给出修复 diff 建议。

可以做什么
  • 按真实计算成本对组织内的 GitHub Actions 工作流和仓库排序
  • 获取可直接粘贴的修复 diff,例如补充缓存或 timeout-minutes,并用真实运行耗时验证
  • 每次调用可免费获得成本排名和一条已验证的修复 diff
适用场景
当 GitHub Actions 的 CI 开销偏高或不清楚来源时,用来找出是哪个工作流或仓库推高了账单,并获得具体的 workflow 修改建议,无需另开仪表盘。
运行要求
远程端点 spendtron.com,使用 streamable HTTP。需要在 Authorization 请求头中提供 bearer 令牌(spendtron API 密钥,安装 GitHub App 后仅显示一次),并连接具备 Actions、Contents、Metadata 只读权限的 GitHub App。
安装前请注意
API 密钥是放在 Authorization 请求头中的机密。成本排名和一条修复 diff 免费,解锁完整修复列表需通过 Stripe 一次性支付 39 美元。服务通过 GitHub App 读取组织的 Actions 运行记录和仓库内容,这些数据会发送给第三方。

安装

在 SourceWeft 中

  1. 打开 控制台中的 spendtron,将其添加到工作区。
  2. 连接 Authorization token 凭据。它们会被私密存储,绝不会在公开页面上展示。
  3. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.swantron%2Fspendtron/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "spendtron": {
      "type": "http",
      "url": "https://spendtron.com/mcp",
      "headers": {
        "Authorization": "Bearer <YOUR_TOKEN>"
      }
    }
  }
}

README

spendtron

A read-only tool that finds which GitHub Actions workflow is eating your CI bill, ranks workflows and repos by real compute cost, and suggests pasteable fix diffs (missing cache, missing timeout-minutes) confirmed against real run timing — not estimates.

Delivered as an MCP server — call check_actions_cost from Claude, ChatGPT, or any MCP-compatible client, no dashboard required. Auth is a GitHub App (read-only: Actions + Contents + Metadata) plus a spendtron API key, passed as a bearer token. The cost ranking and one confirmed fix diff are free on every call. Unlocking the full fix list is a one-time $39 payment via Stripe — not a subscription.

The underlying audit logic started as ~/code/ci-audit/actions-teardown.sh (bash + gh api) — lib/auditActions.js is the same algorithm, ported to run per-installation against many customers' orgs instead of one local gh-authenticated user.

Status

Real product, not a waitlist — see HANDOFF.md/FINDINGS.md/CARRD.md in ~/code/ci-audit for the history of how this got here (an earlier waitlist-and-post-to-Reddit attempt correctly got abandoned; the audit logic itself was always real).

The GitHub App must be public (GitHub → spendtron-app → Advanced → Make this GitHub App public) so anyone can hit Connect GitHub. That toggle lives in the GitHub UI, not this repo.

Setup

  1. Copy .env.example to .env.local (or set these in Cloud Run's Secret Manager for prod).
  2. Create a GitHub App at github.com/settings/apps/new — slug spendtron-app, permissions: Actions: Read-only, Contents: Read-only, Metadata: Read-only. Callback URL: <your deployed host>/github/callback. Make the App public before sending customers to /github/install.
  3. Create a Neon Postgres database, run db/schema.sql against it.
  4. Create a one-time Stripe Price (not recurring) for the fix-diff unlock; put its ID in STRIPE_UNLOCK_PRICE_ID. Point a Stripe webhook at /stripe/webhook for checkout.session.completed. (STRIPE_PRICE_ID and the Customer Portal are legacy from an earlier $99/mo model — no longer wired into any live checkout flow.)
  5. Map both spendtron.com and www.spendtron.com to the Cloud Run service (www should CNAME to ghs.googlehosted.com at Squarespace). The app 301s www → apex.
  6. Privacy / terms for Stripe: https://spendtron.com/privacy and https://spendtron.com/terms.
  7. npm install && npm start.

Test

npm test — covers the cost-math port (must match actions-teardown.sh's bash/awk exactly) and API-key auth, against a mocked GitHub client (no live credentials needed for these).

来源:README.md,提交 ba555b4

工具

1

check_actions_cost

Audit GitHub Actions cost

Ranks your GitHub org's Actions workflows and repos by real compute cost, using your account's spendtron connection (no arguments needed — identified by your API key).

无需输入参数。

版本历史

2
  1. v1.1.0最新Sep 24, 2026
  2. v1.0.0Sep 22, 2026

评分

已满足适用检查项的 100%

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

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分