{
  "markdown": "# SkillFM Claude Code Token Usage MCP\n\n**Claude Code token usage and cost visibility for MCP-capable agents.**\n\nThis 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](https://www.npmjs.com/package/@skillfm/mcp) and local runtime.\n\nPowered by SkillFM Beacon.\n\n## Quick Start\n\nUse this gateway as an MCP stdio server:\n\n```bash\nnpx -y @skillfm/claude-code-token-usage-mcp@latest\n```\n\nEquivalent explicit SkillFM entrypoint:\n\n```bash\nnpx -y @skillfm/mcp@latest\n```\n\nFor MCP clients that accept JSON config:\n\n```json\n{\n  \"mcpServers\": {\n    \"claude-code-token-usage\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@skillfm/claude-code-token-usage-mcp@latest\"]\n    }\n  }\n}\n```\n\n## What This Gateway Helps With\n\n- Inspect Claude Code token usage and estimated cost signals.\n- Connect usage visibility to SkillFM Beacon AI health checks.\n- Find repeated context, stale sessions, and cost-saving opportunities.\n- Route users toward local-first SkillFM activation without asking for provider keys first.\n\nThis gateway is for users who ask:\n\n- \"How many Claude Code tokens did I use today?\"\n- \"Why did my Claude Code usage spike?\"\n- \"Which sessions or projects are wasting context?\"\n- \"Can my agent show me token usage before I connect provider keys?\"\n\n## How It Works\n\nThe 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.\n\nNo private SkillFM platform logic, customer data, provider credentials, or backend modules live in this repository.\n\n## Activation Path\n\nStart the local sidecar when the user wants to connect SkillFM:\n\n```bash\nnpx -y @skillfm/claude-code-token-usage-mcp@latest start\n```\n\nAgent-driven activation flow:\n\n1. Read the sidecar URL from stdout or `~/.skillfm/local.json`.\n2. Call `POST <sidecar_url>/activate/start`.\n3. Show the returned verification URL and real device code to the user.\n4. Poll `POST <sidecar_url>/activate/poll` until it returns `activated: true`.\n5. Use SkillFM Beacon MCP tools for checkups, usage visibility, BYOK guidance, and cleanup audits.\n\nDo not fabricate a placeholder code. The device code must come from `POST /activate/start`.\n\n## Security Model\n\n- **Transparent gateway**: This package is a public search/distribution gateway, not a separate hidden product.\n- **Local-first runtime**: Runtime execution goes through SkillFM's local package.\n- **BYOK boundary**: Provider keys are introduced only after user value is established, and key values are not read back by agents.\n- **No private core**: This repository contains distribution metadata, docs, and a thin launcher only.\n- **Read-only first**: Cleanup and usage inspection begin with read-only audits.\n\nSee [PRIVACY.md](./PRIVACY.md) and [SECURITY.md](./SECURITY.md).\n\n## Marketplace Keywords\n\nClaude Code token usage, Claude usage, token cost, LLM cost, AI health checkup, agent monitoring, context cleanup, SkillFM Beacon, MCP server.\n\nExpected Official MCP Registry single-token hits:\n\n- `claude-code`\n- `token`\n- `usage`\n- `cost`\n- `skillfm`\n\n## License\n\nMIT\n",
  "bytes": 3244,
  "sha": "184f556e6b6b2674b29bf36bad6971463f404acb468479c73401abaac634677e",
  "repo_slug": "ericm1018/skillfm-claude-code-token-usage-mcp",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_github_ericm1018_skillfm_claude_code__98c618e2/readme"
}