MCPcopy Index your code
hub / github.com/github/github-mcp-server / RemoveToolset

Function RemoveToolset

pkg/github/tools.go:448–456  ·  view source on GitHub ↗
(tools []string, toRemove string)

Source from the content-addressed store, hash-verified

446}
447
448func RemoveToolset(tools []string, toRemove string) []string {
449 result := make([]string, 0, len(tools))
450 for _, tool := range tools {
451 if tool != toRemove {
452 result = append(result, tool)
453 }
454 }
455 return result
456}
457
458func ContainsToolset(tools []string, toCheck string) bool {
459 return slices.Contains(tools, toCheck)

Callers 2

AddDefaultToolsetFunction · 0.85
TestRemoveToolsetFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestRemoveToolsetFunction · 0.68