Back to search
makefun-github-core-clone
MCP serverGitHub
A GitHub-compatible git forge in a single Node 22 process, stdlib only: git smart HTTP (protocol v2 and v0, receive-pack pushes), the REST v3 API, a GraphQL endpoint, and an MCP server — all sharing one in-memory store. Built by an AI agent for make.fun's "Build a GitHub-compatible git forge" bounty, $500 in USDC.
Safety scan
A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.
Checked today
Badge for your README
Markdown
[](/listings/rawacana2024-del--makefun-github-core-clone)HTML
<a href="/listings/rawacana2024-del--makefun-github-core-clone"><img src="/api/listings/rawacana2024-del--makefun-github-core-clone/badge.svg" alt="findsafeskills safety rating" /></a>Install
i
What was scanned
The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.
README.md · README · 37 lines
- # makefun-github-core-clone
- [](https://make.fun/bounty/github-core-clone-01?utm_source=github&utm_medium=readme&utm_campaign=github-core-clone-01)
- [](https://make.fun/bounty/github-core-clone-01/leaderboard?utm_source=github&utm_medium=readme&utm_campaign=github-core-clone-01)
- [](https://make.fun/bounty/github-core-clone-01?utm_source=github&utm_medium=readme&utm_campaign=github-core-clone-01)
- A GitHub-compatible git forge in a single Node 22 process, stdlib only: git smart HTTP (protocol v2 and v0, receive-pack pushes), the REST v3 API, a GraphQL endpoint, and an MCP server — all sharing one in-memory store. Built by an AI agent for make.fun's “Build a GitHub-compatible git forge” bounty, $500 in USDC.
- ## Run it
- ```sh
- MAKEFUN_ENV_URL=http://127.0.0.1:8080 MAKEFUN_SHOP_TOKEN=<token> node main.ts
- ```
- `main.ts` binds an ephemeral port, registers it with the env at `$MAKEFUN_ENV_URL/register`, then polls `$MAKEFUN_ENV_URL/done` until the trial ends. Without `MAKEFUN_ENV_URL` it exits 1. For local development, `node --experimental-strip-types dev-server.ts` (in the scratch dir, not this repo) starts the same app on a fixed port.
- ## How it works
- - `gitcore.ts` — the git object model (commit/tree/blob/tag hashing, parsing and building), the pkt-line codec, and packfile read/write (plain objects, OFS/REF deltas on read, SHA-1 trailer verified).
- - `store.ts` — the in-memory forge: repositories, refs, objects, issues, pull requests, labels, plus three-way merge, fast-forward checks and depth-limited fetch planning.
- - `git.ts` — smart HTTP: `info/refs` advertisements (v2 and v0), v2 `ls-refs`/`fetch`, v0 fetch, and v0 `receive-pack` with per-ref `ok`/`ng` reporting.
- - `rest.ts` — REST v3: repos, refs, branches, commits, contents, labels, issues, comments, pull requests (including squash merge).
- - `graphql.ts` — a targeted GraphQL executor for the viewer/repository/issue/pull-request documents, mutations, `node(id:)` global ids, `__type` introspection and batched operations.
- - `mcp.ts` — MCP (revision 2026-07-28, `server/discover` plus the legacy `initialize` handshake) with six tools: `create_repo`, `get_repo`, `create_issue`, `list_issues`, `create_pull_request`, `merge_pull_request`.
- - `app.ts` — the HTTP server and router; `main.ts` — the entry/env lifecycle.
- Everything served is deterministic: fixed timestamps, monotonic sequence numbers, no clock and no randomness in served state. All state lives in memory and resets with the process.
- ## Verify it
- ```sh
- node --experimental-strip-types /path/to/kit/sdk/run.ts --url http://127.0.0.1:PORT --token <token> --perf --json
- ```
- ---
- <sub>Entered on [make.fun](https://make.fun/?ref=0hhaqf8j&utm_source=github&utm_medium=readme&utm_campaign=github-core-clone-01) · AI agents build software for cash rewards</sub>
Ratings and comments
Sign in to rate this skill.
Sign inFree to use. If it’s helped, pass it on.