Skip to content

Commit b7a3c07

Browse files
Fix sourcegen related failure occurring in net9.0
1 parent 8fd64d7 commit b7a3c07

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • tests/ModelContextProtocol.ConformanceServer

tests/ModelContextProtocol.ConformanceServer/Program.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ public static async Task MainAsync(string[] args, ILoggerProvider? loggerProvide
9494

9595
app.MapMcp();
9696

97-
app.MapGet("/health", () => TypedResults.Ok("Healthy"));
97+
// Return plain string to avoid JSON serialization issues when reflection is disabled
98+
app.MapGet("/health", () => "Healthy");
9899

99100
await app.RunAsync(cancellationToken);
100101
}

0 commit comments

Comments
 (0)