Skip to content

Commit 46c7267

Browse files
committed
update to new insiders feature flag func
1 parent 3ea342a commit 46c7267

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

pkg/github/tools.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ func AllTools(t translations.TranslationHelperFunc) []inventory.ServerTool {
291291

292292
// UI tools (insiders only)
293293
UIGet(t),
294-
294+
295295
// Granular issue tools (feature-flagged, replace consolidated issue_write/sub_issue_write)
296296
GranularCreateIssue(t),
297297
GranularUpdateIssueTitle(t),

pkg/github/ui_tools.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ func UIGet(t translations.TranslationHelperFunc) inventory.ServerTool {
7676
return utils.NewToolResultError(fmt.Sprintf("unknown method: %s", method)), nil, nil
7777
}
7878
})
79-
st.InsidersOnly = true
79+
st.FeatureFlagEnable = MCPAppsFeatureFlag
8080
return st
8181
}
8282

pkg/github/ui_tools_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func Test_UIGet(t *testing.T) {
2727
assert.Contains(t, tool.InputSchema.(*jsonschema.Schema).Properties, "repo")
2828
assert.ElementsMatch(t, tool.InputSchema.(*jsonschema.Schema).Required, []string{"method", "owner"})
2929
assert.True(t, tool.Annotations.ReadOnlyHint, "ui_get should be read-only")
30-
assert.True(t, serverTool.InsidersOnly, "ui_get should be insiders only")
30+
assert.Equal(t, MCPAppsFeatureFlag, serverTool.FeatureFlagEnable, "ui_get should be gated on the MCP Apps feature flag")
3131

3232
// Setup mock data
3333
mockAssignees := []*github.User{

0 commit comments

Comments
 (0)