Skip to content
Open
Show file tree
Hide file tree
Changes from 12 commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
f636f4b
Initial plan
Copilot Nov 18, 2025
701597c
Remove internal usages of obsolete capability properties
Copilot Nov 18, 2025
d826cd3
Remove all obsolete API definitions and related tests
Copilot Nov 18, 2025
cd8f7ae
Merge main branch and resolve conflicts
Copilot Nov 19, 2025
3d20111
Merge remote-tracking branch 'origin/main' into copilot/remove-obsole…
Copilot Nov 19, 2025
eb31afb
Remove unused duplicate CreateSamplingHandler and helper methods from…
Copilot Nov 19, 2025
c7deb7f
Delete empty McpEndpointExtensions and McpServerExtensions classes
Copilot Nov 19, 2025
4d6fe0a
Remove obsolete IMcpEndpoint, IMcpClient, IMcpServer interfaces and M…
Copilot Nov 19, 2025
2decb2d
Remove extra newlines before closing braces in capability classes
Copilot Nov 19, 2025
4443cfc
Merge main branch and resolve conflicts (PR #976 integration)
Copilot Nov 20, 2025
44083aa
Revert "Merge main branch and resolve conflicts (PR #976 integration)"
MackinnonBuck Nov 20, 2025
cd9ce13
Merge remote-tracking branch 'origin/main' into copilot/remove-obsole…
MackinnonBuck Nov 20, 2025
93a6877
Remove remaining obsolete EnumSchema and LegacyTitledEnumSchema types…
Copilot Nov 21, 2025
186d85c
Restore EnumSchemaTests.cs and add back valid enum schema tests witho…
Copilot Nov 21, 2025
04e1326
Revert: "Remove remaining obsolete EnumSchema and LegacyTitledEnumSch…
jeffhandley Nov 26, 2025
40df946
Merge branch 'main' into copilot/remove-obsolete-apis
jeffhandley Nov 26, 2025
3c29253
Introduce Obsoletions/Experimentals pattern for custom diagnostics.
jeffhandley Nov 26, 2025
6fcf81c
Fix failing enum schema tests
jeffhandley Nov 26, 2025
981386e
Merge branch 'main' into copilot/remove-obsolete-apis
jeffhandley Nov 27, 2025
95708d6
Revise diagnostic ID ranges for analyzers, obsoletions, experimentals
jeffhandley Nov 27, 2025
7e074f8
Fix XML comment reference to RegisterNotificationHandler
jeffhandley Nov 27, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 0 additions & 50 deletions src/ModelContextProtocol.Core/Client/IMcpClient.cs

This file was deleted.

4 changes: 1 addition & 3 deletions src/ModelContextProtocol.Core/Client/McpClient.Methods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ namespace ModelContextProtocol.Client;
/// <summary>
/// Represents an instance of a Model Context Protocol (MCP) client session that connects to and communicates with an MCP server.
/// </summary>
#pragma warning disable CS0618 // Type or member is obsolete
public abstract partial class McpClient : McpSession, IMcpClient
#pragma warning restore CS0618 // Type or member is obsolete
public abstract partial class McpClient : McpSession
{
/// <summary>Creates an <see cref="McpClient"/>, connecting it to the specified server.</summary>
/// <param name="clientTransport">The transport instance used to communicate with the server.</param>
Expand Down
4 changes: 1 addition & 3 deletions src/ModelContextProtocol.Core/Client/McpClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ namespace ModelContextProtocol.Client;
/// <summary>
/// Represents an instance of a Model Context Protocol (MCP) client session that connects to and communicates with an MCP server.
/// </summary>
#pragma warning disable CS0618 // Type or member is obsolete
public abstract partial class McpClient : McpSession, IMcpClient
#pragma warning restore CS0618 // Type or member is obsolete
public abstract partial class McpClient : McpSession
{
/// <summary>
/// Gets the capabilities supported by the connected server.
Expand Down
610 changes: 0 additions & 610 deletions src/ModelContextProtocol.Core/Client/McpClientExtensions.cs

This file was deleted.

35 changes: 0 additions & 35 deletions src/ModelContextProtocol.Core/Client/McpClientFactory.cs

This file was deleted.

2 changes: 1 addition & 1 deletion src/ModelContextProtocol.Core/Client/McpClientHandlers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class McpClientHandlers
/// </para>
/// <para>
/// Handlers provided via <see cref="NotificationHandlers"/> will be registered with the client for the lifetime of the client.
/// For transient handlers, <see cref="IMcpEndpoint.RegisterNotificationHandler"/> may be used to register a handler that can
/// For transient handlers, <see cref="McpSession.RegisterNotificationHandler"/> may be used to register a handler that can
/// then be unregistered by disposing of the <see cref="IAsyncDisposable"/> returned from the method.
/// </para>
/// </remarks>
Expand Down
10 changes: 4 additions & 6 deletions src/ModelContextProtocol.Core/Client/McpClientImpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,10 @@ private void RegisterHandlers(McpClientOptions options, NotificationHandlers not
{
McpClientHandlers handlers = options.Handlers;

#pragma warning disable CS0618 // Type or member is obsolete
var notificationHandlersFromOptions = handlers.NotificationHandlers ?? options.Capabilities?.NotificationHandlers;
var samplingHandler = handlers.SamplingHandler ?? options.Capabilities?.Sampling?.SamplingHandler;
var rootsHandler = handlers.RootsHandler ?? options.Capabilities?.Roots?.RootsHandler;
var elicitationHandler = handlers.ElicitationHandler ?? options.Capabilities?.Elicitation?.ElicitationHandler;
#pragma warning restore CS0618 // Type or member is obsolete
var notificationHandlersFromOptions = handlers.NotificationHandlers;
var samplingHandler = handlers.SamplingHandler;
var rootsHandler = handlers.RootsHandler;
var elicitationHandler = handlers.ElicitationHandler;

if (notificationHandlersFromOptions is not null)
{
Expand Down
85 changes: 0 additions & 85 deletions src/ModelContextProtocol.Core/IMcpEndpoint.cs

This file was deleted.

Loading
Loading