New advertisers: 50% off your first month with code FIRSTMONTHSee slots
kaiserunix avatar

GeminiBastionMCP — Remote MCP Bastion for Web Gemini, Claude & ChatGPT

kaiserunix/gemini-bastion-mcp

Remote MCP bastion with OAuth 2.1 for Gemini, Claude.ai, and ChatGPT: sandboxed code work and one gated write exit.

GitHub stars
1
tools
10
auth
Secret needed
transport
HTTP
env vars
6
last updated
Nov 21, 2026
View on GitHub

What it does

  • Reads code and infra with workspace_manage, code_explore, github_inspect, and infra_inspect, covering repo sync, ripgrep and ast-grep search, PR diffs, failed Actions logs, and Cloudflare zones, DNS, workers, and KV
  • Edits and runs code with code_patch and workspace_exec, using atomic multi-file patches with checkpoints inside a per-workspace bwrap jail that has no network by default
  • Delegates background work via dispatch_runner and tracks it with job_status; publish_changes is the only path for external writes such as PRs, reviews, and Cloudflare deploys
  • Requires OAuth 2.1 sign-in through Google or GitHub and runs as a self-hosted Streamable HTTP server, with Docker images on GHCR
  • Designed for mobile or browser-based code review, fixes, and PR workflows where a single approval prompt should cover external writes

Tools

10 tools

Public tool metadata for what this MCP can expose to an agent.

workspace_manageManages workspace actions including list, sync_github, init_cf_ops, list_checkpoints, rollback, and persistent workspace memory operations (memory_list, memory_upsert, memory_delete).

Manages workspace actions including list, sync_github, init_cf_ops, list_checkpoints, rollback, and persistent workspace memory operations (memory_list, memory_upsert, memory_delete).

No parameter schema in public metadata yet.

code_exploreExplores code via pack (repomix), search (ripgrep), ast (ast-grep), read_lines, read_artifact, and git_diff actions.

Explores code via pack (repomix), search (ripgrep), ast (ast-grep), read_lines, read_artifact, and git_diff actions.

No parameter schema in public metadata yet.

code_patchApplies atomic multi-file patches, create_or_overwrite, and delete_file operations with auto-checkpoint and L0/L1/L2 validation.

Applies atomic multi-file patches, create_or_overwrite, and delete_file operations with auto-checkpoint and L0/L1/L2 validation.

No parameter schema in public metadata yet.

workspace_execRuns a sandboxed shell inside a per-workspace bwrap jail, with optional network access and background job promotion.

Runs a sandboxed shell inside a per-workspace bwrap jail, with optional network access and background job promotion.

No parameter schema in public metadata yet.

dispatch_runnerDispatches background codex, agent, or shell tasks through a pluggable agent driver, with optional workspace memory injection and thread resume.

Dispatches background codex, agent, or shell tasks through a pluggable agent driver, with optional workspace memory injection and thread resume.

No parameter schema in public metadata yet.

job_statusPolls job status, streamed events, token usage, git status, final report, or cancels a job.

Polls job status, streamed events, token usage, git status, final report, or cancels a job.

No parameter schema in public metadata yet.

github_inspectReads PR diffs and files, issue threads, and failed Actions logs in a read-only manner.

Reads PR diffs and files, issue threads, and failed Actions logs in a read-only manner.

No parameter schema in public metadata yet.

infra_inspectPerforms read-only Cloudflare inspection of zones, DNS records, workers, pages, KV namespaces, D1 databases, WAF rules, and worker tail logs.

Performs read-only Cloudflare inspection of zones, DNS records, workers, pages, KV namespaces, D1 databases, WAF rules, and worker tail logs.

No parameter schema in public metadata yet.

stage_mutation_planCaptures pre-change live state to build a rollback payload and diff, issuing a 15-minute plan_id without performing writes.

Captures pre-change live state to build a rollback payload and diff, issuing a 15-minute plan_id without performing writes.

No parameter schema in public metadata yet.

publish_changesThe single external write exit for creating GitHub PRs, reviews, comments, Cloudflare deploys, executing staged plans, and rollbacks.

The single external write exit for creating GitHub PRs, reviews, comments, Cloudflare deploys, executing staged plans, and rollbacks.

No parameter schema in public metadata yet.

Configuration

PUBLIC_DOMAIN*

Public HTTPS origin of your gateway (e.g. https://mcp.yourdomain.com)

ADMIN_PASSWORD_HASHsecret

Operator password hash in scrypt:<saltHex>:<keyHex> format

OAUTH_SIGNING_SECRET*secret

Random secret (>= 32 chars) used to sign OAuth tokens and admin sessions

DEFAULT_AGENT_DRIVER

Default autonomous coding agent driver (codex | claude_code | gemini_cli | opencode)

GOOGLE_OAUTH_CLIENT_ID

Optional Google OAuth Client ID for upstream operator SSO on /admin/login and /oauth/authorize

GITHUB_OAUTH_CLIENT_ID

Optional GitHub OAuth Client ID for upstream operator SSO on /admin/login and /oauth/authorize

Readme

GeminiBastionMCP — Self-Hosted OAuth 2.1 Remote MCP Server for Web Gemini, Claude.ai & ChatGPT

GeminiBastionMCP (gemini-bastion-mcp)

Built for Web Gemini (gemini.google.com) Connected Apps, Claude.ai Custom Connectors & ChatGPT MCP Connectors — NOT Gemini-Only.


View the full README on GitHub

Details

Repository
github.com/kaiserunix/gemini-bastion-mcp
Categories
Developer Tools, DevOps & Cloud
Package
ghcr.io/kaiserunix/gemini-bastion-mcp:0.3.0-lite
Transport
HTTP
Auth
Required
Registry
MCP registry, active

Similar to GeminiBastionMCP — Remote MCP Bastion for Web Gemini, Claude & ChatGPT

More Developer Tools