Repository navigation
Bump the mcp group with 2 updates - #585
Conversation
Bumps ModelContextProtocol from 2.2.0 to 2.4.0 Bumps ModelContextProtocol.Extensions.Tasks from 2.2.0 to 2.4.0 --- updated-dependencies: - dependency-name: ModelContextProtocol dependency-version: 2.4.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: mcp - dependency-name: ModelContextProtocol.Extensions.Tasks dependency-version: 2.4.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: mcp ... Signed-off-by: dependabot[bot] <support@github.com>
Skymly
left a comment
There was a problem hiding this comment.
This bump is just the two CPM versions in Directory.Packages.props: ModelContextProtocol and ModelContextProtocol.Extensions.Tasks 2.2.0 → 2.4.0, kept in lockstep. That pairing is correct — ServerHost.RunAsync and the in-process test fixture both call WithTasks(new InMemoryMcpTaskStore …).
No issue in the diff itself. I would merge once build-and-test (ubuntu/macOS/Windows) is green. Those checks, plus CodeQL, were still in progress at review time. This jump includes a documented 2.3.0 source-compat change and a 2.3.1 security patch, so CI is the gate, not the two-line edit.
2.3.0: McpClient.ServerInfo is now Implementation?
That is a corrective nullability change, and this repo has TreatWarningsAsErrors=true in Directory.Build.props. I searched the tree: the only C# read is in spikes/s3-mcp-long-running/src/S3.Harness/StdioClientProbe.cs, and it already uses client.ServerInfo?.Name / ?.Version. Product tests (InProcessMcpFixture, StdioHostSmokeTests) use McpClient but read ServerInstructions / tools, not ServerInfo. Compile risk looks low; CI will confirm.
2.3.1 security fix
2.3.1 hardens authenticated stateful sessions. The shipping host is stdio (WithStdioServerTransport); tests use in-process streams or a stdio child process. The advisory likely does not hit the product path, but it is still a good reason to take the bump.
2.4.0 behavior to watch in CI
- Cancellation / notification fixes (csharp-sdk#1917, csharp-sdk#1933): this repo has explicit coverage in
TasksExtensionSeamTests/TasksCancelProbeTools. If anything fails, start there — cancellations should now propagate more reliably, which is desirable, but tight assertions might need a tweak. - Stdio shutdown (csharp-sdk#1838 in 2.3.0): stdin is closed before waiting for a graceful process exit. Relevant to
StdioHostSmokeTests(the launch-directory test already notes the child can hold the working directory during shutdown). This is more likely to help than hurt. - Experimental Skills is a new opt-in package (
ModelContextProtocol.Extensions.Skills) and is not added here. OAuth / HTTP / MCP Apps changes do not apply to this stdio host.
If CI is green, this looks safe to merge. If the build fails, start with ServerInfo or a new MCP analyzer warning. If tests fail, start with the Tasks cancel seam and stdio smoke tests.
| <PackageVersion Include="ModelContextProtocol" Version="2.4.0" /> | ||
| <PackageVersion Include="ModelContextProtocol.Extensions.Tasks" Version="2.4.0" /> |
There was a problem hiding this comment.
Keeping these two versions aligned is the right call: the server and test fixture both register Tasks with WithTasks.
The interesting part of this jump is not the XML, but 2.3.0’s McpClient.ServerInfo nullability change (this repo treats warnings as errors) and 2.4.0’s cancellation fixes. I did not find an unguarded ServerInfo use in the product or test code; please still wait for build-and-test on all three OSes, and if it fails start with TasksExtensionSeamTests / StdioHostSmokeTests.
Rebasing might not happen immediately, so don't worry if this takes some time.
Note: if you make any changes to this PR yourself, they will take precedence over the rebase.
Updated ModelContextProtocol from 2.2.0 to 2.4.0.
Release notes
Sourced from ModelContextProtocol's releases.
2.4.0
Version 2.4.0 adds experimental MCP Skills support through the new ModelContextProtocol.Extensions.Skills package, alongside OAuth hardening and reliability improvements for transport, session, and discovery flows. MCP Apps also now match protocol property names case-sensitively.
What's Changed
Documentation Updates
Test Improvements
Repository Infrastructure Updates
Acknowledgements
... (truncated)
2.3.1
This patch release includes a security fix for authenticated stateful sessions.
What's Changed
bfbd893) by @halter73 (co-authored by @Copilot @jeffhandley @tarekgh)Repository Infrastructure Updates
Full Changelog: modelcontextprotocol/csharp-sdk@v2.3.0...v2.3.1
2.3.0
This release improves HTTP discovery, OAuth, protocol interoperability, and shutdown reliability, preserves registration order for server primitives, and exposes a
TimeProviderfor deterministic client timeout tests. It also corrects optional server-identity handling; applications readingMcpClient.ServerInfoshould adopt nullable handling.Breaking Changes
Refer to the C# SDK Versioning documentation for details on versioning and breaking change policies.
McpClient.ServerInfois nullable — #1903ImplementationtoImplementation?. Existing non-nullable assignments or dereferences can produce nullable warnings and fail warnings-as-errors builds.2026-07-28connections,ServerInfoisnullwhen the server omits optional identity metadata fromserver/discover. Legacyinitializestill requiresserverInfo. Reading the property before connecting still throwsInvalidOperationException.client.ServerInfo?.Name ?? "Unknown server". Self-reported identity must not be used for security decisions.What's Changed
ServerInfonullable #1903 by @Coding-ProfessionalDiscoverProbeTimeout, exposeMcpClientOptions.TimeProviderfor deterministic timeout tests, and default SSE to legacy initialization #1719 by @halter73 (co-authored by @Copilot)InitializationTimeoutand caller cancellation; it is excluded only from the short discovery-probe budget.HttpTransportMode.SseandProtocolVersion = "2026-07-28"; pinning the version withAutoDetectis not equivalent.RequestOptionsserialization #1832 by @dfedoryshchevDocumentation Updates
Test Improvements
Repository Infrastructure Updates
McpServerFactoryreferences in Copilot instructions #1892 by @Zir0-93Acknowledgements
... (truncated)
Commits viewable in compare view.
Updated ModelContextProtocol.Extensions.Tasks from 2.2.0 to 2.4.0.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore <dependency name> major versionwill close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)@dependabot ignore <dependency name> minor versionwill close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)@dependabot ignore <dependency name>will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)@dependabot unignore <dependency name>will remove all of the ignore conditions of the specified dependency@dependabot unignore <dependency name> <ignore condition>will remove the ignore condition of the specified dependency and ignore conditions