github-core-clone-01
Implements Git smart HTTP so Git clients can clone, fetch, and push to the forge's in-memory repositories.
Provides a GitHub-compatible forge with REST v3 and GraphQL v4 APIs and MCP tools for managing repositories, issues, pull requests, labels, comments, branches, commits, and contents.
Exposes a GraphQL v4 endpoint for querying and mutating repositories, issues, pull requests, and related objects.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
github-core-clone-01
A standalone GitHub-compatible git forge built for the make.fun github-core-clone-01 bounty.
Serves four surfaces from one Node.js process, using only the standard library:
Git smart HTTP — clone/fetch (upload-pack v0+v2) and push (receive-pack v0) with native pkt-line, packfile, and object hashing implementation (no git binary)
REST v3 API — repositories, issues, pull requests, labels, comments, branches, commits, contents, refs
GraphQL v4 — viewer, repository, issues, pull requests, introspection, mutations (createIssue, closeIssue, createPullRequest, mergePullRequest, addComment)
MCP — Model Context Protocol over Streamable HTTP with 6+ tools (create_repo, get_repo, create_issue, list_issues, create_pull_request, merge_pull_request)
Run
node --experimental-strip-types main.tsRequires Node 22.18+. No dependencies, no install step.
Related MCP server: github-core-clone-01
Architecture
app.ts— the forge server (all four surfaces, in-memory store, native git protocol)main.ts— the entry lifecycle (binds ephemeral port, registers with env, polls for done)
Features
Git Smart HTTP
Native pkt-line codec (flush, delim, response-end, data)
Protocol v2 (version 2, ls-refs, fetch with shallow) and v0 (want/have/done, side-band-64k)
Receive-pack with report-status, side-band-64k, delete-refs
Fast-forward enforcement (non-FF pushes are rejected per-ref)
SHA-1 object hashing, packfile read/write (plain objects)
In-memory object store with reachability walk
REST v3
Repositories: list (paginated), create, get, patch, delete
Issues: list (filtered/sorted), create, get, patch (close), comments
Pull requests: list, create, get, files, merge (squash)
Contents: create, get (file+directory), delete, update (stale-sha 409)
Labels: create
Branches, commits, refs
Auth: Bearer token, 401 without, 404 for foreign repos
GraphQL v4
Query: viewer, repository, issue, issues, pullRequest, pullRequests
Introspection: __type for Issue, PullRequest, Repository, SearchType, enums
Mutations: createIssue, closeIssue, createPullRequest, mergePullRequest, addComment
Node query with inline fragments
Batch support (multiple operations in one request)
MCP
JSON-RPC 2.0 over Streamable HTTP
server/discover (revision 2026-07-28), initialize (legacy 2025-11-25)
tools/list with 6+ tools, each with inputSchema
tools/call acting on the same in-memory store as REST
Tool name aliasing (server prefix, case-insensitive suffix matching)
Error handling: -32700 parse error, -32601/-32602 unknown tool/params
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
AI-native git hosting — repos, PRs, issues, CI gates, and AI code review over MCP (60 tools).
AI Reasoning Cache & Consensus Layer with 11 MCP tools via Streamable HTTP.
Remote MCP server exposing SMI Aware tools, resources, and skills over Streamable HTTP.
Host any HTTP API as MCP tools with a tamper-evident cross-agent settlement ledger.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceExposes a GitHub-compatible git forge over MCP JSON-RPC (Streamable HTTP), giving agents 27 tools to create and inspect repositories, branches, commits, contents, labels, issues, comments, pull requests and merges. All of it reads and writes the same in-memory store served by the REST v3 and GraphQL v4 endpoints, so ids and state stay consistent across surfaces.MIT
- AlicenseNot gradedqualityCmaintenanceExposes a GitHub-style MCP endpoint over streamable HTTP that lets agents create and read repositories, open, list and comment on issues, and create and merge pull requests, mirroring the companion REST surface. It also supports discovery and initialization handshakes so clients can enumerate and call those tools.MIT
- AlicenseNot gradedqualityCmaintenanceExposes a streamable-HTTP JSON-RPC endpoint that lets agents create and fetch repositories, open and list issues, and create or merge pull requests against a GitHub-compatible git forge. The tools share the same in-memory store and id space as the server's REST and GraphQL surfaces, so agent actions appear alongside regular API activity.MIT
- AlicenseNot gradedqualityCmaintenanceExposes six tools over Streamable HTTP that let agents create and fetch repositories, create and list issues, and open and merge pull requests against an in-memory forge. Supports both the modern server/discover era without a handshake and the legacy initialize handshake.MIT