Skip to content

Bump ModelContextProtocol and 3 others - #299

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/nuget/other-packages-099cfcb4d8
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/nuget/other-packages-099cfcb4d8

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Dec 5, 2026

Copy link
Copy Markdown
Contributor

Updated ModelContextProtocol from 2.4.0 to 2.4.1.

Release notes

Sourced from ModelContextProtocol's releases.

2.4.1

Release v2.4.1 fixes three serialization bugs in ModelContextProtocol.Core. Tool results and client responses containing annotated content blocks failed to serialize or deserialize. Schema-required null properties were omitted from structured content. Image and audio data in sampling messages was base64-encoded twice. Each fix corrects the JSON that the SDK writes or accepts. If your code compensated for the incorrect behavior, update it to match the corrected serialization. Each entry below includes before-and-after payloads.

What's Changed

  • Fix serialization of annotated content blocks in tool results #​2039 by @​tarekgh

    In 2.4.0, content blocks with annotations and resource links with icons failed to serialize or deserialize. They threw InvalidOperationException: Cannot insert the values of 'TypeInfoResolver' or 'TypeInfoResolverChain' to 'TypeInfoResolverChain'. Servers returned a generic error instead of the tool result, and clients failed to read results that contained annotations. Version 2.4.1 restores the 2.3.1 behavior.

    A tool that returns new TextContentBlock { Text = "x", Annotations = new Annotations { Audience = [Role.User] } }:

    Before (2.4.0): the client receives an error instead of the result.

    { "jsonrpc": "2.0", "id": 1, "error": { "code": -32603, "message": "An error occurred." } }

    After (2.4.1): the tool result is returned.

    { "jsonrpc": "2.0", "id": 1, "result": { "content": [ { "type": "text", "text": "x", "annotations": { "audience": [ "user" ] } } ] } }

    Clients also deserialize results like this one again. In 2.4.0, the same exception occurred when they read the result:

    { "content": [ { "type": "text", "text": "x", "annotations": { "audience": [ "user" ] } } ] }

    Adapting your code: If you removed Annotations or Icons from tool results, stayed on 2.3.1, or caught and retried around this exception, you can remove those workarounds.

  • Write null user-defined properties by default #​2067 by @​halter73 (co-authored by @​Copilot)

    McpJsonUtilities.DefaultOptions no longer omits null values. User-defined data serialized with those options now includes null members. That data includes tool return values and structuredContent, tool arguments sent by clients, and data serialized with copies of DefaultOptions. Previously, a nullable member that the generated outputSchema listed as required was dropped when it was null. A client that validated the result against that schema then rejected it.

    A tool that uses UseStructuredContent = true and returns new Order("42", null) for public record Order(string Id, string? Note):

    "outputSchema": { "type": "object", "properties": { "id": { "type": "string" }, "note": { "type": [ "string", "null" ] } }, "required": [ "id", "note" ] }

    Before (2.4.0): note is omitted, so the result doesn't conform to the tool's own outputSchema.

    "structuredContent": { "id": "42" }

    After (2.4.1): note is written as null, so the result conforms to the schema.

    "structuredContent": { "id": "42", "note": null }

    The same applies to null members of objects that clients pass as tool arguments. For a filter argument of type record Filter(string City, string? Units):

    Before (2.4.0): the server received "arguments": { "filter": { "city": "Seattle" } }.
    ... (truncated)

Commits viewable in compare view.

Updated ModelContextProtocol.AspNetCore from 2.4.0 to 2.4.1.

Release notes

Sourced from ModelContextProtocol.AspNetCore's releases.

2.4.1

Release v2.4.1 fixes three serialization bugs in ModelContextProtocol.Core. Tool results and client responses containing annotated content blocks failed to serialize or deserialize. Schema-required null properties were omitted from structured content. Image and audio data in sampling messages was base64-encoded twice. Each fix corrects the JSON that the SDK writes or accepts. If your code compensated for the incorrect behavior, update it to match the corrected serialization. Each entry below includes before-and-after payloads.

