Skip to content

1238: Optional feature flag for AI in products#7811

Merged
labkey-nicka merged 3 commits into
release26.7-SNAPSHOTfrom
26.7_fb_ai_flag
Jul 3, 2026
Merged

1238: Optional feature flag for AI in products#7811
labkey-nicka merged 3 commits into
release26.7-SNAPSHOTfrom
26.7_fb_ai_flag

Conversation

@labkey-nicka

@labkey-nicka labkey-nicka commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Rationale

This addresses feature request #1238 by adding an optional feature flag that gates AI feature usage.

Related Pull Requests

Changes

  • Defined McpService.isAIFeaturesEnabled() backed by feature flag
  • Reject requests for AbtractAgentAction when feature flag is disabled
  • Remove isEnabled() check that is too restrictive which caused internal tool requests to fail when MCP feature flag is disabled
  • Update sourceQuery.jsp to respect feature flag.

json.put("notifications", Map.of("unreadCount", NotificationService.get().getUnreadNotificationCountByUser(null, user.getUserId())));

if (McpService.get().isEnabled())
if (McpService.get().isAIFeaturesEnabled())

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Intentionally just editing this portion of the check. Leaving the name and value of the mcpReady flag as-is as we also (still) want the MCP service to be ready regardless of if the MCP flag is enabled.

@labkey-nicka labkey-nicka merged commit 648c4e0 into release26.7-SNAPSHOT Jul 3, 2026
9 of 10 checks passed
@labkey-nicka labkey-nicka deleted the 26.7_fb_ai_flag branch July 3, 2026 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants