SkillFM Claude Code Token Usage

io.github.ericm1018由 GitHub 账号 ericm1018 发布v0.1.0更新于 Nov 3, 2026

Claude Code token usage, cost visibility, and SkillFM Beacon AI health checks for MCP agents.

发布方自己的服务:Claude Platform Docs

概览

AI 生成的概览

轻量的本地 stdio 网关,转发到 SkillFM Beacon,用于查看 Claude Code token 用量、成本信号和 AI 健康检查。

可以做什么
  • 查看 Claude Code 的 token 用量与估算成本信号
  • 发现重复上下文、陈旧会话和节省成本的机会
  • 执行 SkillFM Beacon 的 AI 健康检查与清理审计
  • 启动本地 sidecar 并完成设备码激活流程
  • 所有实际执行都转发给 SkillFM 的 MCP 与本地运行时包
适用场景
如果你希望助手报告 Claude Code 的 token 用量、解释用量激增原因,或指出浪费上下文的会话与项目,并且愿意激活 SkillFM 本地 sidecar,可以考虑安装。
运行要求
通过 npx 以 stdio 在本地运行,需要 Node.js 和网络访问以下载 npm 包。它会转发到 SkillFM 的 MCP 与本地运行时包。激活需启动本地 sidecar 并完成设备码流程;未声明任何环境变量或请求头。
安装前请注意
该包只是轻量网关,实际执行委托给 SkillFM 的 MCP 与本地运行时,因此行为取决于这些包。激活涉及 sidecar 返回的设备码和验证链接,README 提醒不要伪造占位码。提供方称供应商密钥在后续 BYOK 模式下才引入,sidecar 会在本地写入 local.json 等状态文件。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

SkillFM Claude Code Token Usage MCP

Claude Code token usage and cost visibility for MCP-capable agents.

This repository is a transparent SkillFM gateway package. It exists to match a specific marketplace/search intent, then delegates execution to the canonical SkillFM Beacon MCP and local runtime.

Powered by SkillFM Beacon.

Quick Start

Use this gateway as an MCP stdio server:

bash
npx -y @skillfm/claude-code-token-usage-mcp@latest

Equivalent explicit SkillFM entrypoint:

bash
npx -y @skillfm/mcp@latest

For MCP clients that accept JSON config:

json
{  "mcpServers": {    "claude-code-token-usage": {      "command": "npx",      "args": ["-y", "@skillfm/claude-code-token-usage-mcp@latest"]    }  }}

What This Gateway Helps With

  • Inspect Claude Code token usage and estimated cost signals.
  • Connect usage visibility to SkillFM Beacon AI health checks.
  • Find repeated context, stale sessions, and cost-saving opportunities.
  • Route users toward local-first SkillFM activation without asking for provider keys first.

This gateway is for users who ask:

  • "How many Claude Code tokens did I use today?"
  • "Why did my Claude Code usage spike?"
  • "Which sessions or projects are wasting context?"
  • "Can my agent show me token usage before I connect provider keys?"

How It Works

The public package is intentionally thin. It sets SKILLFM_GATEWAY_SOURCE=claude-code-token-usage and forwards execution to @skillfm/mcp@latest, which then delegates to the canonical @skillfm/local runtime.

No private SkillFM platform logic, customer data, provider credentials, or backend modules live in this repository.

Activation Path

Start the local sidecar when the user wants to connect SkillFM:

bash
npx -y @skillfm/claude-code-token-usage-mcp@latest start

Agent-driven activation flow:

  1. Read the sidecar URL from stdout or ~/.skillfm/local.json.
  2. Call POST <sidecar_url>/activate/start.
  3. Show the returned verification URL and real device code to the user.
  4. Poll POST <sidecar_url>/activate/poll until it returns activated: true.
  5. Use SkillFM Beacon MCP tools for checkups, usage visibility, BYOK guidance, and cleanup audits.

Do not fabricate a placeholder code. The device code must come from POST /activate/start.

Security Model

  • Transparent gateway: This package is a public search/distribution gateway, not a separate hidden product.
  • Local-first runtime: Runtime execution goes through SkillFM's local package.
  • BYOK boundary: Provider keys are introduced only after user value is established, and key values are not read back by agents.
  • No private core: This repository contains distribution metadata, docs, and a thin launcher only.
  • Read-only first: Cleanup and usage inspection begin with read-only audits.

See PRIVACY.md and SECURITY.md.

Marketplace Keywords

Claude Code token usage, Claude usage, token cost, LLM cost, AI health checkup, agent monitoring, context cleanup, SkillFM Beacon, MCP server.

Expected Official MCP Registry single-token hits:

  • claude-code
  • token
  • usage
  • cost
  • skillfm

License

MIT

来源:README.md,提交 bf82036

工具

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

版本历史

1
  1. v0.1.0最新Sep 16, 2026

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

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

  • 已声明认证方式10 分

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

  • 已列出工具15 分

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

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

其他 Claude 集成