CostWise — local MCP server for token-efficient coding agent context

CostWise — local MCP server for token-efficient coding agent context

costaffective-mcp•byokyashgajjar

A local MCP server that gives coding agents an indexed, token-budgeted view of a repository, along with tools to persist durable facts and stash large output out of context.

License: MIT•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Parses a repository with Tree-sitter and stores symbols, references, and call edges in a local SQLite index.
  • •Provides retrieval tools for semantic search, symbol lookup, reading implementation bodies, references, and callers.
  • •Persists durable per-repository facts with remember and retrieves them with recall.
  • •Stashes large blobs out of the conversation behind a short handle and recalls only matching slices within a token budget.

BEST FOR

  • •AI coding agents that need to keep long sessions cheap by avoiding repeated full-file reads.
  • •Large monorepos where full-codebase context reads are impractical.
  • •Code reviews that need to trace caller hierarchies to assess the impact of changes.

ABOUT COSTAFFECTIVE-MCP

CostWise — local MCP server for token-efficient coding agent context is cataloged as an MCP server attributed to okyashgajjar. A local MCP server that gives coding agents an indexed, token-budgeted view of a repository, along with tools to persist durable facts and stash large output out of context. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for CostWise — local MCP server for token-efficient coding agent context are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 5aaf8f6c7454 · 采集于 2026-11-13 13:32:00 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

CostWise — MCP

CostWise Logo

Coding agents that explore less, remember more, and carry less context.

Go 1.25+ Linux macOS Windows Claude Code Cursor OpenCode GitHub Stars

curl -fsSL https://raw.githubusercontent.com/okyashgajjar/costwise-mcp/main/install.sh | bash

One command on Linux, macOS, or Windows (via WSL). Detects your OS, installs Go if needed, builds from source, and connects your AI coding client.

Star this repo — it helps others find CostWise.

Without CostWise
Without CostWise
▶ watch video
With CostWise
With CostWise
▶ watch video

Coding agents should behave like experienced engineers

An experienced engineer walks into a codebase and does not:

  • Re-read the same files every time they answer a question.
  • Re-discover symbols they already found ten minutes ago.
  • Keep a 5,000-line build log in their head because they might need it later.
  • Carry every detail of every conversation around forever.

They remember where things live. They open only what they need. They hold facts, not files.

Most AI coding agents do the opposite. They re-explore the same repository over and over. They dump whole files into context. They grow the conversation window until every turn becomes expensive — not because the answer is hard, but because everything else in the window has to be re-read and re-cached.

CostWise is a local MCP server that makes coding agents behave more like that experienced engineer. It gives them fast, token-budgeted access to your repository — so they stop reading whole files to find small facts.


How CostWise fixes it

A tool that connects over MCP cannot control how or when the client caches. Cache breakpoints and TTLs are the client's decision. There is exactly one lever the server controls:

How many tokens ever enter the resident context window in the first place.

Shrink that, and both costs fall: a smaller window is cheaper to read every turn and cheaper to rewrite when the cache is invalidated. CostWise does four things in service of that goal.

1. Answer from a local index, not from files

CostWise parses your repository once with Tree-sitter and stores symbols, references, and call edges in a local SQLite index. Navigation questions — "where is this defined," "who calls this," "what references this" — are answered from the index in a few tokens instead of by dumping source files.

Results are compressed scopes sized to the kind of question asked. The model gets the location, not the file; the implementation body, not the whole module; the caller list, not the grep output.

2. Remember facts instead of repeating them

The remember tool persists a small durable fact — a decision, an entry point, a gotcha — to a per-repository store. The recall tool retrieves it later. Facts the model would otherwise re-derive or re-paste each turn are written down once and read back only when relevant.

3. Stash large output instead of pasting it inline

The stash_context tool parks a large blob — a file, a command output, a test log — out of the conversation and returns a short handle. The full content stays on disk, recoverable. The recall tool pulls back only the slice that matches a query, within a token budget.

A 5,000-line build log pasted inline is re-read and potentially re-written to the cache every turn for the rest of the session. Stashed, it costs about 20 tokens (the handle) and is pulled back only in the slice you need.

4. A session-awareness skill that makes the model use all of the above

A small piece of guidance (about 275 tokens) is delivered to every connected editor through the MCP protocol's instructions field. It teaches the model the lean workflow once per session: route large output through stash_context, persist durable facts with remember, prefer narrow retrieval over file reads.

