Skip to content

Conversation

@mattdholloway
Copy link
Contributor

@mattdholloway mattdholloway commented Dec 16, 2025

This pull request completes the Actions consolidation rollout by porting these changes back to OSS and allowing feature flags to be used to control which version of the Actions toolset is enabled: legacy or consolidated.

Closes: https://github.com/github/copilot-agent-services/issues/1053

@mattdholloway mattdholloway changed the title Add ff saupport and consolidated actions toolsets Add ff support and consolidated actions toolsets Dec 16, 2025
Base automatically changed from copilot/add-generic-filtering-mechanisms to SamMorrowDrums/registry-builder-pattern December 16, 2025 18:47
Base automatically changed from SamMorrowDrums/registry-builder-pattern to SamMorrowDrums/server-tool-refactor-toolsets December 16, 2025 18:53
Base automatically changed from SamMorrowDrums/server-tool-refactor-toolsets to SamMorrowDrums/server-tool-refactor-projects December 16, 2025 19:01
Base automatically changed from SamMorrowDrums/server-tool-refactor-projects to SamMorrowDrums/server-tool-refactor-security-advisories December 16, 2025 19:02
Base automatically changed from SamMorrowDrums/server-tool-refactor-security-advisories to SamMorrowDrums/server-tool-refactor-discussions December 16, 2025 19:02
Base automatically changed from SamMorrowDrums/server-tool-refactor-discussions to SamMorrowDrums/server-tool-refactor-code-scanning December 16, 2025 19:02
Base automatically changed from SamMorrowDrums/server-tool-refactor-code-scanning to SamMorrowDrums/server-tool-refactor-git December 16, 2025 19:02
Base automatically changed from SamMorrowDrums/server-tool-refactor-git to SamMorrowDrums/server-tool-refactor-actions December 16, 2025 19:03
Base automatically changed from SamMorrowDrums/server-tool-refactor-actions to SamMorrowDrums/server-tool-refactor-pullrequests December 16, 2025 19:03
Base automatically changed from SamMorrowDrums/server-tool-refactor-pullrequests to SamMorrowDrums/server-tool-refactor-issues December 16, 2025 19:36
Base automatically changed from SamMorrowDrums/server-tool-refactor-issues to SamMorrowDrums/server-tool-refactor-repositories December 16, 2025 19:38
Base automatically changed from SamMorrowDrums/server-tool-refactor-repositories to SamMorrowDrums/server-tool-refactor-notifications December 16, 2025 20:32
@SamMorrowDrums SamMorrowDrums force-pushed the SamMorrowDrums/server-tool-refactor-notifications branch from 33662a0 to daee6b8 Compare December 16, 2025 20:44
Base automatically changed from SamMorrowDrums/server-tool-refactor-notifications to SamMorrowDrums/server-tool-refactor December 16, 2025 20:53
Base automatically changed from SamMorrowDrums/server-tool-refactor to main December 17, 2025 08:56
@mattdholloway mattdholloway force-pushed the actions-consolidation-ff branch from 67e94d1 to a3e151b Compare December 17, 2025 15:10
@mattdholloway mattdholloway force-pushed the actions-consolidation-ff branch from a3e151b to 94c7455 Compare December 17, 2025 15:17
@mattdholloway mattdholloway marked this pull request as ready for review December 17, 2025 15:17
@mattdholloway mattdholloway requested a review from a team as a code owner December 17, 2025 15:17
Copilot AI review requested due to automatic review settings December 17, 2025 15:17
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds feature flag support for consolidated GitHub Actions tools, allowing the MCP server to switch between individual granular tools and consolidated multi-method tools. When the remote_mcp_consolidated_actions feature flag is enabled, four new consolidated tools replace 14 individual tools.

Key Changes

  • Introduces FeatureFlagConsolidatedActions constant to control tool availability via feature flags
  • Adds four new consolidated tools: actions_list, actions_get, actions_run_trigger, and get_job_logs (consolidated version)
  • Sets FeatureFlagDisable on all existing individual Actions tools to disable them when consolidated mode is active
  • Updates test validation logic to allow duplicate tool names for feature-flagged tools (since they're mutually exclusive at runtime)

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
pkg/github/actions.go Adds feature flag constant, method constants for consolidated tools, applies FeatureFlagDisable to 14 existing tools, implements 4 new consolidated tools with FeatureFlagEnable, and adds 13 helper functions to support consolidated tool operations
pkg/github/tools.go Registers the 4 new consolidated tools in the AllTools function
pkg/github/tools_validation_test.go Updates TestNoDuplicateToolNames to allow duplicate names for feature-flagged tools since they are mutually exclusive at runtime
cmd/github-mcp-server/main.go Adds safety checks with viper.IsSet before unmarshaling tools and features configuration to prevent errors when keys are absent
README.md Documents the 4 new consolidated tools with their parameters and descriptions

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.

assert.Contains(t, inputSchema.Properties, "run_id")
assert.ElementsMatch(t, inputSchema.Required, []string{"owner", "repo", "run_id"})

tests := []struct {
Copy link

Copilot AI Dec 18, 2025

Choose a reason for hiding this comment

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

The test structure starting at line 1454 appears to be orphaned or incorrectly placed within the Test_RerunFailedJobs function. This test table should either be part of a new test function or removed if it duplicates the existing test logic above it.

Copilot uses AI. Check for mistakes.
@SamMorrowDrums SamMorrowDrums merged commit cc5f536 into main Dec 18, 2025
17 checks passed
@SamMorrowDrums SamMorrowDrums deleted the actions-consolidation-ff branch December 18, 2025 15:00
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.

4 participants