What's Changed

  • Fix serialization of annotated content blocks in tool results #​2039 by @​tarekgh

    In 2.4.0, content blocks with annotations and resource links with icons failed to serialize or deserialize. They threw InvalidOperationException: Cannot insert the values of 'TypeInfoResolver' or 'TypeInfoResolverChain' to 'TypeInfoResolverChain'. Servers returned a generic error instead of the tool result, and clients failed to read results that contained annotations. Version 2.4.1 restores the 2.3.1 behavior.

    A tool that returns new TextContentBlock { Text = "x", Annotations = new Annotations { Audience = [Role.User] } }:

    Before (2.4.0): the client receives an error instead of the result.

    { "jsonrpc": "2.0", "id": 1, "error": { "code": -32603, "message": "An error occurred." } }

    After (2.4.1): the tool result is returned.

    { "jsonrpc": "2.0", "id": 1, "result": { "content": [ { "type": "text", "text": "x", "annotations": { "audience": [ "user" ] } } ] } }

    Clients also deserialize results like this one again. In 2.4.0, the same exception occurred when they read the result:

    { "content": [ { "type": "text", "text": "x", "annotations": { "audience": [ "user" ] } } ] }

    Adapting your code: If you removed Annotations or Icons from tool results, stayed on 2.3.1, or caught and retried around this exception, you can remove those workarounds.

  • Write null user-defined properties by default #​2067 by @​halter73 (co-authored by @​Copilot)

    McpJsonUtilities.DefaultOptions no longer omits null values. User-defined data serialized with those options now includes null members. That data includes tool return values and structuredContent, tool arguments sent by clients, and data serialized with copies of DefaultOptions. Previously, a nullable member that the generated outputSchema listed as required was dropped when it was null. A client that validated the result against that schema then rejected it.

    A tool that uses UseStructuredContent = true and returns new Order("42", null) for public record Order(string Id, string? Note):

    "outputSchema": { "type": "object", "properties": { "id": { "type": "string" }, "note": { "type": [ "string", "null" ] } }, "required": [ "id", "note" ] }

    Before (2.4.0): note is omitted, so the result doesn't conform to the tool's own outputSchema.

    "structuredContent": { "id": "42" }

    After (2.4.1): note is written as null, so the result conforms to the schema.

    "structuredContent": { "id": "42", "note": null }

    The same applies to null members of objects that clients pass as tool arguments. For a filter argument of type record Filter(string City, string? Units):

    Before (2.4.0): the server received "arguments": { "filter": { "city": "Seattle" } }.
    ... (truncated)

Commits viewable in compare view.

Updated Scalar.AspNetCore from 3.4.2 to 3.4.3.

Release notes

Sourced from Scalar.AspNetCore's releases.

No release notes found for this version range.

Commits viewable in compare view.

Updated TUnit from 1.90.3 to 1.90.5.

Release notes

Sourced from TUnit's releases.

1.90.5

What's Changed

Other Changes

Dependencies

Full Changelog: thomhurst/TUnit@v1.90.4...v1.90.5

1.90.4

What's Changed

Other Changes

Dependencies

Full Changelog: thomhurst/TUnit@v1.90.3...v1.90.4

Commits viewable in compare view.

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions

Bumps ModelContextProtocol from 2.4.0 to 2.4.1
Bumps ModelContextProtocol.AspNetCore from 2.4.0 to 2.4.1
Bumps Scalar.AspNetCore from 3.4.2 to 3.4.3
Bumps TUnit from 1.90.3 to 1.90.5

---
updated-dependencies:
- dependency-name: ModelContextProtocol
  dependency-version: 2.4.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: other-packages
- dependency-name: ModelContextProtocol.AspNetCore
  dependency-version: 2.4.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: other-packages
- dependency-name: Scalar.AspNetCore
  dependency-version: 3.4.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: other-packages
- dependency-name: TUnit
  dependency-version: 1.90.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: other-packages
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added .NET Pull requests that update .NET code dependencies Pull requests that update a dependency file labels Dec 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file .NET Pull requests that update .NET code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants