MCP tools — overview
The small, curated set of MCP tools repowise exposes to Claude Code and any MCP-compatible AI agent. Task-shaped, batched, and built to collapse long tool-call chains into one round-trip.
Most MCP servers expose tools that mirror data entities — one file, one symbol, one diff. That forces the agent into long sequential chains. Repowise exposes a small, curated set of task-shaped tools instead. Pass multiple targets in one call. Get complete context (docs, ownership, metrics, history, decisions) back. Same answer, fewer round-trips, fewer tokens.
The core tools
These nine tools are the documented core surface, available in both single-repo and workspace modes:
| Tool | What it answers | When the agent calls it |
|---|---|---|
get_overview | Architecture summary, module map, entry points, git health | First call on any unfamiliar codebase |
get_answer | One-call RAG: retrieves over the wiki, gates on confidence, synthesizes a cited answer | First call on any code question |
get_context | The workhorse — docs, symbols, ownership, freshness, optional callers/callees/metrics for any targets | Before reading or modifying code |
get_symbol | Raw source bytes for one indexed symbol with exact line bounds | When you need one function/class body |
search_codebase | Hybrid symbol / path / concept search, mode routes by query shape | Finding a symbol or file, or discovering code by topic |
get_risk | Hotspot scores, dependents, co-change partners, blast radius, reviewers, test gaps | Before modifying files |
get_why | Architectural decision search — NL query, path lookup, or health dashboard | Before architectural changes |
get_dead_code | Unreachable code sorted by confidence tier with cleanup impact | Cleanup tasks |
get_health | Code-health scores across three signals (defect · maintainability · performance) — KPIs + worst files, or per-file findings | Self-check before a PR / before refactoring |
Also always on by default: list_repos, which enumerates the repos the
server can reach (most useful in workspace mode, where it lists every
workspace repo and the default), and
generate_refactoring_code, which
turns a get_health(include=["refactoring"]) plan into applyable code
(opt-in via config; see its page). That's 11 tools advertised by default
in single-repo mode.
In workspace mode, every tool accepts a repo parameter — pass a
specific repo name, or "all" to federate across the workspace.
Three more in workspace mode
When the server runs over a workspace (several repos indexed together), three additional tools appear. They answer cross-repo questions that have no single-repo equivalent.
| Tool | What it answers |
|---|---|
get_blast_radius | If you change this service, what breaks across the other repos |
get_conformance | Whether the live system graph obeys the declared dependency rules, plus dependency cycles |
get_architecture | Whole-system coupling, the cyclic core, and a 1-10 architecture score |
They are documented in full on the Workspace MCP mode page.
Two opt-in tools
get_dependency_path (shortest dependency path between two files or
modules) and get_execution_flows (entry points + call traces) are
registered tools that ship with the server but are off by default in
every mode. Turn them on per repo in .repowise/config.yaml:
mcp:
tools: ["+get_execution_flows", "+get_dependency_path"]or per launch with repowise mcp --tools "+get_execution_flows". See
Configuring the tool surface for the
full +/- delta syntax and the explicit-allowlist / all shapes.
Truncation is reversible. Responses are token-budgeted, but dropped
content is no longer silently lost: a _meta.omitted envelope lists
refs (repowise#<12-hex>) that resolve via
get_symbol — or repowise expand <ref> from a
shell, with no extra tool. See
Distill for the full reversibility model.
Connecting
repowise init automatically writes .mcp.json at the project root
and (for Claude Code) registers the server in ~/.claude/settings.json.
You don't need to do anything else.
To wire up another editor manually:
{
"mcpServers": {
"repowise": {
"command": "repowise",
"args": ["mcp", "/path/to/your/project"]
}
}
}For the hosted version, use the HTTP transport with an API key from Settings → Editor.
Drop the same mcpServers block into ~/.cursor/mcp.json.
Add the same mcpServers block to claude_desktop_config.json
(macOS: ~/Library/Application Support/Claude/,
Windows: %APPDATA%\Claude\). Restart Claude Desktop after editing.
Use the MCP extension and point it at repowise mcp <project>.
Add to Windsurf settings → MCP servers using the same command.
A real five-call task
"Add rate limiting to all API endpoints." Without repowise, an agent greps and reads files for ~30 calls. With repowise, five:
get_overview()
get_context(targets=["middleware", "api/routes", "payments"])
get_risk(targets=["middleware/auth.ts"])
get_why(query="rate limiting")
search_codebase(query="rate limit OR throttle OR retry")That's the design point. Each call returns a task-shaped slice of the codebase — not a single file or symbol — so the agent reaches a decision in one or two passes instead of ten.
Why a curated surface
Repowise's internal modules expose more graph navigation primitives
(callers/callees, dependency paths, graph metrics, execution flows,
community detection). Most of that surfaces as include options on the
core tools rather than separate calls; two of the primitives
(get_dependency_path, get_execution_flows) are real MCP tools but
ship off by default, because every extra tool in the schema is overhead
on tasks that don't need it.
The public tools are deliberately one level up. get_context absorbs
callers, callees, metrics, and community into a single call via its
include parameter. get_risk rolls up hotspot, dependents,
co-changes, reviewers, and test gaps. get_why covers natural-language
search, path lookup, and the global health dashboard. get_health
rolls up the three-signal marker scores plus targeted findings.
If you're building on top of repowise programmatically, the
packages/server Python API exposes the lower-level primitives. The
MCP surface is what AI agents see, and AI agents do better with fewer,
richer tools.
Other commands
One-shot utilities — costs, coverage, dead-code, doctor, export, generate-claude-md, telemetry, login/logout/whoami, augment.
get_overview
Architecture summary, module map, entry points, ownership, hotspots, and community structure for an entire repository — the first call your agent should make on any unfamiliar codebase.