On this page
To set up an MCP server for Claude Code, Cursor and Cline, install repowise, run repowise init in your repository, and connect each editor to the stdio server repowise mcp. Claude Code is wired by init itself, Cursor needs one repowise agents add command, and Cline takes a short JSON entry. All three then read the same index through ten tools.
The Model Context Protocol is the open standard editors use to call external tools. Without a server, an agent finds code by searching text and reading files one at a time. With the repowise server it can ask for the dependency graph, ownership, health, dead code and the decisions behind a module in a single call. For the case for doing this, see giving AI coding agents real codebase context.
Three editor windows each connected by a line to one central index cardSetup at a glance
| Step | Command | Time |
|---|---|---|
| Install | pip install repowise | under a minute |
| Index | repowise init --no-prose | a few minutes on a large repo |
| Claude Code | nothing more, init registers it | 0 |
| Cursor | repowise agents add --target=cursor --yes | seconds |
| Cline | paste the entry from repowise agents print-config claude-code | a minute |
| Verify | ask the agent to call get_overview | seconds |
Scroll the table sideways to see every column.
Commands match the repowise docs, current as of release 0.56.
Step 1: install and index
Install the CLI with pip install repowise (Python 3.10 or newer), then index from the repository root:
pip install repowise
cd your-repo
repowise init --no-prose
--no-prose keeps the run keyless: it parses every file, builds the dependency graph, reads git history, scores code health, finds dead code and renders a complete wiki from that structure. No API key, no model spend. Run plain repowise init instead and it asks whether to add model-written prose, with a cost estimate shown before any call. The index lives in .repowise/ at the repo root.
Step 2: connect your editor
Unless you pass --no-editor-setup, repowise init writes the MCP entry for Claude Code and VS Code for you. Every editor below launches the same command, repowise mcp, over stdio.
Claude Code
Nothing to do after init. It writes .mcp.json at the repo root and registers the server for Claude Code. Restart Claude Code, approve the project's repowise server if asked, and run /mcp to see its status. To add it by hand, use the documented command:
claude mcp add --transport stdio --scope project repowise -- repowise mcp
The --scope project flag stores it in .mcp.json, so the whole team shares it through version control. To also install slash commands and skills, run /plugin marketplace add repowise-dev/repowise then /plugin install repowise@repowise.
Cursor
repowise agents add --target=cursor --yes
This writes the entry Cursor reads. Cursor's MCP docs describe the two places it lives: .cursor/mcp.json in the project, or ~/.cursor/mcp.json for every project. Use --scope=project or --scope=user on agents add to pick one. The resulting entry looks like this:
{
"mcpServers": {
"repowise": {
"command": "repowise",
"args": ["mcp", "/path/to/your/repo", "--transport", "stdio"]
}
}
}
Cline
Cline reads its own settings file. In the Cline panel, open the MCP Servers icon, then the Configure tab, then Configure MCP Servers (Cline docs). Print the entry repowise generates and paste it under mcpServers:
repowise agents print-config claude-code
The same command works for any other MCP client: it prints the snippet and writes nothing. repowise agents lists every supported host and whether it is wired, including Codex, OpenCode, Hermes, GitHub Copilot CLI and Kiro.
Step 3: verify it works
Restart the editor, then ask the agent to call get_overview. Most agents read MCP config only at startup. An architecture summary back, with the module map and entry points, means the server is connected.
Then ask real questions in plain language. The agent picks the tool:
| Ask | Tool it reaches for |
|---|---|
| "Give me a tour of this codebase." | get_overview |
| "How does authentication work?" | get_answer |
"What breaks if I change src/auth.py?" | get_context with callers, get_risk |
| "What code is dead here?" | get_dead_code |
| "What should we fix first?" | get_health |
| "Which tests should I run for this branch?" | get_change_risk, get_risk |
Scroll the table sideways to see every column.
The ten default tools are get_answer, get_context, get_symbol, search_codebase, get_risk, get_change_risk, get_why, get_overview, get_health and get_dead_code. None of them edits your code. The full reference is in the MCP tools docs, and you can see the output on a live repository.
Tune the tool surface
Agents spend context on every tool schema they load. To trim it, set the mcp.tools block in .repowise/config.yaml, or pass --tools at launch:
repowise mcp --tools get_answer,get_context,get_risk # only the tools you name
repowise mcp --tools "+get_execution_flows" # default set plus one
A plain list exposes only the tools named; a + or - prefix adjusts the set. Restart the server after changing the surface.
Share one server across a team
repowise mcp defaults to stdio. For HTTP clients, start it with a transport flag:
repowise mcp --transport streamable-http # HTTP on port 7338
repowise mcp --transport sse --port 7338 # legacy SSE
If you would rather not run a server yourself, hosted repowise serves the same tools for connected repositories.
Pitfalls
- The agent says no data was found. The server could not see
.repowise/. Runrepowise initin the repo, or pass the repo path:repowise mcp /path/to/repo. repowisenot found by the editor. If you installed into a virtual environment, put the full path to the executable incommand.- Tools do not appear. Restart the editor fully. In Claude Code,
/mcpshows whether the server connected. - Second repo repoints Claude. Each Claude config holds a single
repowiseentry, so indexing another repo repoints it.initprints a notice first. - Scratch clones and CI. Pass
--no-editor-setupso the run writes only.repowise/. - Stale answers after edits. Responses carry a
stale_warningwhen files changed since indexing. Runrepowise update --working-tree.
FAQ
- Does the repowise MCP server send my code to a third party?
- The index and the MCP server run on your machine. Code leaves it only if you configure a cloud model provider for prose generation or
get_answersynthesis.repowise init --no-prosemakes no model calls at all. - Do I need an API key to use the MCP server?
- No. The keyless index gives the agent the graph, git history, health scores and dead-code findings. A key adds model-written prose pages and synthesized
get_answerreplies. - Which editors does repowise support?
- Claude Code, Cursor, Codex, OpenCode, Hermes, GitHub Copilot CLI, Kiro and VS Code have a one-command setup. Cline and any other MCP client work by pasting the config that
repowise agents print-configprints. - Which languages does it understand?
- repowise parses 28 languages to a full syntax tree, with 15 at the Full tier. The full list is in the language support doc.
- How do I remove it?
- Run
claude mcp remove repowisefor Claude Code, and delete therepowiseentry from Cursor's or Cline's settings file.


