Cross Repo Ops MCP
Provides tools for interacting with local Git repositories, including tree listing, ripgrep search, bounded file reads, git status/diff, branch management, explicit-file commits, and pushes to origin, subject to repository-specific policy and safety restrictions.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Cross Repo Ops MCPShow the git status and recent diff in the myrepo repository."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Cross Repo Ops MCP
A repo-neutral MCP (Model Context Protocol) capability layer for controlled local repository operations.
What It Does
Cross Repo Ops MCP provides a security-hardened stdio JSON-RPC server that exposes bounded, policy-controlled operations on local git repositories:
Read: tree listing, ripgrep search, bounded file reads, git status/diff
Write: context-checked patches with create/modify support (writable repos only)
Tasks: approved named task execution (allowlist-only, no arbitrary shell)
Git: branch list/create/switch, commit (explicit files only), push (origin only, pushable repos only)
Related MCP server: void-bridge
Architecture
Cross Repo Ops MCP is a repo-neutral capability layer for controlled local repository operations. It is designed to sit beside an XcodeIDEapp project, borrowing ideas from IDE dashboard scaffolding patterns, but remains generic and does not depend on any specific IDE or project structure.
Cross Repo Ops MCP = controlled local repository actions (read, patch, git, tasks)The server is policy-driven: repos, capabilities, excluded paths, and approved tasks are all declared in a JSON config. No project-specific logic is hardcoded in the core.
Modules
Module | Responsibility |
| Centralized repository capability policy (allowlist, writable/pushable flags, excluded paths, task allowlist, limits, timeouts) |
| Single authoritative path-validation boundary (traversal, symlink, absolute-path, containment checks) |
| Tree listing, ripgrep search, bounded file read, git status/diff |
| Context-checked patch application with create/modify support |
| Branch, commit, and push operations with safety guards |
| Named task allowlist resolution and execution |
| stdio JSON-RPC MCP server |
| Error types |
Security Model
Repository allowlist: Only repos explicitly listed in the policy are accessible.
Capability flags:
writableandpushableare per-repo, defaultfalse.Path containment: All paths are resolved and checked against the repo root. Traversal (
..), absolute paths, and symlinks are rejected.Sensitive file exclusion:
.env,*.pem, API keys, tokens, credentials, and binary files are blocked from read and write.Patch safety:
old_textmust match exactly; multiple matches requirecontextto disambiguate.create=truerefuses to overwrite existing files.Task allowlist: Tasks are resolved by name from a server-side allowlist, not from user input. No arbitrary shell commands.
Git safety: Bulk staging (
git add -A) is rejected. Commits are limited to explicitly listed files. Sensitive files cannot be committed. Branch names are validated against injection. Push is limited tooriginfor pushable repos only.Output limits: All operations have configurable output caps (read chars, search results, tree entries, diff chars, task output).
Installation
# No external dependencies required — Python 3.10+ standard library only.
cd cross-repo-ops
pip install -e . # optional, for package installUsage
Run the MCP server
python3 -m cross_repo_opsThe server listens on stdin/stdout for JSON-RPC 2.0 messages.
Custom policy
CROSS_REPO_OPS_CONFIG=/path/to/policy.json python3 -m cross_repo_opsPolicy file format
{
"repos": {
"myrepo": {
"root": "/path/to/repo",
"writable": true,
"pushable": false
}
},
"tasks": {
"myrepo": {
"build": {
"command": ["xcodebuild", "-scheme", "MyApp", "build"],
"cwd": "{root}",
"timeout": 180
},
"test": {
"command": ["xcodebuild", "test", "-scheme", "MyApp"],
"cwd": "{root}",
"timeout": 300
}
}
}
}MCP Tools
Tool | Description |
| List files/directories with safety exclusions |
| Ripgrep search with bounded output |
| Read a bounded slice of a non-sensitive text file |
| Inspect git status |
| View unstaged/staged/commit diffs |
| Apply a context-checked patch (writable repos only) |
| Run an approved named task (allowlist only) |
| List/create/switch branches (writable repos for create/switch) |
| Stage and commit explicit files (writable repos only) |
| Push to origin (pushable repos only) |
Testing
python3 -m unittest tests.test_security tests.test_adversarial -v32 tests covering:
Allowed and blocked reads
Path traversal, absolute path, and symlink escape rejection
Sensitive file read/write/commit blocking
Writable vs read-only repo enforcement
Patch with correct/stale context
Patch targeting excluded files
Named task allowlist (success, unknown name, shell injection attempt)
Task timeout and output truncation
Git status/diff
Branch name injection safeguards
Commit safeguards (empty message, sensitive files, bulk staging, pre-staged files)
Push rejection for non-pushable repos
Server missing-argument handling
License
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to safely interact with local code repositories through MCP tools for search, context building, and workspace management, while keeping all operations local and human-controlled for patch approval.MIT
- FlicenseNot gradedqualityCmaintenanceExposes a secure, path-confined bridge to a local workspace and git remotes, enabling MCP clients to search, read, write, reset files, and perform git operations.
- AlicenseAqualityCmaintenanceEnables policy-first defensive security operations for MCP, providing repository and web-security analysis with controlled authorization, scoped execution, and auditability.9MIT
- AlicenseAqualityBmaintenanceEnables ChatGPT and Codex to safely work with explicitly authorized local project folders through MCP, providing constrained file reading, searching, patch editing, Git inspection, and whitelisted tasks without exposing arbitrary shell, deletion, or deployment capabilities.17MIT
Related MCP Connectors
Remote MCP for Android CLI agent build gate, structured receipts, audit logs, and reviewer-ready evi
A MCP server built for developers enabling Git based project management with project and personal…
Git-native policy layer for AI agents: check_action verdicts against rules approved via PR.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/DHCross/cross-repo-ops'
If you have feedback or need assistance with the MCP directory API, please join our Discord server