Uh oh!
There was an error while loading. Please reload this page.
Remove obsolete APIs from codebase - #985
Conversation
Co-authored-by: MackinnonBuck <10456961+MackinnonBuck@users.noreply.github.com>
Co-authored-by: MackinnonBuck <10456961+MackinnonBuck@users.noreply.github.com>
eiriktsarpalis
commented
Nov 19, 2025
@copilot please address the merge conflicts in your branch. |
Co-authored-by: eiriktsarpalis <2813363+eiriktsarpalis@users.noreply.github.com>
Merge conflicts resolved in commit cd8f7ae. The conflicts were modify/delete conflicts where the test files for obsolete extension methods were modified in main (to add |
eiriktsarpalis
commented
Nov 19, 2025
@copilot your changes failed to fix all merge conflicts. |
…te-apis # Conflicts: # tests/ModelContextProtocol.Tests/Client/McpClientExtensionsTests.cs # tests/ModelContextProtocol.Tests/McpEndpointExtensionsTests.cs # tests/ModelContextProtocol.Tests/Server/McpServerExtensionsTests.cs
All merge conflicts have been resolved in commit 3d20111. The conflicts were from PR #984 which removed |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
… McpClient.Methods.cs Co-authored-by: eiriktsarpalis <2813363+eiriktsarpalis@users.noreply.github.com>
Co-authored-by: eiriktsarpalis <2813363+eiriktsarpalis@users.noreply.github.com>
MackinnonBuck
left a comment
There was a problem hiding this comment.
@copilot it looks like there are more obsolete APIs you need to remove:
IMcpEndpointIMcpClientMcpClientFactoryIMcpServer
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
…ut obsolete types Co-authored-by: jeffhandley <1031940+jeffhandley@users.noreply.github.com>
stephentoub
commented
Nov 21, 2025
@jeffhandley, those just got merged as part of #969, and I believe they'd still be needed for backwards wire compatibility. |
MackinnonBuck
commented
Nov 21, 2025
@stephentoub@jeffhandley Sounds like we should revert 93a6877 and 186d85c, then? |
jeffhandley
commented
Nov 21, 2025
Yeah, but we should organize those classes and tests to distinguish them better, and apply |
…ema types and all CS0618 pragma warnings"
- Polyfill ObsoleteAttribute and ExperimentalAttribute on netstandard - Assign MCP00001 for EnumSchema/LegacyTitledEnumSchema - Improve clarity and maintainability for enum schema tests - Illustrate assigning MCP50001 for experimental Tasks
Uh oh!
There was an error while loading. Please reload this page.
Remove Obsolete APIs
This PR removes APIs marked with
[Obsolete]that no longer need to be kept for backward compatibility, per issue #774.Summary
Successfully removed obsolete APIs from the codebase:
This PR also introduces the infrastructure to support custom diagnostics for both obsoletions and experimental APIs.
Two obsolete enum schema classes remain for backward compatibility:
LegacyTitledEnumSchemaandEnumSchema, per (#969) Implement SEP-1330: Standards-compliant enum schemas for elicitationMCP9001diagnostic ID is assigned to these APIs, linking to the SEP issue