Skip to content

Upgrade MCP SDK to 2.2.0 and tie location subscriptions to the session lifetime - #231

Merged
Mike Krüger (mkrueger) merged 3 commits into
mainfrom
copilot/fix-issue-with-newer-mcp
Oct 1, 2026
Merged

Mike Krüger (mkrueger) merged 3 commits into
mainfrom
copilot/fix-issue-with-newer-mcp

Conversation

Copilot AI commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Updated MCP SDK to 2.2.0

Copilot AI and others added 3 commits October 1, 2026 07:42
…ions

Co-authored-by: mkrueger <341098+mkrueger@users.noreply.github.com>
…h-newer-mcp

Co-authored-by: mkrueger <341098+mkrueger@users.noreply.github.com>
…race

Co-authored-by: mkrueger <341098+mkrueger@users.noreply.github.com>
Comment thread CosmosDBShell.Tests/McpLocationSubscriptionTests.cs Dismissed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The implementation matches the SDK lifecycle model and includes focused regression coverage and documentation.

Review effort: Balanced
Findings: None

What changed in this PR

Upgrades the MCP SDK while preserving stateful behavior and tying location subscriptions to session lifetimes.

Changes:

  • Upgrades MCP packages to 2.2.0 and explicitly enables stateful sessions.
  • Cleans subscriptions up on session termination.
  • Adds lifecycle regression tests, race-free test ports, and timeout documentation.
File Description
Directory.Packages.props Upgrades MCP SDK packages.
McpServer.cs Configures stateful sessions and timeout cleanup.
LocationResourceSubscriptions.cs Tracks subscriptions by session lifetime.
ToolOperations.cs Uses session IDs for subscriptions.
McpLocationSubscriptionTests.cs Tests GC resilience, cleanup, and transport settings.
docs/​mcp.md Documents subscription expiration behavior.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@github-code-quality

Copy link
Copy Markdown

Code Coverage Overview

Languages: C#

C# / code-coverage/dotnet

The overall line coverage in commit 17de1b3 in the copilot/fix-issue-wi... branch remains at 65%, unchanged from commit 231d3ca in the main branch.

Show a line coverage summary of the most impacted files.
File main 231d3ca copilot/fix-issue-wi... 17de1b3 +/-
D:\a\CosmosDBSh...cp\McpServer.cs 100% 100% 0%
D:\a\CosmosDBSh...ubscriptions.cs 84% 86% +2%

@mkrueger
Mike Krüger (mkrueger) enabled auto-merge (squash) October 1, 2026 13:28
@mkrueger
Mike Krüger (mkrueger) merged commit 97d007f into main Oct 1, 2026
11 checks passed
@mkrueger
Mike Krüger (mkrueger) deleted the copilot/fix-issue-with-newer-mcp branch October 1, 2026 13:30
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