github-core-clone-01-gc22
Implements Git smart HTTP so standard Git clients can clone, fetch, and push repositories, including protocol v2/v0, pack ingest/write, shallow and deepen fetches, fast-forward enforcement, and sideband framing.
Exposes a GitHub-compatible forge through REST v3 endpoints for repositories, branches, commits, contents, issues, comments, labels, pull requests, merges, and refs, enabling GitHub-style repository and collaboration workflows.
Provides a GitHub GraphQL v4 endpoint with viewer and repository queries, issue and pull-request operations, mutations, node IDs, cursor pagination, and introspection.
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-gc22
A GitHub-compatible git forge for the make.fun bounty github-core-clone-01
("Build a GitHub-compatible git forge", $500). One Node process, standard library only, no dependencies,
no git binary, no package manager, no outside service.
What it implements
Surface | Details |
|
|
| git smart HTTP: protocol v2 ( |
| GitHub REST v3: repositories, branches, commits, contents (create/update/delete), issues, comments, labels, pull requests, files, squash merges with three-way merge + conflict detection, git refs |
| GitHub GraphQL v4: viewer, repository, issues, pull requests, mutations (create/close issue, create/merge pull request, add comment), node ids, cursor pagination, introspection |
| Model Context Protocol over streamable HTTP, era |
Auth is Authorization: Bearer $MAKEFUN_SHOP_TOKEN on every surface except /healthz.
The viewer the token names is the fixed scenario viewer adaiversen. All timestamps and ids are
deterministic (counter-based, seeded from MAKEFUN_TRIAL_NOW when set), so two runs on the same
instance produce byte-identical state.
Related MCP server: github-core-clone
Run it
node --experimental-strip-types main.tsThe platform runs node /bot/main.ts on Node 22.18 or later, which strips TypeScript types on its
own. main.ts binds an ephemeral port, registers it with $MAKEFUN_ENV_URL, polls /done, and
exits 0. There is nothing to install: the program imports node:http, node:crypto, node:zlib
and its own modules only.
Layout
main.ts— the entry/env lifecycle (kept from the kit starter).app.ts— the HTTP server, auth, routing.gitproto.ts— git smart-HTTP handlers (advertisements, ls-refs, fetch v2/v0, receive-pack).gitcore.ts— git object model, pack reader/writer, deltas, reachability, shallow sets, merge.rest.ts— REST v3 handlers;rest-helpers.ts— shared pull-request merge/diff.graphql.ts— GraphQL tokenizer, parser and executor.mcp.ts— MCP JSON-RPC handlers and the six tools.store.ts— the in-memory store;util.ts— hashing, pkt-lines, deterministic clock.
End-to-end test evidence
Graded locally against the kit's own conformance suite (sdk/run.ts) on the build machine:
120/120 conformance checks passed
git 30/30, repos 15/15, issues 15/15, pulls 20/20, protocol 5/5,
graphql 20/20, mcp 15/15
score 843/1000 (feature 600 + agent 200 + perf 43)Perf on the (heavily loaded) build VPS, p50: push 2527 ms / 200 ops, clone 775 ms / 50,
read 6431 ms / 2000, write 804 ms / 200. The trial runs on a quiet 2-CPU container, so the
same code is expected to run well inside the calibration references there.
Real git CLI end-to-end (git 2.43.0) against the running forge:
$ git clone http://127.0.0.1:18181/adaiversen/manual-e2e.git
warning: You appear to have cloned an empty repository.
$ echo "hello forge" > hello.txt && git add hello.txt && git commit -m "first commit"
$ git push origin main
* [new branch] main -> main
$ git clone http://127.0.0.1:18181/adaiversen/manual-e2e.git e2e2
$ cat e2e2/hello.txt
hello forgeThe file is also readable back over the REST contents API (GET /api/v3/repos/adaiversen/manual-e2e/contents/hello.txt).
License
MIT — see LICENSE (SPDX-License-Identifier: 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
Unofficial GitHub MCP — wraps the GitHub public REST API (no auth required for public endpoints)
A MCP server built for developers enabling Git based project management with project and personal…
Create, deploy, and operate MCP servers directly from your GitHub repositories.
Streamable HTTP MCP gateway for NV oOS fleets — one API key, namespaced tools, quotas and policy.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables MCP clients to discover, initialize, list tools, and invoke tools over Streamable HTTP against a GitHub-compatible git forge.MIT
- AlicenseNot gradedqualityCmaintenanceEnables MCP clients to initialize, list tools, and invoke GitHub-compatible operations over streamable HTTP in a self-contained git forge.MIT
- AlicenseNot gradedqualityCmaintenanceEnables MCP clients to create and inspect repositories, push and clone code, and manage issues and pull requests, including merging, through JSON-RPC tools with defined input schemas and modern/legacy handshakes.MIT
- AlicenseNot gradedqualityCmaintenanceEnables MCP clients to create and inspect repositories, manage issues, and create or merge pull requests over streamable HTTP.1,399 npmMIT