# Corral [Health: Active]

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

## Description
Query your Corral-organised local mirror of cloned GitHub repositories. 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/corral), 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. Install:

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

5. Install:

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

6. Install:

```sh
git clone https://github.com/sebastienrousseau/corralctl.git
```

## Documentation

## What Corral does

Corral exposes a local repository workspace through MCP. It works with clones arranged and tracked by `corralctl`, giving an agent structured access to repository identity, visibility, language, synchronization state, branches, and layout. The server is suited to developers who keep many Git repositories locally and need an agent to navigate them as a collection rather than opening each project independently.

Read-only queries operate on the local workspace and do not make network calls. Agents can list repositories, resolve an uncertain repository name, inspect one repository’s metadata, view aggregate counts, retrieve the complete workspace index, and inspect a repository’s overall shape. Code-oriented tools search for text or symbol declarations across every clone.

## How it works

The MCP process reads Corral’s local index and repository state, including `.corral-state.json` data used for synchronization age. `corral_find_repo` can return multiple candidates when a fuzzy name is ambiguous instead of selecting one silently. `corral_find_symbol` and `corral_search_code` search across all available clones, while `corral_repo_overview` focuses on one repository.

The server also offers higher-level agent tasks. `explain_workspace` asks the agent to survey the workspace with read-only operations and summarize it. `identify_stale_repos` finds clones whose recorded sync time exceeds a threshold, using 30 days by default.

Mutation tools have additional safeguards. Syncing uses `git pull --rebase --autostash` and refuses clones without an origin, with an origin changed since the index was read, without commits, or not on the default branch named by `origin/HEAD`. Cloning uses a sandboxed target path. Adopting can relocate a local repository and optionally create a remote; a self-hosted forge URL must have been allowed through `corralctl mcp --forge-url`. Deletion requires destructive mutations to be enabled, refuses uncommitted or unpushed work, and requires human approval for each deletion.

## Setup and configuration

Install `corralctl` through mise, Homebrew on macOS, Arch’s AUR, Nix, the Go toolchain, or a release package. The documented Go installation command is `go install github.com/sebastienrousseau/corralctl/cmd/corralctl@latest`. Git is required, and the platform setup also calls for Go; the quick-start workflow uses the GitHub CLI or a `GITHUB_TOKEN` for GitHub authentication.

Start the MCP service with `corralctl mcp`. Pass `--forge-url` when a self-hosted forge should be permitted for repository adoption. Destructive deletion is gated by `--enable-destructive-mutations`. The underlying workspace can be populated with `corralctl clone <owner>`, which organizes the resulting local clones for later MCP queries.

## Tools and capabilities

- Filter clones by visibility, language, name, or sync state.
- Resolve repositories from fuzzy names and inspect metadata or repository structure.
- Search text and symbol declarations across every local clone.
- Produce workspace summaries, a complete structured index, or stale-repository reports.
- Discover unmanaged repositories and adopt local repositories into the workspace.
- Clone, pull, and delete repositories subject to safety checks.
- Ask an agent to explain the workspace from read-only observations.

## Limitations and notes

Corral’s read-only repository queries use local data and do not contact remote services. Operations that clone or synchronize repositories are different: cloning accesses a repository URL, and syncing performs a Git pull. Deletion is intentionally restricted and cannot proceed through the MCP interface unless its destructive-mutation guard is enabled and each deletion receives human approval.

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

