A GitHub HTTP proxy server written by go.
Usage:
git-proxy [flags]
Flags:
-l, --bandwidth-limit int set total bandwidth limit (MB/s), 0 as no limit
-b, --blacklist-path string set repository blacklist (default "blacklist.txt")
-c, --cert-path string set tls cert path (default "cert.pem")
--deny-web-page deny web page requests
--disable-color disable color output
-d, --domain-list-path string set accept domain (default "domainlist.txt")
-h, --help help for git-proxy
-k, --key-path string set tls key path (default "key.pem")
-r, --request-limit int set request limit by ip, 0 as no limit
-p, --running-port int disable color output (default 30000)
https://<your_domain>/<github_request_url>
https://abc.com/https://github.com/github/docs.git
git clone https://github.com/PuerNya/git-proxy.git && cd git-proxy && go build -o git-proxy.exe -v -trimpath -ldflags "-s -w" main.go
git clone https://github.com/PuerNya/git-proxy.git && cd git-proxy && go build -o git-proxy -v -trimpath -ldflags "-s -w" main.go
Block repositories in blacklist.
<user>/<repo>
* ? are supported*examples:
`/abcd` => User: "*", Repo: "abcd"
`abcd/` => User: "abcd", Repo: "*"
Accept requests whose url host is in the list.
github.comraw.github.comraw.githubusercontent.comgist.github.comobjects.githubusercontent.comgist.githubusercontent.comcodeload.github.comapi.github.comCause the policy set by Github, you can only fetch it over TLS.
Cause the CORS policy set by Github, requests will be blocked by browser.
Cause response headers given by Github is too large, try to enlarge proxy_buffer_size
$ claude mcp add git-proxy \
-- python -m otcore.mcp_server <graph>