It is also installable as a native Claude Code skill, AGENTS.md entry, or rules file for any editor that reads them. The same canonical source backs all delivery paths.


Supported Languages

CostWise indexes 11 languages using Tree-sitter AST parsers — symbol definitions, references, and call edges are all precomputed and stored in a local SQLite index.

LanguageFile ExtensionsParser
Go.goNative (bespoke)
Python.pyNative (bespoke)
JavaScript.js, .jsx, .mjsNative (bespoke)
TypeScript.ts, .tsxNative (bespoke)
Rust.rsTree-sitter
Java.javaTree-sitter
C.c, .hTree-sitter
C++.cpp, .cc, .cxx, .hpp, .hhTree-sitter
C#.csTree-sitter
Ruby.rbTree-sitter
PHP.phpTree-sitter

Go, Python, JavaScript, and TypeScript use bespoke extractors with deeper analysis; the other seven use a generic spec-driven extractor built on Tree-sitter's common conventions. All languages get symbols, references, call edges, and full-text search.


Installation

Installation

Full installation guide with platform-specific variants: costwise-mcp.vercel.app/docs/install

Quick Install (Linux / macOS / Windows via WSL)

The recommended way — one command:

curl -fsSL https://raw.githubusercontent.com/okyashgajjar/costwise-mcp/main/install.sh | bash

The script does everything:

  1. On Windows, detects Git Bash / MSYS and routes through WSL automatically
  2. Checks for Go and installs it if missing
  3. Checks for a C compiler (a CGO dependency) and installs it if missing
  4. Clones the repo and builds from source
  5. Installs to /usr/local/bin/costwise
  6. Detects AI coding clients and asks which to connect
  7. Configures MCP for the selected clients (and installs the session skill unless --no-skill)

Windows (Native PowerShell)

Not recommended unless you already have Go and gcc. Build manually:

git clone https://github.com/okyashgajjar/costwise-mcp.git
cd costwise-mcp
$env:CGO_ENABLED=1
go build -o costwise.exe ./cmd/costwise/

Or use the recommended path — install WSL (Windows 10 2004+ / Windows 11):

# In PowerShell as Administrator:
wsl --install

# Then in WSL:
curl -fsSL https://raw.githubusercontent.com/okyashgajjar/costwise-mcp/main/install.sh | bash

macOS / Linux (Manual Build)

Requires Go 1.25+ and a C compiler (CGO is mandatory — see the build notes below).

git clone https://github.com/okyashgajjar/costwise-mcp.git
cd costwise-mcp
CGO_ENABLED=1 go build -o costwise ./cmd/costwise/
sudo mv costwise /usr/local/bin/
costwise --version

What you get

CostWise provides 10 MCP tools that fall into three categories.

Retrieval tools answer questions from a pre-built index instead of by reading files:

  • search_code — semantic search by natural language question.
  • find_symbol — locate where a symbol is defined.
  • read_symbol — return a symbol's full implementation body.
  • find_references — every usage of a symbol, precomputed.
  • find_callers — which functions call a given function.

Maintenance tools keep the index in sync:

  • get_repository_summary — token-budgeted overview of the repo, drillable by module.
  • index_repository — manual re-index trigger (auto-watcher normally handles this).

Context-control tools keep large content and durable facts out of the resident window:

  • remember — persist a fact once instead of repeating it inline.
  • stash_context — park a large blob out of context behind a tiny handle.
  • recall — pull back only the slice that matches a query, within a budget.
Full tool catalog — why each tool exists and how to use it

Interactive tool catalog with schemas and examples: costwise-mcp.vercel.app/tools

Retrieval tools

search_code

Semantic repository search powered by a native Bluge inverted index and Tree-sitter.

Why: a natural-language question ("where is caching implemented?") should return the relevant scopes directly, not a list of files for the model to open one by one. Our new Bluge index provides fast BM25/TF-IDF scoring, fuzzy matching, and synonym expansion natively without AI overhead.

Example: Where is caching implemented?

find_symbol

Find where a symbol is defined.

Why: "where is X defined" is the single most common navigation question. It should cost a location, not a file.

Example: Find UserService

read_symbol

Return a symbol's full implementation body by name.

Why: "show me how X works" should cost one indexed line-range read, not a whole-file dump or an agent looping through search to reconstruct the body.

