Skip to content

Commit 7894292

Browse files
mattdhollowayCopilot
authored andcommitted
Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 3cf4124 commit 7894292

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

pkg/github/tools.go

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,14 +147,19 @@ var (
147147
FeatureFlagPullRequestsGranular = "pull_requests_granular"
148148
)
149149

150-
// HeaderAllowedFeatureFlags are the feature flags that clients may enable via the
150+
// headerAllowedFeatureFlags are the feature flags that clients may enable via the
151151
// X-MCP-Features header. Only these flags are accepted from headers; unknown flags
152152
// are silently ignored.
153-
var HeaderAllowedFeatureFlags = []string{
153+
var headerAllowedFeatureFlags = []string{
154154
FeatureFlagIssuesGranular,
155155
FeatureFlagPullRequestsGranular,
156156
}
157157

158+
// HeaderAllowedFeatureFlags returns the feature flags that clients may enable via
159+
// the X-MCP-Features header.
160+
func HeaderAllowedFeatureFlags() []string {
161+
return slices.Clone(headerAllowedFeatureFlags)
162+
}
158163
var (
159164
// Remote-only toolsets - these are only available in the remote MCP server
160165
// but are documented here for consistency and to enable automated documentation.

0 commit comments

Comments
 (0)