MCPcopy
hub / github.com/github/github-mcp-server / shouldAttachIFCLabel

Function shouldAttachIFCLabel

pkg/github/ifc_labels.go:20–22  ·  view source on GitHub ↗
(ctx context.Context, deps ToolDependencies, r *mcp.CallToolResult)

Source from the content-addressed store, hash-verified

18}
19
20func shouldAttachIFCLabel(ctx context.Context, deps ToolDependencies, r *mcp.CallToolResult) bool {
21 return r != nil && !r.IsError && deps.IsFeatureEnabled(ctx, FeatureFlagIFCLabels)
22}
23
24// attachStaticIFCLabel attaches a fixed IFC label to a successful tool result
25// when IFC labels are enabled. It is used by tools whose label does not depend

Callers 7

ProjectsListFunction · 0.85
ProjectsGetFunction · 0.85
attachStaticIFCLabelFunction · 0.85
attachJoinedIFCLabelFunction · 0.85

Calls 1

IsFeatureEnabledMethod · 0.65

Tested by

no test coverage detected