Example: Show the body of GetOrCreateRepoSession

find_references

Find every usage of a symbol.

Why: impact analysis ("what will this change break?") needs every usage, precomputed, without grepping the tree live. CostWise now supports standard LSIF (dump.lsif) ingestion for 100% accurate, compiler-verified references. If LSIF is unavailable, it gracefully falls back to Tree-Sitter regex approximations.

Example: Where is UserService used?

find_callers

Find which functions call another function.

Why: understanding a call chain should read from stored call edges, not from the model reconstructing it by reading callers' files.

Example: What calls processPayment()?

Note: search_code already routes an exact-text/full-text strategy internally, so a literal match is covered without a separate tool. For raw regex over files, use the host's native file search.

Maintenance tools

get_repository_summary

A token-budgeted overview of the repository: languages, the top modules by symbol count, and key symbols. Pass module to drill into one directory, and budget (small / medium / large) to cap the output.

Why: this is usually the first call of a session, so it is also the first thing that lands in the cached context and stays there. The earlier version emitted one line per directory plus a full per-directory chain with no limit — on a large monorepo that was tens of thousands of tokens, cached for the entire session. It is now hard-capped: the output stays small no matter how large the repository is, and details are pulled on demand via module.

index_repository

Refresh or rebuild repository indexes manually. Usually unnecessary because the watchdog re-indexes automatically.

Context-control tools (V2)

These exist because of the cache cost described above. They let the model keep large content and durable facts out of the resident window, losslessly.

remember

Persist a small durable fact — a decision, an entry point, a gotcha — to a per-repository store, so it does not have to be repeated inline in the conversation every time it is relevant.

Why: facts the model re-derives or re-pastes each turn are pure cache overhead. Write them down once; read them back when needed.

stash_context

Park a large blob (a whole file, a long command or test output, a generated report) out of the conversation and get back a short handle. Nothing is lost — the full content is written to disk and remains re-fetchable.

Why: this is the most direct lever on window size. A 5,000-line log pasted inline is re-read and potentially re-written to the cache every turn for the rest of the session. Stashed, it costs about 20 tokens (the handle) and is pulled back only in the slice you actually need.

Example: stash a 5,000-line log, keep roughly 20 tokens in context.

recall

Take back only what you need: the budgeted slice of a stashed blob (by handle), or matching remembered facts — instead of re-reading the whole thing.

Why: "take output by necessary query" is the read side of the loop. Combined with stash_context it becomes: stash the monster, then recall only the lines that match your query, within a token budget.

The loop: stash_context (park it) → recall (pull back only the slice) → remember (keep the durable conclusion). The content is always recoverable; the window stays small.


End-to-end workflow: a real CostWise session

See what a typical session looks like from first command to final answer — and how many tokens stay out of the window.

Step 1 — Install and index

curl -fsSL https://raw.githubusercontent.com/okyashgajjar/costwise-mcp/main/install.sh | bash
# Script detects OS, installs Go + C compiler if needed,
# builds binary, detects AI coding clients, and writes MCP config.
# The server auto-indexes your repo on first connection.

Step 2 — Start a coding session

Your AI agent connects to CostWise via MCP. On connect, the agent receives the ~275-token session skill — it now knows to use stash/recall/remember instead of pasting things inline.

Step 3 — Ask a navigation question

Instead of dumping a file, the agent calls:

find_symbol("UserService")
→ user_service.go:142

read_symbol("UserService")
→ func (s *UserService) Create(ctx context.Context, req *CreateRequest) (*User, error) {
      // full body returned, not the whole file
  }

Cost: ~50 tokens. Without CostWise: the agent reads user_service.go (potentially 500+ lines) into the window.

Step 4 — Trace an impact

You ask "what calls validateInput?" The agent calls:

find_callers("validateInput")
→ processPayment (payment.go:310)
  → validateOrder (order.go:88)
    → validateInput (validator.go:45)

Cost: ~30 tokens. Without CostWise: the agent opens each file, reads the callers, reconstructs the chain. Hundreds of tokens entering the window.

Step 5 — Run tests, get a failure

Tests fail with a 2,000-line log. Instead of pasting the whole thing inline:

stash_context(label="test-failure-output", content=<full 2000-line log>)
→ Stashed → abc123 (~28,000 tokens kept out of context)

