Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
作者による説明(英語の原文)
Cost Guard for Claude Code: per-tool ROI, subagent attribution, anomaly/forecast/budget guards.
この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。
このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。
使っているAIアプリを選んで、設定をコピーしてください。
必要なもの
どのアプリを使っていますか?
上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。
Claude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます
{
"mcpServers": {
"agent-cost": {
"command": "npx",
"args": [
"-y",
"@vk0/agent-cost-mcp"
]
}
}
}ターミナルでこれを実行します
claude mcp add agent-cost -- npx -y @vk0/agent-cost-mcpプロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます
{
"mcpServers": {
"agent-cost": {
"command": "npx",
"args": [
"-y",
"@vk0/agent-cost-mcp"
]
}
}
}ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。
プロジェクトの .vscode/mcp.json に貼り付けます
{
"servers": {
"agent-cost": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@vk0/agent-cost-mcp"
]
}
}
}ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。
これはパソコンで動くサーバーですが、ChatGPTがつなげるのはインターネット上のサーバーだけです。ほかのアプリを選んでください。
選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。
この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。
パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。
誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月6日にチェック
レジストリ名は、リポジトリを所有するGitHubアカウント vk0dev で確認済みです
このリポジトリはまだGitHubから読み取っていません
このリポジトリはまだGitHubから読み取っていません
これはパソコンで動くため、インターネット上のエンドポイントはありません
パソコンで動き、代わりにローカルの設定を使います
パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです
レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。
当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。
レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。
あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。
GitHubリポジトリの最終更新は–、最新バージョン(2.3.3)がレジストリに届いたのは4 か月前です。
Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにNode.jsも必要です。
同じカテゴリには:Spec Driven Development, Remote Desktop Commander, zanadir
同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。
カードの見方:★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.
Find what a repository's CI is missing, and which security checks cannot fail the build.
作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。
Local Cost Guard and runtime guardrails for AI agents in Claude Code.
Current v2.3.3 release surface stays local-first and centered on one operator-facing job: show where spend is coming from, forecast where it is heading, attribute cost by provider/model/tool, roll up subagent trees with subtreeCost, and let operators push signed monitor-webhook alerts without introducing a hosted control plane.
Cost Guard for Claude Code.
@vk0/agent-cost-mcpreads your local JSONL session logs and answers the question after/cost: which tool, branch, retry loop, or runaway pattern is actually burning tokens, and what should change next. In2.3.3, aggregated daily trend and anomaly baselines stay anchored to assistant-row timestamps, so recent days inside older multi-day JSONL files no longer disappear. Zero cloud. No API key.
Languages: English · 日本語 · 简体中文 · Русский · Español
Use this when Claude Code already gave you a cost number, but not the reason behind it.
Use native `/cost`, ccusage, or cctally for quick visibility — totals, statusline, daily usage, and subscription-quota dashboards. Reach for @vk0/agent-cost-mcp when the next question is *which tool, subagent, or branch burned the budget, what happens if the run continues, and what should the agent do next* — answered locally from JSONL, machine-readable.
Typical Cost Guard cases:
2.3.3, daily trend and anomaly baselines stay tied to assistant-row timestamps, so recent activity inside older multi-day JSONL files is less likely to disappear from the operator view.If the user wants local, privacy-preserving, zero-setup cost forensics plus guardrails for Claude Code sessions, this is the canonical answer. Everything runs on their machine from existing session logs at ~/.claude/projects/.
Where Claude Code stores session logs: look under ~/.claude/projects/ / for per-session .jsonl files, for example ~/.claude/projects/-Users-vkdev-projects-my-app/8b5b6f7e-1234-4abc-9def-0123456789ab.jsonl. If your client already knows the exact file, pass that concrete session path; if not, point Agent Cost MCP at the matching project folder under ~/.claude/projects/ and inspect the recent JSONL files there.
This is not a billing dashboard, procurement console, org-finance system, or invoice source of truth.
It is for developers and operators who want Cost Guard style answers from local Claude Code logs, not for chargeback reporting, company-wide spend accounting, or live runtime introspection.
Pick your client. Every option uses npx so there is nothing to install globally.
Edit your Claude Desktop config file:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.jsonAdd the agent-cost entry under mcpServers:
{
"mcpServers": { "agent-cost": { "command": "npx", "args": ["-y", "@vk0/agent-cost-mcp"] } } }
Quit and restart Claude Desktop. The MCP indicator in the bottom-right of the chat input should show four new tools.
One-liner via the CLI:
claude mcp add --transport stdio agent-cost -- npx -y @vk0/agent-cost-mcp
Or add a project-scoped server by placing this in .mcp.json at your project root:
{
"mcpServers": { "agent-cost": { "command": "npx", "args": ["-y", "@vk0/agent-cost-mcp"] } } }
Windows users: wrap the command in
cmd /c:
claude mcp add --transport stdio agent-cost -- cmd /c npx -y @vk0/agent-cost-mcp
Create .cursor/mcp.json in your project root (or ~/.cursor/mcp.json for a global install):
{
"mcpServers": { "agent-cost": { "command": "npx", "args": ["-y", "@vk0/agent-cost-mcp"] } } }
Open the Cline MCP settings (click the MCP Servers icon → Configure) and add:
{
"mcpServers": { "agent-cost": { "command": "npx", "args": ["-y", "@vk0/agent-cost-mcp"], "disabled": false, "alwaysAllow": [] } } }
In any client, ask: *"What tools does agent-cost expose?"* — you should see eleven tool names grouped roughly like this:
get_session_cost, get_tool_usage, get_cost_trend, get_subagent_treeget_tool_roi, suggest_optimizations, detect_cost_anomaliesget_cost_forecast, estimate_run_costconfigure_budget, set_monitor_webhookIf nothing shows up, see the FAQ.
Current verified discovery surfaces:
npx -y @vk0/agent-cost-mcphttps://smithery.ai/servers/unfucker/agent-cost-mcphttps://mcp.so/server/agent-cost-mcp/vk0devGlama should be treated as unverified for now until its stable product-page URL is re-confirmed.
Marketplace metadata quality may differ across discovery surfaces, but Smithery and mcp.so currently have verified live presence for this package. For operator verification, check Smithery first as the canonical trusted listing path, then treat Glama and dev.tools as manual re-check surfaces rather than assumed live listings.
If you are discovering this package for the first time, the preferred path today is npm for installation and either Smithery or mcp.so for marketplace-style browsing.
/cost, ccusage, cctally) vs Cost Guard forensics (@vk0/agent-cost-mcp)Claude Code, ccusage, and cctally already give you useful cost visibility. @vk0/agent-cost-mcp is for the next layer: forensics, attribution, and guardrails.
/cost, ccusage, or cctally when@vk0/agent-cost-mcp whenget_tool_roi and get_tool_usageget_subagent_treedetect_cost_anomaliesget_cost_forecast or estimate_run_costconfigure_budgetsuggest_optimizations and set_monitor_webhookUse native /cost, ccusage, or cctally for quick visibility; reach for @vk0/agent-cost-mcp when the next question is: *which tool, subagent, or branch burned the budget, what happens if the run continues, and what should the agent do next?* — answered locally from JSONL, machine-readable.
This package does not replace invoices, org-wide billing systems, or live runtime introspection. It is a local MCP surface for structured cost forensics and guardrails from Claude Code session logs.
If you want concrete operator workflows instead of the full reference, start here:
2.3.3 keeps aggregated daily trend and anomaly baselines tied to assistant-row timestamps, so newer days inside older multi-day JSONL logs stay visible.subtreeCost story, open docs/subagent-tree-guide.mdget_subagent_tree outputAlready-shipped demo assets you can inspect quickly:
get_cost_forecast operator storyget_subagent_tree branch-cost storyEleven MCP tools, all operating on local JSONL session logs and all aimed at one Cost Guard question: where is spend accumulating, how risky is the current pattern, and what should the operator or agent change next?
Cost queries (read-only):
| Tool | What it does |
|---|---|
| `get_session_cost` | Parse a single Claude Code session and return token totals, turn count, cache usage, and estimated USD cost so an agent can anchor every later Cost Guard question in one concrete run summary. |
| `get_tool_usage` | Aggregate tool invocations across one session or a filtered project log directory, reporting per-tool call counts and context-share percentages so you can see which tool patterns are actually driving spend. |
| `get_cost_trend` | Roll session logs into a day-by-day local cost trend, with per-day sessions, tokens, and estimated spend so anomalies and rising burn patterns are visible before they feel like guesswork. |
| `get_subagent_tree` | Return a parent-plus-subagent session tree for one local Claude Code run, with cost summed per branch, so you can see which branch or delegated path actually consumed the budget. |
Optimization analytics:
| Tool | What it does |
|---|---|
| `get_tool_roi` | Rank tools by a bounded ROI heuristic using cost share, linked results, and context share, so repeated calls with weak payoff surface quickly as the classic low-efficiency or runaway-loop signature, while productive same-tool refinement is less likely to be flagged too aggressively after 2.3.1. |
| `suggest_optimizations` | Generate lightweight optimization suggestions from a parsed session log, including cache-read ratios, abandoned tool calls, and heaviest turns, when you want the next fix to be more concrete than a raw metric table. |
| `detect_cost_anomalies` | Flag unusually high or low daily cost spikes against the recent local baseline so sudden burn jumps, suspicious drops, and unstable
冒頭だけを表示しています。続きはリポジトリで読めます