Corralctl logo

Corralctl

Manage, inspect, search, and safely update local repository clones through MCP.

Install Corralctl

Run the project’s own setup commands, in order.

Setup steps from the project

corralctl installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    mise use -g github:sebastienrousseau/corralctl
    
  2. 2. Install
    brew install sebastienrousseau/tap/corralctl
    
  3. 3. Install
    yay -S corralctl-bin    # or: paru -S corralctl-bin
    
  4. 4. Start the server
    nix run github:sebastienrousseau/corralctl -- --help   # run without installing
    
  5. 5. Install
    nix profile install github:sebastienrousseau/corralctl # install
    
  6. 6. Install
    go install github.com/sebastienrousseau/corralctl/cmd/corralctl@latest
    

Overview

The corralctl MCP server exposes a local repository workspace to AI coding agents through tools for inventory, metadata, symbol lookup, code search, and repository management. Read-only searches operate across every clone without network calls, while cloning, syncing, adoption, and deletion provide controlled workspace mutations. Use it when an agent needs to understand or maintain a large collection of local repositories rather than work within one checkout.

Use cases

  • Search for a symbol across every local clone
  • Inventory repositories by language, visibility, and sync state
  • Discover unmanaged repositories on local disk
  • Review stale clones before synchronizing them
  • Safely clone, adopt, sync, or remove repositories

Key features

  • Cross-repository code and symbol search
  • Structured workspace indexing and metadata
  • Local repository discovery
  • Guarded clone, adopt, sync, and delete operations
  • Workspace summaries and stale-repository reporting

Tools15

What Corralctl lets your agent do. Expand a tool for its parameters.

Self-reported~393 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

12/12 checks healthy over the last 47d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars2Stargazers on the source repository.
Last commit4d agoMost recent push to the default branch.
Tools exposed15Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Corralctl works

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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Corralctl

corralctl is an MCP server that connects AI coding agents to a local workspace of repository clones. Its main tools list and inspect repositories, search code and symbols across clones, summarize workspace state, discover unmanaged repositories, and perform guarded clone, adopt, sync, and delete operations.

Install corralctl with mise, Homebrew on macOS, the Arch AUR, Nix, Go, or a release artifact, then run `corralctl mcp`. Source builds require Git and a supported Go toolchain. Configure your MCP client to launch that command as a local server.

Yes, corralctl searches the local clones in its workspace without network calls. Use `corral_find_symbol` for declarations and `corral_search_code` for text matches across repositories. Cloning, syncing, and other repository-management operations are separate capabilities that may use Git remotes.

Deletion requires `--enable-destructive-mutations`, refuses clones with uncommitted or unpushed changes, and asks a person to approve each deletion. The `corral_delete_repo` tool therefore does not remove repositories as an unrestricted automated cleanup step.

Yes, corralctl can be configured as a local MCP server in Cursor by launching `corralctl mcp` through Cursor’s MCP settings. The server exposes its repository inventory, search, workspace, and guarded repository-management tools through that connection.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewCorralctl AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/corralctl?style=directory)](https://allmcps.com/mcp/corralctl)
HTML Embed
<a href="https://allmcps.com/mcp/corralctl"><img src="https://allmcps.com/api/badge/corralctl?style=directory" alt="Corralctl on AllMCPs" /></a>