Skip to main content
Glama

GitHub But Fast

GitHub, but with fewer model/tool round trips.

GitHub But Fast (GBF) is a read-only, token-efficient remote MCP gateway for GitHub. It uses Cloudflare Code Mode so an MCP-capable AI agent can discover GitHub REST endpoints and execute many fresh reads in one sandboxed JavaScript program, then return only the compact result it needs.

GBF is intended for ChatGPT, Claude Code, Cursor, Codex/Astra, and other clients that can connect to a remote MCP server. It is an accelerator, not a source of truth: GitHub remains authoritative, and clients should be able to fall back to their normal GitHub integration if GBF is unavailable.

Why

A typical agent takeover can otherwise look like:

model -> fetch file -> model -> fetch issue -> model -> fetch comments -> model -> fetch PR -> ...

GBF moves the mechanical GitHub fan-out into Code Mode:

agent -> search (when needed) -> execute
                              |-> GitHub file
                              |-> GitHub issue/comments
                              |-> GitHub PR/checks
                              `-> compact result

Cloudflare's current openApiMcpServer() exposes two MCP tools: search and execute. execute runs model-written JavaScript in an isolated Worker sandbox; authentication and outbound GitHub requests stay in trusted host code.

Related MCP server: CodeAudit MCP

V1 safety model

V1 is deliberately boring:

  • read-only: model-triggered requests may use only GET or HEAD

  • repository allowlist: /repos/{owner}/{repo}/... must target a configured repository

  • repo-scoped search only: /search/* queries must include repo:owner/name

  • canonical-path validation: dot-segment and host-escape normalization tricks are rejected

  • host-side revalidation: even if generated code asks for a mutation, the host rejects it

  • GitHub App auth: the Worker mints short-lived installation tokens; no long-lived PAT is exposed to the sandbox

  • response cap: oversized API responses are rejected with a hint to narrow/paginate

  • sandbox has no GitHub credential

Code Mode is currently experimental upstream. GBF should therefore remain an optional fast path, never a required control-plane dependency.

Upstream building blocks

GBF intentionally does not reimplement GitHub or MCP plumbing:

  • Cloudflare @cloudflare/codemode + the official codemode-mcp-openapi pattern

  • GitHub's official github/rest-api-description OpenAPI document

  • GitHub App installation authentication

Local development

npm install
cp .dev.vars.example .dev.vars
# fill in local test credentials
npm test
npm run typecheck
npm run build
npm run dev

The remote MCP endpoint is /mcp; /health is unauthenticated and exposes no repository data.

Configuration

Required Worker secrets/variables:

Name

Purpose

GITHUB_APP_ID

GitHub App ID

GITHUB_INSTALLATION_ID

Installation ID for the selected account/repositories

GITHUB_PRIVATE_KEY

GitHub App private key; secret, never commit

GITHUB_ALLOWED_REPOS

Comma-separated owner/repo allowlist

MCP_BEARER_TOKEN

Temporary V1 client authentication for /mcp

GITHUB_RESPONSE_MAX_BYTES

Optional response cap; defaults to 1,500,000 bytes

V1 uses a static bearer token only as a staging bootstrap. Before broad multi-client rollout, replace this with a proper OAuth/Cloudflare Access flow.

Status

Source bootstrap is green in draft PR #1: unit tests, TypeScript checks, and Wrangler dry-run bundling pass. No production deployment or live GitHub-App smoke is claimed yet.

Setup docs:

License

MIT. Portions of the architecture and server pattern are adapted from Cloudflare's MIT-licensed agents Code Mode examples; see NOTICE.

Maintenance

ActivityMaintained
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Read-only GitHub MCP server that lets assistants search and read repositories, issues, pull requests, commits, and file contents, scoped to the user's personal access token.
    MIT
  • F
    license
    Not graded
    quality
    B
    maintenance
    A read-only MCP server for GitHub that exposes 7 tools (list repos, commits, branches, pull requests, issues, file contents, search) via a Cloudflare Worker, using a single password for authorization and a fine-grained GitHub token for access control.
    -