Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aantti/mcp-netbird
/ functions
Functions
35 in github.com/aantti/mcp-netbird
⨍
Functions
35
◇
Types & classes
31
↓ 7 callers
Method
Get
Get performs a GET request to the Netbird API
mcpnetbird.go:102
↓ 7 callers
Method
Register
Register adds the Tool to the given MCPServer. It is a convenience method that calls `server.MCPServer.Register` with the Tool's Tool and Handler fie
tools.go:33
↓ 3 callers
Function
NetbirdAPIKeyFromContext
NetbirdAPIKeyFromContext extracts the Netbird API key from the context.
mcpnetbird.go:143
↓ 3 callers
Function
WithNetbirdAPIKey
WithNetbirdAPIKey adds the Netbird API key to the context.
mcpnetbird.go:138
↓ 2 callers
Method
do
do performs an HTTP request to the Netbird API
mcpnetbird.go:56
↓ 1 callers
Function
AddNetbirdGroupTools
(mcp *server.MCPServer)
tools/groups.go:44
↓ 1 callers
Function
AddNetbirdNameserverTools
(mcp *server.MCPServer)
tools/nameservers.go:52
↓ 1 callers
Function
AddNetbirdNetworkTools
(mcp *server.MCPServer)
tools/networks.go:44
↓ 1 callers
Function
AddNetbirdPeerTools
(mcp *server.MCPServer)
tools/peers.go:71
↓ 1 callers
Function
AddNetbirdPolicyTools
(mcp *server.MCPServer)
tools/policies.go:55
↓ 1 callers
Function
AddNetbirdPortAllocationTools
(mcp *server.MCPServer)
tools/ingress_ports.go:51
↓ 1 callers
Function
AddNetbirdPostureCheckTools
(mcp *server.MCPServer)
tools/posture_checks.go:86
↓ 1 callers
Function
ComposeSSEContextFuncs
ComposeSSEContextFuncs composes multiple SSEContextFuncs into a single one.
mcpnetbird.go:161
↓ 1 callers
Function
ComposeStdioContextFuncs
ComposeStdioContextFuncs composes multiple StdioContextFuncs into a single one.
mcpnetbird.go:151
↓ 1 callers
Function
ConvertTool
ConvertTool converts a toolHandler function to a Tool and ToolHandlerFunc. The toolHandler function must have two arguments: a context.Context and a
tools.go:56
↓ 1 callers
Function
createJSONSchemaFromHandler
Creates a full JSON schema from a user provided handler by introspecting the arguments
tools.go:194
↓ 1 callers
Function
listNetbirdNameservers
(ctx context.Context, args ListNetbirdNameserversParams)
tools/nameservers.go:30
↓ 1 callers
Function
listNetbirdNetworks
(ctx context.Context, args ListNetbirdNetworksParams)
tools/networks.go:22
↓ 1 callers
Function
listNetbirdPeers
(ctx context.Context, args ListNetbirdPeersParams)
tools/peers.go:49
↓ 1 callers
Function
listNetbirdPolicies
(ctx context.Context, args ListNetbirdPoliciesParams)
tools/policies.go:33
↓ 1 callers
Function
newServer
()
cmd/mcp-netbird/main.go:16
↓ 1 callers
Function
run
(transport, addr string)
cmd/mcp-netbird/main.go:31
Function
MustTool
MustTool creates a new Tool from the given name, description, and toolHandler. It panics if the tool cannot be created.
tools.go:39
Function
NewNetbirdClient
NewNetbirdClient creates a new NetbirdClient with the given API key
mcpnetbird.go:35
Function
NewNetbirdClientWithBaseURL
(baseURL string)
mcpnetbird.go:48
Method
Put
Put performs a PUT request to the Netbird API
mcpnetbird.go:107
Function
TestListNetbirdNameservers
(t *testing.T)
tools/nameservers_test.go:13
Function
TestListNetbirdNetworks
(t *testing.T)
tools/networks_test.go:13
Function
TestListNetbirdPeers
(t *testing.T)
tools/peers_test.go:13
Function
TestListNetbirdPolicies
(t *testing.T)
tools/policies_test.go:13
Function
TestNetbirdAPIKeyContext
(t *testing.T)
mcpnetbird_test.go:8
Function
listNetbirdGroups
(ctx context.Context, args ListNetbirdGroupsParams)
tools/groups.go:27
Function
listNetbirdPortAllocations
(ctx context.Context, args ListNetbirdPortAllocationsParams)
tools/ingress_ports.go:34
Function
listNetbirdPostureChecks
(ctx context.Context, args ListNetbirdPostureChecksParams)
tools/posture_checks.go:69
Function
main
()
cmd/mcp-netbird/main.go:56