Skip to content

Commit 03944a8

Browse files
author
Tarek Mahmoud Sayed
committed
Point obsolete diagnostic URLs to the #obsolete-apis section anchor
The list-of-diagnostics.md table rows are not headings, so per-ID fragments like #mcp9005 and #mcp9003 do not resolve. Link to the #obsolete-apis section heading instead, matching the MCP9004 entry.
1 parent e11e4c3 commit 03944a8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Common/Obsoletions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ internal static class Obsoletions
2828

2929
public const string RequestContextParamsConstructor_DiagnosticId = "MCP9003";
3030
public const string RequestContextParamsConstructor_Message = "Use the constructor overload that accepts a parameters argument.";
31-
public const string RequestContextParamsConstructor_Url = "https://github.com/modelcontextprotocol/csharp-sdk/blob/main/docs/list-of-diagnostics.md#mcp9003";
31+
public const string RequestContextParamsConstructor_Url = "https://github.com/modelcontextprotocol/csharp-sdk/blob/main/docs/list-of-diagnostics.md#obsolete-apis";
3232

3333
public const string EnableLegacySse_DiagnosticId = "MCP9004";
3434
public const string EnableLegacySse_Message = "Legacy SSE transport has no built-in request backpressure and should only be used with completely trusted clients in isolated processes. Use Streamable HTTP instead.";
@@ -38,7 +38,7 @@ internal static class Obsoletions
3838
// deprecation. They share one diagnostic ID (MCP9005) so consumers can opt out with a single
3939
// suppression, while the feature-specific messages keep the diagnostics distinguishable.
4040
public const string Deprecated_DiagnosticId = "MCP9005";
41-
public const string Deprecated_Url = "https://github.com/modelcontextprotocol/csharp-sdk/blob/main/docs/list-of-diagnostics.md#mcp9005";
41+
public const string Deprecated_Url = "https://github.com/modelcontextprotocol/csharp-sdk/blob/main/docs/list-of-diagnostics.md#obsolete-apis";
4242
public const string DeprecatedRoots_Message = "The Roots feature is deprecated as of specification version 2026-07-28 and may be removed in a future version. See SEP-2577 for more information.";
4343
public const string DeprecatedSampling_Message = "The Sampling feature is deprecated as of specification version 2026-07-28 and may be removed in a future version. See SEP-2577 for more information.";
4444
public const string DeprecatedLogging_Message = "The Logging feature is deprecated as of specification version 2026-07-28 and may be removed in a future version. See SEP-2577 for more information.";

0 commit comments

Comments
 (0)