Repository navigation
Bump ModelContextProtocol and 3 others - #299
Open
dependabot[bot] wants to merge 1 commit into
Open
dependabot[bot] wants to merge 1 commit into
dependabot[bot] wants to merge 1 commit into
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-requirednullproperties 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
annotationsand resource links withiconsfailed to serialize or deserialize. They threwInvalidOperationException: 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
AnnotationsorIconsfrom 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.DefaultOptionsno longer omitsnullvalues. User-defined data serialized with those options now includesnullmembers. That data includes tool return values andstructuredContent, tool arguments sent by clients, and data serialized with copies ofDefaultOptions. Previously, a nullable member that the generatedoutputSchemalisted asrequiredwas dropped when it wasnull. A client that validated the result against that schema then rejected it.A tool that uses
UseStructuredContent = trueand returnsnew Order("42", null)forpublic record Order(string Id, string? Note):Before (2.4.0):
noteis omitted, so the result doesn't conform to the tool's ownoutputSchema.After (2.4.1):
noteis written asnull, so the result conforms to the schema.The same applies to
nullmembers of objects that clients pass as tool arguments. For afilterargument of typerecord 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-requirednullproperties 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
annotationsand resource links withiconsfailed to serialize or deserialize. They threwInvalidOperationException: 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
AnnotationsorIconsfrom 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.DefaultOptionsno longer omitsnullvalues. User-defined data serialized with those options now includesnullmembers. That data includes tool return values andstructuredContent, tool arguments sent by clients, and data serialized with copies ofDefaultOptions. Previously, a nullable member that the generatedoutputSchemalisted asrequiredwas dropped when it wasnull. A client that validated the result against that schema then rejected it.A tool that uses
UseStructuredContent = trueand returnsnew Order("42", null)forpublic record Order(string Id, string? Note):Before (2.4.0):
noteis omitted, so the result doesn't conform to the tool's ownoutputSchema.After (2.4.1):
noteis written asnull, so the result conforms to the schema.The same applies to
nullmembers of objects that clients pass as tool arguments. For afilterargument of typerecord 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 rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore <dependency name> major versionwill 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 versionwill 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