Skip to content

[MCP] Remove Modified event type#9382

Merged
glen-84 merged 3 commits intomainfrom
gai/remove-modified-event-type
Mar 18, 2026
Merged

[MCP] Remove Modified event type#9382
glen-84 merged 3 commits intomainfrom
gai/remove-modified-event-type

Conversation

@glen-84
Copy link
Copy Markdown
Member

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

Summary of the changes (Less than 80 chars)

  • [MCP] Remove Modified event type.

Copilot AI review requested due to automatic review settings March 17, 2026 15:59
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

This PR removes the Modified storage event type from MCP storage change notifications, simplifying the change model to “Added (upsert)” and “Removed” across prompts and tools.

Changes:

  • Removed Modified from PromptStorageEventType and OperationToolStorageEventType.
  • Updated McpStorageObserver to handle only Added and Removed.
  • Updated the MCP test storage implementation to emit Added for upserts.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 6 comments.

File Description
src/HotChocolate/Adapters/test/Adapters.Mcp.Tests/TestMcpStorage.cs Adjusts test storage event emission and null-check logic for the new event type set.
src/HotChocolate/Adapters/src/Adapters.Mcp.Core/Storage/PromptStorageEventType.cs Removes Modified from prompt storage event enum.
src/HotChocolate/Adapters/src/Adapters.Mcp.Core/Storage/OperationToolStorageEventType.cs Removes Modified from tool storage event enum.
src/HotChocolate/Adapters/src/Adapters.Mcp.Core/McpStorageObserver.cs Drops Modified handling in batch processing for prompts/tools.

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

Comment thread src/HotChocolate/Adapters/test/Adapters.Mcp.Tests/TestMcpStorage.cs Outdated
Comment thread src/HotChocolate/Adapters/test/Adapters.Mcp.Tests/TestMcpStorage.cs Outdated
Comment thread src/HotChocolate/Adapters/src/Adapters.Mcp.Core/Storage/PromptStorageEventType.cs Outdated
@glen-84 glen-84 marked this pull request as draft March 17, 2026 16:09
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