fix(time): Fix McpError constructor usage in time server
#3222
+645
−185
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.
Motivation and Context
Fixes CI failures in PR #3220.
PR #3220 updated
mcplibrary from 1.0.0 to 1.23.0, which caused test failures due to a breaking change inMcpErrorconstructor API.The
McpErrorconstructor now expects anErrorDataobject instead of a plain string message. This commit fixes the usage inget_zoneinfo()function to useErrorData(code=INVALID_PARAMS, message=...).Also updates
mcpdependency to >=1.23.0 in pyproject.toml to ensure compatibility with the new API.How Has This Been Tested?
Automated tests were run against both the old and new versions of the
mcplibrary.Breaking Changes
None.
Types of changes
Checklist