Skip to content

Add overload for AddMcpStorage taking a factory and skipIf#9367

Merged
glen-84 merged 1 commit intomainfrom
gai/add-mcp-storage-overload
Mar 13, 2026
Merged

Add overload for AddMcpStorage taking a factory and skipIf#9367
glen-84 merged 1 commit intomainfrom
gai/add-mcp-storage-overload

Conversation

@glen-84
Copy link
Copy Markdown
Member

@glen-84 glen-84 commented Mar 13, 2026

Summary of the changes (Less than 80 chars)

  • Add overload for AddMcpStorage taking a factory and skipIf.

Copilot AI review requested due to automatic review settings March 13, 2026 09:27
Copy link
Copy Markdown
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

Adds a new AddMcpStorage overload accepting a factory delegate and optional skipIf predicate, and refactors warmup task registration into a shared helper method.

Changes:

  • New AddMcpStorage<T>(factory, skipIf) overload in both FusionGatewayBuilderExtensions and RequestExecutorBuilderExtensions
  • Warmup task logic extracted into private AddMcpStorageWarmupTask helper, now accepting an optional skipIf parameter
  • Added AspNetCore project reference to Adapters.Mcp project

Reviewed changes

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

File Description
FusionGatewayBuilderExtensions.cs New factory+skipIf overload, extracted warmup task helper
RequestExecutorBuilderExtensions.cs Same new overload and warmup task extraction
HotChocolate.Adapters.Mcp.csproj Added AspNetCore project reference

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants