MCPcopy Index your code
hub / github.com/Qv2ray/gun

github.com/Qv2ray/gun @0.2.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release 0.2.1 ↗ · + Follow
82 symbols 160 edges 12 files 5 documented · 6% updated 4y ago0.2.1 · 2021-03-14★ 164
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

gun

branding

You know what it means.

Guide

Server

  1. Go to your domain in CloudFlare. In "Network" tab, turn on gRPC.

  2. In "SSL/TLS" tab, choose "Source Servers" sub tab. Create a new certificate and save as cert.pem and cert.key.

  3. In "DNS" Tab, add a record pointing to your own server. Make sure the proxy state is "Proxied".

  4. Run and persist this on your server. This example will forward the inbound traffic to 127.0.0.1:8899.

gun -mode server -local :443 -remote 127.0.0.1:8899 -cert cert.pem -key cert.key
  1. If you are using a TLS termination proxy, you can set -cleartext parameter to use HTTP/2 Cleartext transport protocol.

Client

  1. Assume the domain of server is grpc.example.com.

  2. Run locally and persist. This will tunnel connections from 127.0.0.1:8899 to remote.

gun -mode client -local 127.0.0.1:8899 -remote grpc.example.com:443

There's also a SIP003 plugin version, see it's document for instruction.

License

~~Used to be AGPL3~~ Relicensed to MIT License.

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Method 48
Function 14
Struct 12
Interface 7
TypeAlias 1

Languages

Go100%

Modules by API surface

pkg/proto/gun.pb.go52 symbols
pkg/proto/customServiceName.go7 symbols
pkg/impl/server.go7 symbols
pkg/impl/client.go7 symbols
cmd/sip003/option.go2 symbols
cmd/sip003/env.go2 symbols
cmd/main.go2 symbols
pkg/cert/cert_pool_windows.go1 symbols
pkg/cert/cert_pool_others.go1 symbols
cmd/sip003/main.go1 symbols

For agents

$ claude mcp add gun \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page