Cost of the handle: ~20 tokens in context. The full log sits on disk.

Step 6 — Investigate the failure

recall(source="abc123", query="FAIL|panic|error")
→ test_service_test.go:42: TestCreateUser FAILED
    expected: 201, got: 500
    error: database connection refused

Cost: ~40 tokens (just the matching lines). Without CostWise: the agent re-reads or re-pastes the whole 2,000-line log.

Step 7 — Remember what you found

remember(key="db-conn-fix", fact="Database connection refused in tests — check DB_HOST env var in .env.test")
→ Remembered "db-conn-fix"

Cost: ~20 tokens, persisted for the rest of the session and future sessions.

Step 8 — Later, recall the fact

recall(query="db fix")
→ db-conn-fix: Database connection refused in tests — check DB_HOST env var in .env.test

No need to re-derive the fix. Cost: ~15 tokens.

Bottom line

StepWithout CostWiseWith CostWise
Find UserService500+ tokens (whole file)~15 tokens (location)
Read implementation500+ tokens (whole file)~40 tokens (body only)
Call chain trace300+ tokens (multiple files)~30 tokens (precomputed edges)
Test log investigation2,000+ tokens (pasted inline)~20 tokens (handle) + ~40 tokens (recall)
Remember the fixRe-derived next time~20 tokens (persisted)
Total window cost~3,300+ tokens~165 tokens

Over a full session, those savings compound to 80%+ fewer tokens in the resident window — and every subsequent turn pays less cache read.

Token Efficiency Benchmarks

Testing the "Honest & Raw" token footprint of the CostWise server across differently sized repositories:

Small Repo (~50 files)

  • Naive Full-Repo Context Cost: ~12,500 tokens
  • get_repository_summary (small): 286 tokens (0.01s)
  • search_code (exact match): 4 tokens (0.31s)
  • read_symbol: 24 tokens (0.01s)
  • Average Token Savings vs Naive Read: 99.16%

Medium Repo (~250 files)

  • Naive Full-Repo Context Cost: ~62,500 tokens
  • get_repository_summary (small): 528 tokens (0.04s)
  • search_code (exact match): 4 tokens (0.60s)
  • read_symbol: 24 tokens (0.03s)
  • Average Token Savings vs Naive Read: 99.70%

Large Repo (~1000 files)

  • Naive Full-Repo Context Cost: ~250,000 tokens
  • get_repository_summary (small): 517 tokens (0.18s)
  • search_code (exact match): 4 tokens (4.38s)
  • read_symbol: 24 tokens (0.37s)
  • Average Token Savings vs Naive Read: 99.93%

When it works best: Large codebases (>500 files) where context limits (e.g. 200k tokens) make naive full-file reads impossible or extremely expensive. CostWise compresses the structural understanding to under 500 tokens regardless of repository size.

When it doesn't: Tiny scripts or 1-3 file projects. The overhead of Tree-Sitter indexing and SQLite database creation is completely unnecessary when the entire codebase fits comfortably in 2,000 tokens. Just read the files directly in that scenario.

How the session skill makes the model use all of this automatically

Why it exists: the context-control tools above only help if the model actually reaches for them. Left to its defaults, a model will happily paste a whole file inline. The costwise-session skill is a small piece of session-awareness guidance that teaches the model the lean workflow once per session, after which it applies automatically — route large output through stash_context / recall, persist durable facts with remember, and prefer narrow retrieval over reading whole files.

It is deliberately tiny (about 275 tokens). That is a fixed, one-time cost per session, and it pays for itself the first time it prevents a single large blob from entering the window.

It is delivered two ways, so it works everywhere with no ongoing effort from you:

  1. Automatically, in every editor. The MCP server advertises the guidance through the protocol's instructions field. Every MCP client loads it on connect — Claude Code, Cursor, Codex, OpenCode, Antigravity, and any other MCP-compatible client. No setup, no per-editor files.

  2. As a native Claude Code skill. Running costwise install also writes ~/.claude/skills/costwise-session/SKILL.md (opt out with --no-skill). You can manage it directly:

    costwise skill install      # write the skill (global)
    costwise skill install --local   # write it into the current project only
    costwise skill uninstall    # remove it
    costwise skill print        # print the guidance for manual placement in any tool
    

For editors that read their own rules or instructions files, costwise skill print outputs the guidance to paste in. The same single source of truth backs both delivery paths.

