DoboCache

v0.9.2
io.github.dobo123123/dobocache Checked 4 days ago Published 19 days ago

Stabilizes LLM prompt-cache prefixes so provider caching hits.

Values you need

VariableWhat it is
DOBOCACHE_LOG_DIRoptional Directory for the local white-box JSONL log. Absolute path recommended. Optional; defaults to the platform log directory: %LOCALAPPDATA%\DoboCache\logs on Windows, ~/Library/Logs/DoboCache on macOS, $XDG_STATE_HOME/dobocache (fallback ~/.local/state/dobocache) on Linux.
DOBOCACHE_WHITEBOXoptional White-box report card mode: quiet (default, no card in tool output, log only), once (one card next call, then back to quiet), always (card on every call, ~300+ tokens each). Unrecognized values fall back to quiet with a warning. Cumulative stats are always available via cf_report at no token cost.
DOBOCACHE_HIT_PRICE_PER_Moptional Optional price per million tokens for cache-hit tokens used in savings estimates.
DOBOCACHE_MISS_PRICE_PER_Moptional Optional price per million tokens for cache-miss tokens used in savings estimates.

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add dobocache -- npx -y dobocache@0.9.2
Add to claude_desktop_config.json
{
  "mcpServers": {
    "dobocache": {
      "args": [
        "-y",
        "dobocache@0.9.2"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "dobocache": {
      "args": [
        "-y",
        "dobocache@0.9.2"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "dobocache": {
      "args": [
        "-y",
        "dobocache@0.9.2"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.dobocache]
command = "npx"
args = ["-y", "dobocache@0.9.2"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: cf_ping, cf_judge, cf_tier, cf_inject, cf_meter, cf_warmup, cf_report, cf_prune, ….
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json