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

Function GetDefaultToolsetIDs

pkg/github/tools.go:485–494  ·  view source on GitHub ↗

GetDefaultToolsetIDs returns the IDs of toolsets marked as Default. This is a convenience function that builds an inventory to determine defaults.

()

Source from the content-addressed store, hash-verified

483// GetDefaultToolsetIDs returns the IDs of toolsets marked as Default.
484// This is a convenience function that builds an inventory to determine defaults.
485func GetDefaultToolsetIDs() []string {
486 // Build() can only fail if WithTools specifies invalid tools - not used here
487 r, _ := NewInventory(stubTranslator).Build()
488 ids := r.DefaultToolsetIDs()
489 result := make([]string, len(ids))
490 for i, id := range ids {
491 result[i] = string(id)
492 }
493 return result
494}
495
496// RemoteOnlyToolsets returns toolset metadata for toolsets that are only
497// available in the remote MCP server. These are documented but not registered

Callers

nothing calls this directly

Calls 3

NewInventoryFunction · 0.85
BuildMethod · 0.80
DefaultToolsetIDsMethod · 0.80

Tested by

no test coverage detected