Architecture

Interactive architecture diagram with component deep-dives: costwise-mcp.vercel.app/architecture

Enterprise Ready Features:

  • Zero-Latency Cold Starts: Integrate with our GitHub Action (costwise-action) to pre-compute the SQLite cache.db on CI/CD. When booting locally, CostWise instantly downloads the pre-computed artifact.
  • Shared Team Cache: Configure COSTWISE_PG_URL to connect to a Postgres backend instead of local SQLite. Stashes and facts remembered by Developer A are instantly available to Developer B.
  • Policy Engine: Strict AST-based architecture bounds checking via costwise validate against a centralized costwise-architecture.yaml configuration.
AI Client (MCP Host)
    │
    ├── stdio transport ──► costwise serve (MCP Server)
    │                           │   advertises session guidance via the MCP instructions field
    │                           │
    │                           ├── Session Manager (per-repo, persistent across tool calls)
    │                           ├── Repository State Manager
    │                           ├── Watchdog
    │                           ├── Shared Indexer
    │                           │
    │                           ├── Tree-sitter Parser
    │                           ├── Symbol Index
    │                           ├── Reference Index
    │                           ├── Call Graph Index
    │                           │
    │                           ├── search_code ───────────► tree-sitter AST match
    │                           ├── find_symbol ───────────► SymbolDB lookup
    │                           ├── read_symbol ───────────► SymbolDB body read
    │                           ├── find_references ───────► SymbolDB reference search
    │                           ├── find_callers ──────────► SymbolDB call graph
    │                           ├── get_repository_summary ► KnowledgeStore (token-budgeted)
    │                           ├── index_repository ──────► SharedIndexer
    │                           ├── remember ──────────────► per-repo durable facts
    │                           ├── stash_context ─────────► large blobs parked out of context
    │                           └── recall ────────────────► query-scoped read-back

All per-repository state (index, stash, facts) lives under the repository's local index directory, so separate repositories never clobber each other.

Commands
CommandDescription
costwise installInteractive installation
costwise install --allConfigure all detected clients
costwise install --targetConfigure a specific client
costwise install --buildBuild from source before installing
costwise install --repairRepair installation
costwise install --no-skillInstall without the session skill
costwise skill installInstall the costwise-session skill
costwise skill uninstallRemove the session skill
costwise skill printPrint the guidance for manual setup
costwise doctorValidate installation
costwise serveStart the MCP server
costwise validateValidate repo architecture against policy
costwise uninstallRemove MCP configuration
Uninstall
  1. Remove MCP client configs (this also removes the session skill):
costwise uninstall --all
  1. Delete the binary:

Linux / macOS:

rm -f "$(command -v costwise)"

Windows:

Remove-Item (Get-Command costwise).Source -Force
Storage locations — where everything lives on disk

All CostWise data lives in two places. Here is where to find and delete it if needed.

Per-repository storage (.mycli-fts/)

Created at the root of every indexed repository. Contains everything that is specific to that repo:

PathWhat it storesSafe to delete?
.mycli-fts/stash/Stashed blobs from stash_context + manifest.jsonYes. Lose saved stashes.
.mycli-fts/session_facts.jsonDurable facts from remember toolYes. Lose saved facts.
.mycli-fts/symbols_*.dbTree-sitter symbol index (definitions, references, calls)Yes. Triggers re-index on next session.
.mycli-fts/fts_*.dbFull-text search indexYes. Triggers re-index on next session.
.mycli-fts/cache*.dbLRU cache of recent lookupsYes. Temporary performance cache.

To wipe everything for a repository:

rm -rf /path/to/your/repo/.mycli-fts

The index will rebuild automatically on the next session.

Global storage (/tmp/)

Shared across all repositories. A known landmine — these are not per-repo and can clobber:

PathWhat it storesSafe to delete?
/tmp/repo_memory.dbLong-term symbol memory across sessionsYes. Lose learned symbols.
/tmp/discovery_memory.dbCross-session discovery patternsYes. Lose learned patterns.
rm -f /tmp/repo_memory.db /tmp/discovery_memory.db
Contributing

We welcome contributions of all kinds — bug fixes, new language parsers, better retrievers, documentation, benchmarks.

See CONTRIBUTING.md for full details.

