Skip to content

Make McpJsonUtilities public and remove IVT to sample#5

Merged
eiriktsarpalis merged 1 commit into
mainfrom
mcpjsonutilities
Mar 20, 2025
Merged

Make McpJsonUtilities public and remove IVT to sample#5
eiriktsarpalis merged 1 commit into
mainfrom
mcpjsonutilities

Conversation

@stephentoub

Copy link
Copy Markdown
Contributor

Also adds in the same encoder used by AIJsonUtilities.

Also adds in the same encoder used by AIJsonUtilities.
@stephentoub stephentoub requested review from eiriktsarpalis and halter73 and removed request for eiriktsarpalis and halter73 March 19, 2025 22:08
// Otherwise, use the source-generated options to enable trimming and Native AOT.
JsonSerializerOptions options;

if (JsonSerializer.IsReflectionEnabledByDefault)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think this is a good stopgap, but longer term we should look at using the source generator everywhere. Whether we can do this or not is a function of allowing user-defined types to be inserted in the DTOs. I don't believe that would be necessary -- the protocol should only deal with closed types.

@eiriktsarpalis eiriktsarpalis merged commit 6b8c288 into main Mar 20, 2025
@eiriktsarpalis eiriktsarpalis deleted the mcpjsonutilities branch March 20, 2025 14:00
PranavSenthilnathan added a commit to PranavSenthilnathan/csharp-sdk that referenced this pull request Jun 11, 2026
- Docs: clarify IMcpTaskStore strong-consistency contract (SEP-2663 modelcontextprotocol#306)
  on CreateTaskAsync and document the singleton requirement under stateless
  HTTP; extend tasks.md custom-store requirements list to match (modelcontextprotocol#5, modelcontextprotocol#7).
- Tests: add RootsTool fixture + E2E test covering server-initiated
  roots/list redirection through the task store (modelcontextprotocol#6); add two E2E tests
  for SendTaskStatusNotificationAsync covering the Working/Completed and
  Failed branches (modelcontextprotocol#9); add McpServerTasksNoStoreTests pinning the silent
  sync fallback when a client opts into tasks but no TaskStore is
  configured (modelcontextprotocol#8).
- Rename CompletedTaskResult.TaskResult and CompletedTaskNotificationParams.TaskResult
  to Result for consistency with the JSON wire name. Wire format unchanged.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants