Skip to main content
Glama

make.fun · github-core-clone-01 rank reward

GitHub Core Clone

GitHub-compatible core services in a single Go process: Git smart HTTP, REST v3, GraphQL, and MCP. The server keeps repositories, Git objects, refs, issues, and pull requests in memory and exposes them through compatible API routes.

Run

Build the static server with Go 1.24 and run it directly:

export PATH="$HOME/bin/go/bin:$PATH"
CGO_ENABLED=0 go build -trimpath -ldflags="-s -w" -o forge .
PORT=8080 ./forge

The PORT environment variable selects the listening port. If omitted or set to 0, the server asks the operating system for an available port. The provided Node launcher starts the committed forge binary with the current environment:

PORT=8080 node main.ts

Related MCP server: github-core-clone-01

Exercise the Git service

With the server running on port 8080, create an initialized repository and query or clone it with standard Git:

curl -fsS -X POST -H 'Authorization: token forge-demo' \
  -H 'Content-Type: application/json' -d '{"name":"demo","auto_init":true}' \
  http://127.0.0.1:8080/api/v3/user/repos
git ls-remote http://127.0.0.1:8080/adaiversen/demo.git
git clone --depth=1 http://127.0.0.1:8080/adaiversen/demo.git demo-shallow
git clone http://127.0.0.1:8080/adaiversen/demo.git demo-full
git -C demo-full config user.name Tester
git -C demo-full config user.email tester@example.test
printf 'push test\\n' > demo-full/push-test.txt
git -C demo-full add push-test.txt
git -C demo-full commit -m 'Test receive-pack'
git -C demo-full -c 'http.extraHeader=Authorization: Bearer forge-demo' \
  push origin HEAD:refs/heads/test

The REST API is rooted at /api/v3, GraphQL at /api/graphql, and MCP JSON-RPC at /mcp. /healthz returns a small health response. API and push requests use the forge-demo token by default; set MAKEFUN_SHOP_TOKEN to change it.

Repository state lasts for the life of the server. A restart clears objects, refs, and collaboration data. Run the examples against a local instance; the built-in demo token is public.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Exposes 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
    • A
      license
      Not graded
      quality
      Not graded
      maintenance
      Exposes a GitHub-compatible MCP endpoint over JSON-RPC 2.0 Streamable HTTP that lets clients create and fetch repositories, open, list, and close issues, add comments, and create and merge pull requests against an in-memory store. It supports both the 2026-07-28 revision with server/discover and the legacy initialize handshake, sharing state with the bundled REST and GraphQL surfaces.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables creating and managing repositories, issues, comments, and pull requests through JSON-RPC 2.0 over Streamable HTTP. It exposes GitHub-style MCP tools for repository, issue, and pull-request workflows.
      MIT