Key documentation for contributors:

  • Confidence & Accuracy Scoring — the complete map of how every retrieval tool scores, ranks, and applies confidence thresholds. Exact formulas, confidence ceilings, quality gates, and decision logic for FTS, Tree-sitter, Grep, Reference, Call Graph, Architecture, Flow Graph, and the Query/Answer Type classifiers.

Quick start:

git clone https://github.com/okyashgajjar/costwise-mcp.git
cd costwise-mcp
CGO_ENABLED=1 go build ./...
CGO_ENABLED=1 go test ./...

Good first issues:

  • Add Tree-sitter grammar for a new language
  • Fix the shared /tmp/ DB path clobbering (per-repo paths needed)
  • Improve compression for a specific answer type
  • Add SSE/HTTP transport for remote deployment
  • Write better benchmarks

Don't know where to start? Open an issue asking for guidance.

Development

CGO is mandatory. The project depends on go-sqlite3 and go-tree-sitter, both of which use C bindings; builds with CGO_ENABLED=0 will fail.

git clone https://github.com/okyashgajjar/costwise-mcp.git
cd costwise-mcp
CGO_ENABLED=1 go build ./...
CGO_ENABLED=1 go test ./...

On Ubuntu/Debian: sudo apt install gcc libsqlite3-dev. On macOS: Xcode Command Line Tools. On Windows: MinGW-w64.

Supported clients and config surfaces
ClientConfig Surface
Claude Code~/.claude.json, .mcp.json, or settings files
Cursor~/.cursor/mcp.json or workspace MCP settings
OpenCodeopencode.json
Codex CLI~/.codex/config.toml
Antigravity~/.gemini/config/mcp_config.json
MCP-compatiblestdio transport
Repository state

Why it exists: the model should know whether the index it is querying is trustworthy. CostWise tracks three states and behaves accordingly.

StateMeaning
unindexedNo usable index exists yet
staleFiles changed after the last index
readyIndex is in sync with the working tree

Agent mode can auto-index when needed; interactive modes prompt first.

Use cases

Explore detailed use case studies: costwise-mcp.vercel.app/use-cases

  • AI coding agents — reduce token spend with compressed, scope-level lookups, and keep long sessions cheap by parking large content out of context.
  • Large monorepos — fast SQLite index queries in microseconds instead of disk scans, and budgeted summaries that stay small regardless of repo size.
  • Code reviews — trace caller hierarchies to audit the impact of incoming changes.
  • Repository audits — generate summaries of file distribution, language splits, and structure.
  • MCP development — a reference implementation for the stdio protocol, fsnotify watchers, tree-sitter mapping, and the MCP instructions field.
Doctor

costwise doctor checks:

  • Binary existence and permissions
  • PATH visibility
  • MCP configuration for each client
  • Server startup
  • Repository state
Troubleshooting
SymptomCauseFix
costwise: command not foundBinary not in PATHAdd ~/.local/bin or /usr/local/bin to PATH, or use absolute path
Server shows "disconnected"Binary crashed or missingRun costwise serve directly to see error output
Tools not appearing in clientConfig syntax errorValidate JSON: python3 -m json.tool ~/.claude.json
CGO_ENABLED=0 build failureCGO required by go-sqlite3 and tree-sitterAlways use CGO_ENABLED=1
Permission deniedBinary lacks execute bitchmod +x $(which costwise)
Index seems staleFiles changed after last indexCall index_repository or wait for auto-watchdog
Stashed blobs missing.mycli-fts/stash/ was deletedRe-stash the content — old handles will not work
Session skill not workingMCP instructions field not supported in older clientsUpgrade to latest client version, or manually install the skill with costwise skill install

Still stuck? Run costwise doctor and open an issue with the output.

Supported platforms

All platforms with Go 1.25+ and a C compiler are supported via the install script (install.sh), which handles toolchain setup automatically:

  • Linux amd64 / arm64
  • macOS amd64 / arm64 (Intel and Apple Silicon)
  • Windows amd64

Pre-built release binaries are available for Linux amd64 and Windows amd64. All other platforms are built from source by the install script.

Learn more

Contributors

Thanks to everyone who has contributed to CostWise:

Contributors

License

MIT


Built for developers who believe AI coding tools should be fast, local, and open.
Save tokens. Buy Coffee.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for CostWise — local MCP server for token-efficient coding agent context from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/costaffective-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools