MCPcopy Create free account
hub / github.com/github/gh-aw / GetToolsets

Method GetToolsets

pkg/workflow/permissions_toolset_data.go:78–87  ·  view source on GitHub ↗

GetToolsets implements ValidatableTool for GitHubToolConfig

()

Source from the content-addressed store, hash-verified

76
77// GetToolsets implements ValidatableTool for GitHubToolConfig
78func (g *GitHubToolConfig) GetToolsets() string {
79 if g == nil {
80 // Should not happen - ValidatePermissions checks for nil before calling this
81 return ""
82 }
83 // Convert toolset array to comma-separated string
84 // If empty, expandDefaultToolset will apply defaults
85 toolsetsStr := strings.Join(g.Toolset.ToStringSlice(), ",")
86 return expandDefaultToolset(toolsetsStr)
87}
88
89// IsReadOnly implements ValidatableTool for GitHubToolConfig.
90// The GitHub MCP server always operates in read-only mode.

Callers

nothing calls this directly

Calls 2

expandDefaultToolsetFunction · 0.85
ToStringSliceMethod · 0.45

Tested by

no test coverage detected