MCPcopy Index your code
hub / github.com/WireGuard/wgctrl-go

github.com/WireGuard/wgctrl-go @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
298 symbols 842 edges 61 files 142 documented · 48%
What it actually does AI analysis from the code graph — generated when you open this
loading…

Extension points exported contracts — how you extend this code

Client (Interface)
A Client is a type which can control a WireGuard device. [7 implementers]
internal/wginternal/client.go

Core symbols most depended-on inside this repo

MustCIDR
called by 41
internal/wgtest/wgtest.go
String
called by 21
wgtypes/types.go
MustPublicKey
called by 15
internal/wgtest/wgtest.go
MustHexKey
called by 13
internal/wgtest/wgtest.go
Device
called by 12
internal/wginternal/client.go
Close
called by 9
internal/wguser/client.go
sockaddrPort
called by 9
internal/wglinux/configure_linux.go
MustUDPAddr
called by 8
internal/wgtest/wgtest.go

Shape

Function 159
Method 60
Struct 60
TypeAlias 16
FuncType 2
Interface 1

Languages

Go100%

Modules by API surface

internal/wgfreebsd/client_freebsd.go22 symbols
internal/wgwindows/internal/ioctl/configuration_windows.go17 symbols
internal/wgopenbsd/client_openbsd.go16 symbols
client_integration_test.go14 symbols
wgtypes/types.go13 symbols
internal/wglinux/client_linux_test.go13 symbols
internal/wguser/parse.go12 symbols
internal/wglinux/parse_linux.go11 symbols
internal/wglinux/client_linux.go11 symbols
client_test.go11 symbols
internal/wgwindows/client_windows.go9 symbols
internal/wglinux/configure_linux.go9 symbols

For agents

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

⬇ download graph artifact