Command Palette

Search for a command to run...

UnylyUnyly
Весь каталог

KiroStats

БесплатноНе проверен

Real-time credit usage and session tracking for Kiro IDE, reading from local state without auth or network.

GitHubEmbed

Описание

Real-time credit usage and session tracking for Kiro IDE, reading from local state without auth or network.

README

Real-time credit usage and session tracking for Kiro IDE — as an MCP server.

No auth. No network. No cloud dependency. Reads directly from Kiro's local execution files.

What You Get

Three metrics, live from the same source that powers Kiro's "Est. Credits Used" display:

  • Credits Used — exact per-turn credits from execution files
  • Agent Time — cumulative time Kiro spent processing
  • Session Time — total time since the chat started

Usage

Type /stats in any Kiro chat.

How It Works

Kiro persists every agent execution to disk as JSON files containing usageSummary[] arrays with exact per-turn credit values. KiroStats reads these files directly.

Data source:

%APPDATA%/Kiro/User/globalStorage/kiro.kiroagent/{workspace-hash}/{session-hash}/{execution-hash}

The single tool (get_session_stats) finds the running execution, groups all executions by chatSessionId, and returns aggregated credits and timing.

Install

git clone https://github.com/BrennanWebb/KiroStats.git
cd KiroStats
.\install.ps1

The installer:

  1. Pip-installs the MCP server package
  2. Registers it in ~/.kiro/settings/mcp.json
  3. Creates a /stats steering file for manual invocation

Restart Kiro after install.

Manual Install

pip install -e .

Add to ~/.kiro/settings/mcp.json:

{
  "mcpServers": {
    "kiro-stats": {
      "command": "kiro-stats-mcp",
      "autoApprove": ["get_session_stats"]
    }
  }
}

Copy .kiro/steering/stats.md from this repo to ~/.kiro/steering/.

Tool

Tool Returns
get_session_stats credits_used, agent_time, session_time

Supported Platforms

OS Kiro Data Path
Windows %APPDATA%\Kiro\User\globalStorage\kiro.kiroagent\
macOS ~/Library/Application Support/Kiro/User/globalStorage/kiro.kiroagent/
Linux ~/.config/Kiro/User/globalStorage/kiro.kiroagent/

Requirements

  • Python 3.10+
  • Kiro IDE installed and opened at least once

Uninstall

pip uninstall kiro-stats-mcp
# Remove "kiro-stats" from ~/.kiro/settings/mcp.json
# Delete ~/.kiro/steering/stats.md

License

MIT

from github.com/BrennanWebb/KiroStats

Установка KiroStats

У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.

▸ github.com/BrennanWebb/KiroStats

FAQ

KiroStats MCP бесплатный?

Да, KiroStats MCP бесплатный — установка в пару кликов через Unyly без оплаты.

Нужен ли API-ключ для KiroStats?

Нет, KiroStats работает без API-ключей и переменных окружения.

KiroStats — hosted или self-hosted?

Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.

Как установить KiroStats в Claude Desktop, Claude Code или Cursor?

Открой KiroStats на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.

Похожие MCP

Compare KiroStats with

Не уверен что выбрать?

Найди свой стек за 60 секунд

Автор?

Embed-бейдж для README

Похожее

Все в категории development