Skip to content

Move IMcpServerBuilder to Core - #2066

Draft
halter73 wants to merge 1 commit into
mainfrom
halter73-move-imcpserverbuilder-to-core
Draft

halter73 wants to merge 1 commit into
mainfrom
halter73-move-imcpserverbuilder-to-core

Conversation

@halter73

@halter73 halter73 commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: 269dea31f6d315ff13b8f14006ddbd0c54b5058f

Dimension Assessment Rationale
Change confidence 8/10 ↑ Type-forwarding tests pass on net472 and net10.0; package validation passed for Core, ModelContextProtocol, and Apps.
↑ Extension samples and the conformance server build.
↓ AspNetCore.Tests and AOT test app could not be restored offline; the full unit suite has 63 integration failures because the npm test server is not installed.

Summary

Move IMcpServerBuilder into ModelContextProtocol.Core, while keeping a type forwarder in ModelContextProtocol. The Apps, Skills, and Tasks extension packages now depend on Core and Microsoft.Extensions.Options instead of the full package. The Skills builder registers resources directly through builder.Services, avoiding its previous dependency on the full package's WithResources extension.

This reduces hosting and caching dependencies for clients consuming these extensions. Server projects that relied on an extension package to bring in AddMcpServer() transitively must now reference ModelContextProtocol or ModelContextProtocol.AspNetCore directly. Pairing a new extension package with an old ModelContextProtocol version may also produce CS0433 because both assemblies define the interface.

Validation

  • Package validation passed for Core, ModelContextProtocol, and Apps.
  • Extension samples and the conformance server build.
  • Focused tests passed on net472 and net10.0; the full net10.0 suite passed 3,632 tests, with 63 integration tests blocked because the npm test server is not installed.
  • AspNetCore.Tests and the AOT test app could not be restored because required packages are unavailable in the local cache and api.nuget.org is unreachable.

Related to dotnet/aspnetcore#70314. cc @jeffhandley @tarekgh

Note

This pull request description was generated with GitHub Copilot.

Move IMcpServerBuilder into ModelContextProtocol.Core and type-forward it from
ModelContextProtocol. The Apps, Skills, and Tasks extension packages now depend
only on ModelContextProtocol.Core and Microsoft.Extensions.Options, so clients
no longer pull in hosting and caching abstractions.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

This branch has not been deployed

No deployments
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.

1 participant