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

Method HasToolset

pkg/inventory/registry.go:294–296  ·  view source on GitHub ↗

HasToolset checks if any tool/resource/prompt belongs to the given toolset.

(toolsetID ToolsetID)

Source from the content-addressed store, hash-verified

292
293// HasToolset checks if any tool/resource/prompt belongs to the given toolset.
294func (r *Inventory) HasToolset(toolsetID ToolsetID) bool {
295 return r.toolsetIDSet[toolsetID]
296}
297
298// AllTools returns all tools without any filtering, sorted deterministically.
299func (r *Inventory) AllTools() []ServerTool {

Callers 3

TestHasToolsetFunction · 0.80

Calls

no outgoing calls

Tested by 2

TestHasToolsetFunction · 0.64