Local PreToolUse hook server that blocks or warns on risky AI agent tool calls using feedback-based rules.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag โ we're steadily working through the catalog.
๐ก Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by ThumbGate.
ThumbGate is the self-improving pre-action firewall for AI coding agents
AI coding agents repeat mistakes โ and one wrong tool call can wipe a directory, leak a key, or push broken code.
ThumbGate is the local-first Pre-Action Checks engine for AI coding agents. It runs in the PreToolUse hook to evaluate the proposed tool call before execution โ so costly mistakes can be caught before they happen.
ThumbGate GitHub star growth is measured with GitHub's privacy-safe GET /repos/{owner}/{repo}/stargazers/history endpoint (weekly counts, no stargazer identities). Run npm run stars:history -- --fixture tests/fixtures/github-star-history.json --json for the local proof. Stars are not npm installs and not revenue. The live GitHub Marketplace Action is ThumbGate Agent Governance (uses: IgorGanapolsky/ThumbGate@v1).
Usage over star count. Evaluate ThumbGate from the install path and live usage badges above (npx thumbgate init, Marketplace uses:, npm weekly downloads, GitHub clones), not from whether the repo has twenty stars or twenty thousand. No pitch deck is required. We do not farm GitHub profile badges (no YOLO-merge of protected main, no 5-minute Issue close theater, no fake Co-authored-by). Galaxy Brain needs real accepted answers in Discussions Q&A. npm run github:achievements -- --fixture tests/fixtures/github-achievements.json --json inventories what is already earned vs what we refuse to farm.
ThumbGate is for operators whose AI coding agents can leak a secret or destroy a checkout before a human sees the tool call (Claude Code, Cursor, Codex, Gemini CLI, MCP). Discovery should reach those operators โ not a star campaign.
ThumbGate is not a GitHub star package, not fake engagement, and not a substitute for npm installs or merged PRs. Real engagement is npx thumbgate init and a PreToolUse hook that actually fires.
Lightweight visuals for how agents fail without a pre-action gate:
| Meme | Meaning |
|---|---|
| Unchecked tool calls ship destructive commands. | |
| A prompt is advice; a PreToolUse hook is enforcement. |
It hard-blocks detected secret leaks and two direct self-disable command classes by default โ commands that terminate the ThumbGate gate process or enable its bypass environment override. Other high-risk classes (rm -rf, force-push, fetch-and-run, direct guardrail edits) warn and log by default. Set THUMBGATE_STRICT_ENFORCEMENT=1 for strict enforcement (warnings become hard denies).
| Verdict | Default behavior |
|---|---|
| โ Hard-block | Detected secret leaks; process-kill/environment-override self-disable |
| ๐ Warn + log | rm -rf, git push --force, fetch-and-run, direct guardrail edits โ warn by default |
| ๐ Allow | Everything else |
Accepted feedback is stored as local lessons. Repeated concrete failures can become prevention rules that promote from warnings to blocking gates. The firewall improves from operations without retraining the model. Prompt evaluation (npx thumbgate eval) turns accepted feedback into reusable eval cases and local proof reports.
Honest disclaimer: ThumbGate does not update model weights. It intercepts tool calls at runtime. Local-first โ no cloud required for the enforcement path.
Works with Claude Code, Cursor, Codex, Gemini CLI, Amp, Cline, OpenCode, and other MCP agents.
Agentic development is becoming a loop: Guide โ Generate โ Verify โ Solve. ThumbGate is the pre-action gate / pre-action boundary between generated intent and executed action.
Want a phased walkthrough with a verify step at every stage? Follow the Progressive Setup Guide.
Progressive wiring โ prove the pipe before you turn matching on. Empty dashboard is success.
Later DROP attempts in the same scope surface the check:
Numbered configs: config/progressive/. Guide: progressive wiring.
Directories and clients that install ThumbGate as an MCP server must start stdio MCP, not the HTTP API:
npx -y thumbgate mcpnpm start for MCP โ that launches the hosted HTTP API (src/api/server.js), not the agent-facing stdio server.โถ 90-second demo ยท GIF walkthrough
| Agent | Command | Enforcement |
|---|---|---|
| Claude Code | npx thumbgate init --agent claude-code | ๐ก๏ธ Hard โ PreToolUse |
| Codex | npx thumbgate init --agent codex | ๐ก๏ธ Hard โ pre_tool_use |
| Gemini CLI | npx thumbgate init --agent gemini | ๐ก๏ธ Hard โ PreToolUse |
| ForgeCode | npx thumbgate init --agent forge | ๐ก๏ธ Hard โ pre_tool_use |
| Cursor | npx thumbgate init --agent cursor | ๐ฌ Advisory โ MCP gate_check |
| Cline | npx thumbgate init --agent cline | ๐ฌ Advisory โ MCP + .clinerules |
| OpenCode | npx thumbgate init --agent opencode | ๐ฌ Advisory โ MCP gate_check |
| Any MCP agent | npx thumbgate serve | ๐ฌ Advisory โ MCP gate_check |
| Amp | npx thumbgate init --agent amp | ๐ Feedback capture |
| GitHub Actions | uses: IgorGanapolsky/ThumbGate@v1 | ๐ฉบ Marketplace Action โ doctor / AI inventory in CI |
Per-agent guides: Claude/Codex bridge ยท Codex profile ยท Cursor ยท MCP setup
| Scope | Command | Settings | Lessons | Best for |
|---|---|---|---|---|
| Machine-wide (default) | npx thumbgate init | ~/.claude/settings.json | ~/.claude/memory/feedback/ | Solo operators โ same machine-local feedback store across repos |
| Per-project | npx thumbgate init --project | <repo>/.claude/settings.json | <repo>/.claude/memory/feedback/ | Client / compliance โ separate dashboard / isolated lessons per repo |
Factual signals from GitHub, npm, and our automated checks โ not a rating.
No reviews yet โ be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/igorganapolsky-thumbgate)<a href="https://allmcps.com/mcp/igorganapolsky-thumbgate"><img src="https://allmcps.com/api/badge/igorganapolsky-thumbgate?style=directory" alt="ThumbGate on AllMCPs" /></a>