File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff 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+ }
158163var (
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.
You can’t perform that action at this time.
0 commit comments