Skip to content

Comments

Fix System.String JSON serialization error in MCP Remote SSE handler#2713

Merged
Mpdreamz merged 1 commit intomainfrom
fix/mcp-remote-json-serialization
Feb 16, 2026
Merged

Fix System.String JSON serialization error in MCP Remote SSE handler#2713
Mpdreamz merged 1 commit intomainfrom
fix/mcp-remote-json-serialization

Conversation

@Mpdreamz
Copy link
Member

Register McpJsonUtilities type resolver with ASP.NET Core's HTTP JSON
options. CreateSlimBuilder disables reflection-based JSON, causing
Results.BadRequest(string) in the MCP SDK's legacy SSE handler to fail
with missing TypeInfo for System.String.

Register McpJsonUtilities type resolver with ASP.NET Core's HTTP JSON
options. CreateSlimBuilder disables reflection-based JSON, causing
Results.BadRequest(string) in the MCP SDK's legacy SSE handler to fail
with missing TypeInfo for System.String.
@Mpdreamz Mpdreamz requested a review from a team as a code owner February 16, 2026 20:28
@Mpdreamz Mpdreamz requested a review from reakaleek February 16, 2026 20:28
@Mpdreamz Mpdreamz added the fix label Feb 16, 2026
@Mpdreamz Mpdreamz self-assigned this Feb 16, 2026
Copy link
Member

@reakaleek reakaleek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#2712

:D closing mine

@Mpdreamz Mpdreamz merged commit b707d1b into main Feb 16, 2026
31 of 32 checks passed
@Mpdreamz Mpdreamz deleted the fix/mcp-remote-json-serialization branch February 16, 2026 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants