About Costwise MCP
Costwise MCP is an MCP server published by okyashgajjar in the RAG category: local MCP server that helps coding agents stop re-reading the same code every turn. Repository intelligence, cache-write optimization, and long-term session memory. 100% local. No API keys. Conduid read 13 tools from its source: allow_dir, find_callers, find_references, find_symbol, get_repository_summary, index_repository and 7 more. No package is published for it, so it installs from a source checkout.
The repository has 22 stars and 4 forks, and its last commit was on 16 Nov 2026. Conduid has no tagged release on record for it. Its topics include code-intelligence, cost-optimization, devtools, harness-engineering, opencode and rag.
Install
git clone https://github.com/okyashgajjar/costwise-mcpTools (13)
allow_dirGrant temporary permission to access a directory that is not in the default allowed paths. Call this only after getting explicit approval from the user. After adding, retry the original tool call with the same repo_path.find_callersFind all functions that call a specific function.find_referencesFind all references and usages of a symbol across the repository.find_symbolFind the exact definition location of a symbol (class, function, variable).get_repository_summaryGet a compact, token-budgeted overview of the repository (top modules, languages, file counts). Pass `module` to drill into one directory instead of the whole repo.index_repositoryManually trigger a re-index of the repository. Usually unnecessary as the watcher auto-reindexes.read_symbolReturn the full source code of a symbol (function, method, or type) by name — the implementation body itself, not just its location. Use this instead of reading a whole file when you need to see how something is implemented.recallTake back ONLY what you need: returns the budgeted slice of a stashed blob (by handle) or matching remembered facts, instead of the whole thing. With no `source`, lists matching facts and stash handles.rememberPersist a small durable fact (a decision, a path, a gotcha) so you don't have to keep repeating it inline in the conversation. Recall it later with `recall` instead of re-deriving it. Keeps the context window small.search_codeSearch the repository with an intelligent query pipeline. Best for natural language questions, architecture, or general code search.session_briefGet a compact summary of what happened in past session(s) on this repo — facts remembered, content stashed, files reindexed. Use this to catch up before starting work, instead of re-deriving context from scratch.stash_contextPark a large blob (a long file, a big command output, a generated report) OUT of the conversation and get back a tiny handle. Nothing is lost — the full content stays on disk and is re-fetchable with `recall`. Use this instead of pasting large output inline, which would be re-cached every turn.validate_codeValidate the repository against its .costwise.yaml policy, checking for required/denied architectural patterns.Security checks
6 checks have not been run yet.