# corralctl [Health: Active]

**Category:** 🔄 Version Control  
**Repository:** https://github.com/sebastienrousseau/corralctl  
**GitHub Stars:** 2  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/corralctl

## Description
Search code and symbols across every clone in your corralctl workspace. Zero network calls.

## Tools
Capabilities this server exposes over MCP:

- **corral_list_repos** — Filter local clones by visibility / language / name / sync state
- **corral_find_repo** — Resolve a fuzzy name to one clone (returns candidates on ambiguity)
- **corral_get_repo_metadata** — Full metadata for one clone, including current branch
- **corral_status_summary** — Workspace summary: counts by visibility and language
- **corral_workspace_index** — Full structured index in a single call
- **corral_find_symbol** — Where a symbol is declared, across *every* clone
- **corral_search_code** — Where text appears, across *every* clone
- **corral_repo_overview** — One repository's shape in a single call
- **corral_discover_repos** — Discover untracked or unmanaged repositories on local disk
- **corral_sync_repo** — Runs `git pull --rebase --autostash` against one clone, with the checks `corralctl clone` makes before a pull: it refuses a clone with no origin or whose origin changed since the index was read, one with no commits, and one that is not on the default branch `origin/HEAD` names, so an agent cannot r…
- **corral_clone_repo** — Clones a URL into a sandboxed target path
- **corral_adopt_repo** — Adopts a local repository with optional relocation and remote creation. A self-hosted `forge_url` must be one the operator passed to `corralctl mcp --forge-url`
- **corral_delete_repo** — Removes a clone. Requires `--enable-destructive-mutations`. Refuses on uncommitted/unpushed changes, and asks a person to approve each deletion
- **explain_workspace** — Ask the agent to survey the workspace via read-only tools and summarise it
- **identify_stale_repos** — Ask the agent to find clones whose `.corral-state.json` says they haven't been synced recently (default: 30 days)

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/sebastienrousseau/corralctl), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
mise use -g github:sebastienrousseau/corralctl
```

2. Install:

```sh
brew install sebastienrousseau/tap/corralctl
```

3. Install:

```sh
yay -S corralctl-bin    # or: paru -S corralctl-bin
```

4. Start the server:

```sh
nix run github:sebastienrousseau/corralctl -- --help   # run without installing
```

5. Install:

```sh
nix profile install github:sebastienrousseau/corralctl # install
```

6. Install:

```sh
go install github.com/sebastienrousseau/corralctl/cmd/corralctl@latest
```

## Documentation

## What corralctl does

corralctl MCP server gives AI agents a structured view of repositories managed in a local corralctl workspace. It can list clones, resolve a repository from a fuzzy name, inspect metadata and branches, summarize workspace composition, or return the complete workspace index. Repository discovery also identifies local repositories that are not yet tracked by the workspace.

The search tools work across all available clones. Agents can locate a symbol declaration with `corral_find_symbol`, find matching text with `corral_search_code`, and request a high-level shape for one repository with `corral_repo_overview`. `explain_workspace` combines read-only inspection into a workspace summary, while `identify_stale_repos` finds clones whose recorded sync time exceeds a configurable age, defaulting to 30 days.

## How it works

The MCP entry point is the `corralctl mcp` command. It serves the local workspace to an MCP client, allowing the client to call repository and search operations as tools. Local indexing and search are intended for the clones on disk, so code and symbol queries do not need network access.

Management operations have different safety boundaries. `corral_clone_repo` places a URL in a sandboxed target path. `corral_adopt_repo` can bring an existing local repository under management, optionally relocating it or creating a remote. `corral_sync_repo` runs `git pull --rebase --autostash` only after checks covering the origin, the indexed origin value, commit history, and the default branch. The deletion tool requires destructive mutations to be enabled, refuses repositories with uncommitted or unpushed changes, and requires human approval for each removal.

## Setup and configuration

Install corralctl through mise, Homebrew on macOS, the Arch AUR package, Nix, the Go toolchain, or a release artifact. Building from source requires Git and a supported Go toolchain. The command-line quick start also documents GitHub CLI authentication for operations that obtain repositories from GitHub.

Start the MCP service with:

```bash
corralctl mcp
```

Self-hosted forge URLs used by repository adoption must be supplied to that command with `--forge-url`. Destructive repository mutations are gated by `--enable-destructive-mutations`. Configure the MCP client to launch the `corralctl mcp` command using its normal local MCP server settings.

## Tools and capabilities

- `corral_list_repos` filters clones by visibility, language, name, or synchronization state.
- `corral_find_repo` resolves a fuzzy repository name and reports candidates when the match is ambiguous.
- `corral_get_repo_metadata` returns detailed information for one clone, including its current branch.
- `corral_status_summary` counts repositories by visibility and language.
- `corral_workspace_index` returns the complete structured index in one call.
- `corral_find_symbol` and `corral_search_code` search declarations and text across all clones.
- `corral_repo_overview` describes one repository’s structure at a high level.
- `corral_discover_repos` finds unmanaged repositories on local disk.
- `corral_sync_repo`, `corral_clone_repo`, and `corral_adopt_repo` update or extend the workspace under their respective safeguards.
- `corral_delete_repo` removes a clone only when its destructive-operation requirements are satisfied.
- `explain_workspace` surveys the workspace with read-only tools, and `identify_stale_repos` reports repositories beyond the configured sync age.

## Limitations and notes

Search is scoped to local clones and is designed to avoid network calls. Operations that clone, pull, adopt with remote creation, or otherwise manage repositories can involve Git remotes and should be treated differently from read-only inspection. Syncing is intentionally restricted to repositories with a usable origin, existing commits, an unchanged origin reference, and the default branch named by `origin/HEAD`.

Deletion is not an unrestricted cleanup operation: the feature must be enabled explicitly, repositories with unpublished or uncommitted work are refused, and each deletion requires a person’s approval. Forge adoption also restricts self-hosted URLs to those authorized through the MCP command’s `--forge-url` option.

_Full upstream README: https://allmcps.com/mcp/corralctl/readme_

