GetToolsets implements ValidatableTool for GitHubToolConfig
()
| 76 | |
| 77 | // GetToolsets implements ValidatableTool for GitHubToolConfig |
| 78 | func (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. |
nothing calls this directly
no test coverage detected