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

Function GetLabelForLabelsToolset

pkg/github/labels.go:120–124  ·  view source on GitHub ↗

GetLabelForLabelsToolset returns the same GetLabel tool but registered in the labels toolset. This provides conformance with the original behavior where get_label was in both toolsets.

(t translations.TranslationHelperFunc)

Source from the content-addressed store, hash-verified

118// GetLabelForLabelsToolset returns the same GetLabel tool but registered in the labels toolset.
119// This provides conformance with the original behavior where get_label was in both toolsets.
120func GetLabelForLabelsToolset(t translations.TranslationHelperFunc) inventory.ServerTool {
121 tool := GetLabel(t)
122 tool.Toolset = ToolsetLabels
123 return tool
124}
125
126// ListLabels lists labels from a repository
127func ListLabels(t translations.TranslationHelperFunc) inventory.ServerTool {

Callers 1

AllToolsFunction · 0.85

Calls 1

GetLabelFunction · 0.85

Tested by

no test coverage detected