-
Notifications
You must be signed in to change notification settings - Fork 24
Update to new MCP spec version #193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
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
PR HealthChangelog Entry ✔️
Changes to files need to be accounted for in their respective changelogs. |
jakemac53
reviewed
Jun 26, 2025
jakemac53
reviewed
Jun 26, 2025
jakemac53
approved these changes
Jun 27, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
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.
Description
This updates the
dart_mcp
package to the latest MCP spec,2025-06-18
.New Features
Elicitation: A new elicitation/create request allows the server to ask the client for structured information from the user. This is useful for scenarios where a tool needs more information to proceed. The client can respond with the requested information, or the user can accept, reject, or cancel the request.
Structured Tool Output: Tools can now declare an outputSchema, and the callTool result can include
structuredContent
that conforms to this schema. This allows for more robust and predictable tool interactions.Resource Links: A new
ResourceLink
content type can be returned from tools, allowing them to provide links to resources that may not be available through the resources/list request.API Improvements
Titles for UI: Many objects in the API now have an optional
title
field. This provides a human-readable name that can be used in user interfaces, separate from the programmatic name. This has been added toImplementation
,Prompt
,PromptArgument
,Resource
,ResourceTemplate
, andTool
.Completion Context: The
completions/complete
request now accepts acontext
object, which can include previously resolved arguments from a URI template or prompt. This allows for more context-aware completions.Metadata: A
_meta
field has been added to many objects to allow for passing arbitrary metadata with requests and responses.Last Modified Annotation: A
lastModified
timestamp can now be included inAnnotations
to indicate when the data was last updated.Other Changes
ResourceReference
has been renamed toResourceTemplateReference
for clarity. The old name is preserved as a deprecatedtypedef
.Tests