This is a transparent gateway package that routes to SkillFM's local runtime while setting a specific search intent flag. It exposes MCP tools for inspecting Claude Code token usage and cost signals, then guides users through a local sidecar activation flow: start the runtime, call POST /activate/start to get a real device code, show it to the user, and poll until activation completes. The actual implementation lives in @skillfm/mcp and @skillfm/local. Reach for this when you want agent-visible usage audits and context cleanup recommendations before users hand over provider keys. It's designed for the "how many tokens did I burn today" question, not real-time metering.
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.
Use this gateway as an MCP stdio server:
npx -y @skillfm/claude-code-token-usage-mcp@latest
Equivalent explicit SkillFM entrypoint:
npx -y @skillfm/mcp@latest
For MCP clients that accept JSON config:
{
"mcpServers": {
"claude-code-token-usage": {
"command": "npx",
"args": ["-y", "@skillfm/claude-code-token-usage-mcp@latest"]
}
}
}
This gateway is for users who ask:
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.
Start the local sidecar when the user wants to connect SkillFM:
npx -y @skillfm/claude-code-token-usage-mcp@latest start
Agent-driven activation flow:
~/.skillfm/local.json.POST <sidecar_url>/activate/start.POST <sidecar_url>/activate/poll until it returns activated: true.Do not fabricate a placeholder code. The device code must come from POST /activate/start.
See PRIVACY.md and SECURITY.md.
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-codetokenusagecostskillfmMIT