tokenectomy-git
Tokenectomy Git 🔀 — Autonomous Git Workflow & GitHub PR Creation MCP Server
Standalone MCP server that gives AI coding assistants the ability to autonomously create branches, commit fixes, open Pull Requests, and monitor CI status on GitHub.
Designed to pair with Tokenectomy for end-to-end autonomous bug fixing. Check out the verified bare-metal audit receipts in the Tokenectomy Benchmark History repository.
┌──────────────────┐
Error Log │ TOKENECTOMY │ Clean Context
(38K tokens) ───► │ 🕵️ Scrub │ ───► (2K tokens) ───► LLM ───► Patch
└──────────────────┘ │
▼
┌──────────────────┐ ┌──────────────┐
GitHub PR ◄─── │ TOKENECTOMY GIT │ ◄─────────────────── │ AI Patch │
(automated) │ 🔀 Workflow │ │ Verified ✅ │
│ │ └──────────────┘
│ 🌿 Branch │
│ 📝 Commit │
│ 🔀 Pull Request │
│ 📊 CI Status │
└──────────────────┘✨ Features
Tool | Description |
| Creates a new git branch and switches to it. Branch names are sanitized for safety. |
| Stages files and commits with a message. Optionally embeds a Tokenectomy Surgery Report in the commit body. |
| Pushes branch to origin and opens a GitHub PR via REST API. PR body is scrubbed of secrets before sending. |
| Checks PR state (open/closed/merged), mergeability, and CI check status. |
Related MCP server: git-slim
🔒 Security
Path Validation — All file paths in
commit_fixare canonicalized and verified to be within the current working directory.Branch Name Sanitization — Only alphanumeric characters, hyphens, underscores, and slashes are allowed.
Secret Redaction — PR bodies and commit messages pass through a ReDoS-safe regex engine that strips GitHub tokens, AWS keys, JWTs, database URLs, and generic API keys.
Commit Message Cap — Messages are stripped of null bytes and capped at 500 characters.
Stdin DoS Protection — MCP reads are limited to 50MB via
.take().
📦 Installation
⚡ Install via Cargo (crates.io)
cargo install tokenectomy-git🦀 Build from Source
git clone https://github.com/daffa2555/tokenectomy-git.git
cd tokenectomy-git
cargo build --release
sudo cp target/release/tokenectomy-git /usr/local/bin/tkmy-git⚙️ Install via Smithery (for Claude Desktop)
npx -y @smithery/cli install tokenectomy-git --client claude🚀 Usage
Run as MCP Server
tkmy-git --mcp🔌 MCP Client Configuration
Claude Desktop / Cursor
Add to your MCP config (claude_desktop_config.json or Cursor settings):
{
"mcpServers": {
"tokenectomy-git": {
"command": "tkmy-git",
"args": ["--mcp"]
}
}
}Google Antigravity
Add to .gemini/settings.json:
{
"mcpServers": {
"tokenectomy-git": {
"command": "tkmy-git",
"args": ["--mcp"]
}
}
}🔑 Environment Variables
Variable | Required | Description |
| For PR operations | GitHub Personal Access Token with |
export GITHUB_TOKEN=your_personal_access_token🔗 Integration Ecosystem (Works with OSS & Pro)
tokenectomy-git is designed to be modular and 100% decoupled from any specific Tokenectomy edition. It works seamlessly whether users run the free open-source version or the enterprise Pro version:
🆓 Scenario A: 100% Free & Open-Source Stack (MIT)
For developers using Tokenectomy OSS:
Tokenectomy OSSscrubs 90%+ framework noise from logs & redacts credentials.The AI assistant diagnoses the issue and produces a fix patch.
Tokenectomy Gitcreates an isolated branch, commits the fix, and opens a GitHub Pull Request autonomously.
{
"mcpServers": {
"tokenectomy": {
"command": "tkmy",
"args": ["--mcp"]
},
"tokenectomy-git": {
"command": "tkmy-git",
"args": ["--mcp"]
}
}
}👑 Scenario B: Enterprise Autonomous Stack (Pro)
For developers running Tokenectomy Pro:
Tokenectomy Properforms deep True Ectomy surgery (up to 99% token reduction), and runs DB & Docker diagnostics.The AI assistant generates a code patch.
Tokenectomy Proapplies the patch in-memory, heals AST syntax errors, runs the project test suite (cargo test,npm test,pytest), and rolls back if anything breaks.Once tests are verified green,
Tokenectomy Gitcreates a branch, commits the changes (with the verified Surgery Report embedded), and publishes the Pull Request to GitHub!
{
"mcpServers": {
"tokenectomy-pro": {
"command": "tkmy",
"args": ["--mcp"]
},
"tokenectomy-git": {
"command": "tkmy-git",
"args": ["--mcp"]
}
}
}📄 License
MIT — Copyright (c) 2025 Daffa Anan
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
Maintenance
Related MCP Connectors
AI-native git hosting — repos, PRs, issues, CI gates, and AI code review over MCP (60 tools).
Plain-English git via MCP: 22 tools to branch, commit, push, and tag. No git jargon.
Non-custodial, rug-gated crypto swaps + token safety + discovery for AI agents.
Risk-scan a diff, flag AI-generated-code tells, find secrets. 5 of 7 tools need no account.
Related MCP Servers
AlicenseAqualityCmaintenanceDecentralized Git with on-chain governance, bounties, and DAOs. Tools for repos, issues, PRs, labels, releases, bounties, and DAO proposals. Auto-wallet on first use, trust tiers, and approval mode for human-in-the-loop.573MIT- AlicenseNot gradedqualityDmaintenanceA token-optimized Git MCP server that reduces context window tokens by 59% while preserving full functionality, enabling AI assistants to interact with Git repositories using only 5 grouped tool operations.13MIT
- AlicenseNot gradedqualityAmaintenanceEnables AI agents to perform full Git operations including branching, committing, pushing, stashing, rebasing, and more, with safety features and support for advanced workflows like Git Flow and LFS.115MIT

FluxGit MCP Serverofficial
AlicenseNot gradedqualityBmaintenanceSafety-first Git MCP server: 22 read-only tools designed for agent context budgets; writes are proposals approved by a human in the FluxGit desktop app.Apache 2.0
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/daffa2555/tokenectomy-git'
If you have feedback or need assistance with the MCP directory API, please join our Discord server