Shehata MCP Server
Shehata Git MCP enables coding agents to perform policy-checked Git operations (stage, commit, pull, push) on repositories pinned to specific GitHub identities. It guards against credential exposure and blocks destructive commands like force push or reset.
README
Shehata Git
<p align="center"> <img src="apps/desktop/public/logo-mark.svg" width="104" alt="Shehata Git logo" /> </p>
<p align="center"><strong>Stop pushing GitHub repositories with the wrong account.</strong></p>
<p align="center"> Shehata Git pins every local repository to one GitHub identity — so your work account never pushes to your personal repo, and your coding agent never pushes as you by accident. </p>
<p align="center"> <a href="https://github.com/moshehata95/Shehata-Git/releases/latest/download/Shehata-Git-windows-x64-setup.exe"><img src="https://img.shields.io/badge/Download%20for%20Windows-2ea043?style=for-the-badge&logo=windows&logoColor=white" alt="Download for Windows" /></a> <a href="https://github.com/moshehata95/Shehata-Git/releases/latest/download/Shehata-Git-macos-apple-silicon.dmg"><img src="https://img.shields.io/badge/Download%20for%20macOS-1f2328?style=for-the-badge&logo=apple&logoColor=white" alt="Download for macOS" /></a> </p>
<p align="center"> <sub>Windows 10/11 · macOS (Apple Silicon) · MIT licensed · no cloud account or subscription</sub> </p>
<p align="center"> <img src="docs/screenshots/overview.png" width="820" alt="Shehata Git overview showing three GitHub identities and three routed repositories" /> </p>
[!IMPORTANT] Shehata Git is an early preview and the installers are not code-signed yet. Windows shows a SmartScreen notice (More info → Run anyway) and macOS needs right-click → Open the first time. Use disposable repositories while evaluating it and review every assignment before confirming it.
Why Shehata Git?
Git separates commit authorship from remote authentication, while GitHub CLI can hold more than one account for the same host. That flexibility is useful, but it also makes it easy for a terminal or coding agent to push with the wrong identity.
Shehata Git assigns one authenticated GitHub identity to each local repository. The route is repository-scoped, works outside the desktop UI, and fails closed when the assigned account is unavailable.
Key features
- Discover accounts from the official GitHub CLI without importing passwords or persisting tokens.
- Assign an exact GitHub account and optional commit author to each repository.
- Route HTTPS credentials per repository through
git-credential-shehata. - Review changes, stage selected files, commit, pull with
--ff-only, and run normal policy-checked pushes. - Expose a bounded MCP server for Codex, Claude Code, Cursor, and other coding clients without exposing arbitrary shell execution.
- Record a redacted local activity trail that the user can search or clear.
- Diagnose Git, GitHub CLI, WebView2, PATH, helper, database, and MCP readiness.
- Restore the previous repository-local Git configuration when unlinking.
Screenshots
Local paths, private account names, and the build version are blurred.
| Accounts | Repository routing | Agent bridge |
|---|---|---|
![]() |
![]() |
![]() |
| Sign in through GitHub itself. The app never sees a password and never stores a token. | Every repository is pinned to one identity — enforced in the terminal too, not just in the app. | Coding agents get guarded Git access: force push, destructive reset, and token access are never exposed. |
Requirements
To run the preview
- Windows 10 or 11 (x64), or macOS on Apple Silicon
- Git for Windows
- GitHub CLI
- Microsoft Edge WebView2 Runtime (normally already installed on supported Windows versions)
- One or more GitHub accounts authenticated through GitHub CLI
The System Check page can install missing Git and GitHub CLI packages through Windows Package Manager after explicit confirmation.
To build from source
- Node.js 20 or newer
- pnpm 9 or newer
- Stable Rust toolchain
- Platform prerequisites required by Tauri 2
On Windows, install the MSVC C++ Build Tools and a Windows SDK.
Installation
Download the installer (recommended)
Grab the latest build from the releases page:
| Platform | File |
|---|---|
| Windows 10/11 (x64) | Shehata-Git-windows-x64-setup.exe |
| macOS (Apple Silicon) | Shehata-Git-macos-apple-silicon.dmg |
Neither installer is code-signed yet, so the first launch needs one extra click: More info → Run anyway on Windows, right-click → Open on macOS.
Build from source
git clone https://github.com/moshehata95/Shehata-Git.git
cd Shehata-Git
pnpm install --frozen-lockfile
pnpm prepare:sidecars
cargo build --workspace
pnpm dev
prepare:sidecars builds the CLI, credential helper, and MCP executable that
Tauri validates and bundles beside the desktop app.
Build the Windows NSIS installer with:
pnpm build
The installer is written to
target/release/bundle/nsis/Shehata Git_<version>_x64-setup.exe.
Usage
- Open System Check and resolve any missing prerequisites.
- Open Identities and sign in through GitHub's browser flow.
- Open Repositories, choose a local Git worktree, and review the detected remote.
- Assign the intended GitHub identity and optional local commit author.
- Confirm Connect and verify. Shehata Git backs up the relevant local Git configuration, enables the route, and performs a read-only remote test.
- Use Git normally from the app, a terminal, or an approved coding agent.
CLI default in the Identities page means the account used by ordinary gh
commands for that host. Use Make CLI default to change it after an in-app
confirmation. It does not override repository routes.
CLI examples
shehata doctor
shehata accounts list
shehata repos add "C:\path\to\repository"
shehata repos list
shehata repos assign "C:\path\to\repository" --account octocat
shehata status "C:\path\to\repository"
shehata test "C:\path\to\repository"
shehata push "C:\path\to\repository" --yes
Add --json before the subcommand for machine-readable output.
Architecture
React desktop UI ──Tauri IPC──▶ shehata-core ──▶ shehata-git
shehata CLI ──────────────────▶ │ ├─▶ shehata-github
shehata MCP server ───────────▶ │ └─▶ shehata-storage
Git credential protocol ──────▶ git-credential-shehata
Business rules live in Rust, not in React or Tauri handlers. SQLite stores repository mappings, configuration backups, and redacted audit metadata—but no credential values. See Architecture and the decision records.
Security
- Tokens stay in the official GitHub CLI credential store and are requested just in time by the Rust backend.
- Tokens never cross Tauri IPC, enter SQLite, or appear in MCP responses.
- Processes launched by the app use fixed executables, argument arrays,
timeouts, and validated inputs. Git's required
!helper entry is generated only from a canonical executable path and validated UUID. - Force push, destructive reset, clean, rebase, amend, remote deletion, and arbitrary shell execution are intentionally unavailable.
- Repository routing fails closed instead of falling through to another account.
Read the security model and report vulnerabilities through the process in SECURITY.md. Never post credentials in an issue.
Roadmap
Windows and macOS installers now ship from CI on every tagged release. The immediate focus is trust: code signing on both platforms, macOS notarization, an Intel macOS build, two-account acceptance testing, and clean-machine verification.
See the complete roadmap.
Contributing
Issues and focused pull requests are welcome. Start with CONTRIBUTING.md, follow the Code of Conduct, and use the provided issue/PR templates.
The required quality gate is:
cargo fmt --all -- --check
cargo clippy --workspace --all-targets -- -D warnings
cargo test --workspace
pnpm --filter @shehata/desktop lint
pnpm --filter @shehata/desktop typecheck
pnpm --filter @shehata/desktop test
Author
Created and maintained by Dr Mohamed Shehata — Nephrologist | Freelance Medical Branding & Marketing Expert | AI Enthusiast.
- GitHub: @moshehata95
License
Shehata Git is available under the MIT License.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。


