MCPcopy Create free account

hub / github.com/aantti/mcp-netbird / functions

Functions35 in github.com/aantti/mcp-netbird

↓ 7 callersMethodGet
Get performs a GET request to the Netbird API
mcpnetbird.go:102
↓ 7 callersMethodRegister
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 callersFunctionNetbirdAPIKeyFromContext
NetbirdAPIKeyFromContext extracts the Netbird API key from the context.
mcpnetbird.go:143
↓ 3 callersFunctionWithNetbirdAPIKey
WithNetbirdAPIKey adds the Netbird API key to the context.
mcpnetbird.go:138
↓ 2 callersMethoddo
do performs an HTTP request to the Netbird API
mcpnetbird.go:56
↓ 1 callersFunctionAddNetbirdGroupTools
(mcp *server.MCPServer)
tools/groups.go:44
↓ 1 callersFunctionAddNetbirdNameserverTools
(mcp *server.MCPServer)
tools/nameservers.go:52
↓ 1 callersFunctionAddNetbirdNetworkTools
(mcp *server.MCPServer)
tools/networks.go:44
↓ 1 callersFunctionAddNetbirdPeerTools
(mcp *server.MCPServer)
tools/peers.go:71
↓ 1 callersFunctionAddNetbirdPolicyTools
(mcp *server.MCPServer)
tools/policies.go:55
↓ 1 callersFunctionAddNetbirdPortAllocationTools
(mcp *server.MCPServer)
tools/ingress_ports.go:51
↓ 1 callersFunctionAddNetbirdPostureCheckTools
(mcp *server.MCPServer)
tools/posture_checks.go:86
↓ 1 callersFunctionComposeSSEContextFuncs
ComposeSSEContextFuncs composes multiple SSEContextFuncs into a single one.
mcpnetbird.go:161
↓ 1 callersFunctionComposeStdioContextFuncs
ComposeStdioContextFuncs composes multiple StdioContextFuncs into a single one.
mcpnetbird.go:151
↓ 1 callersFunctionConvertTool
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 callersFunctioncreateJSONSchemaFromHandler
Creates a full JSON schema from a user provided handler by introspecting the arguments
tools.go:194
↓ 1 callersFunctionlistNetbirdNameservers
(ctx context.Context, args ListNetbirdNameserversParams)
tools/nameservers.go:30
↓ 1 callersFunctionlistNetbirdNetworks
(ctx context.Context, args ListNetbirdNetworksParams)
tools/networks.go:22
↓ 1 callersFunctionlistNetbirdPeers
(ctx context.Context, args ListNetbirdPeersParams)
tools/peers.go:49
↓ 1 callersFunctionlistNetbirdPolicies
(ctx context.Context, args ListNetbirdPoliciesParams)
tools/policies.go:33
↓ 1 callersFunctionnewServer
()
cmd/mcp-netbird/main.go:16
↓ 1 callersFunctionrun
(transport, addr string)
cmd/mcp-netbird/main.go:31
FunctionMustTool
MustTool creates a new Tool from the given name, description, and toolHandler. It panics if the tool cannot be created.
tools.go:39
FunctionNewNetbirdClient
NewNetbirdClient creates a new NetbirdClient with the given API key
mcpnetbird.go:35
FunctionNewNetbirdClientWithBaseURL
(baseURL string)
mcpnetbird.go:48
MethodPut
Put performs a PUT request to the Netbird API
mcpnetbird.go:107
FunctionTestListNetbirdNameservers
(t *testing.T)
tools/nameservers_test.go:13
FunctionTestListNetbirdNetworks
(t *testing.T)
tools/networks_test.go:13
FunctionTestListNetbirdPeers
(t *testing.T)
tools/peers_test.go:13
FunctionTestListNetbirdPolicies
(t *testing.T)
tools/policies_test.go:13
FunctionTestNetbirdAPIKeyContext
(t *testing.T)
mcpnetbird_test.go:8
FunctionlistNetbirdGroups
(ctx context.Context, args ListNetbirdGroupsParams)
tools/groups.go:27
FunctionlistNetbirdPortAllocations
(ctx context.Context, args ListNetbirdPortAllocationsParams)
tools/ingress_ports.go:34
FunctionlistNetbirdPostureChecks
(ctx context.Context, args ListNetbirdPostureChecksParams)
tools/posture_checks.go:69
Functionmain
()
cmd/mcp-netbird/main.go:56