Workspace MCP mode
One MCP server, every repo. Pass repo="backend" to target a specific workspace repo, or repo="all" to federate a query across the entire workspace.
In workspace mode, every one of the seven MCP tools
takes an extra repo parameter. The default repo (set by
repowise workspace set-default) is targeted when repo is omitted —
just like single-repo mode.
Three ways to address a workspace
repo= | Behavior |
|---|---|
| omitted | Target the workspace's default repo. |
"backend" | Target the repo with that alias. |
"all" | Federate the query across every repo in the workspace. |
Examples
# Get an architecture summary of the whole workspace
get_overview(repo="all")
# Search every repo at once
search_codebase("authentication flow", repo="all")
# Risk assessment in a specific repo
get_risk(targets=["src/auth/service.py"], repo="backend")
# Decision archaeology across repos
get_why("why caching?", repo="all")How federated queries work
Each tool implements repo="all" slightly differently:
get_overview(repo="all")— returns workspace-level totals (repos, files, symbols), per-repo dependency graph, and cross-repo topology / contract links.search_codebase(repo="all")— runs the search in each repo and merges results with Reciprocal Rank Fusion (k=60).get_dead_code(repo="all")— aggregates findings via RRF; applies a cross-repo confidence adjustment when a "dead" symbol has external consumers.get_why(repo="all")— keyword search across every repo's decision records (capped at 15 merged results).get_contextandget_risk— when the target lives in repo A but has cross-repo co-change partners or contract consumers in repos B and C, those signals are appended to the response.
Setting the default
repowise workspace set-default backendThe default determines what repo-less queries hit. Set it to whichever
repo your team works in most often.
Single endpoint, no extra setup
repowise init . at the workspace root writes a single .mcp.json that
points at the workspace MCP server. Your editor doesn't need to know
which repo it's targeting — the tools handle routing.
The MCP transport's per-call token budget still applies in workspace
mode. repo="all" results are aggregated and capped; if you need
deeper paging, narrow to a specific repo with repo="<alias>".
Cross-repo intelligence
What repowise learns from analyzing several repos together — co-change pairs, API contracts (HTTP / gRPC / topics), and package dependency mapping. Hidden coupling that single-repo tools can't find.
Hosted vs self-hosted
Both modes ship the same intelligence layers, the same seven MCP tools, and the same dashboard. The differences are about ops, billing, and team features — not about what the agent can do.