Skip to content

package:dart_mcp v0.5.0

Latest

Choose a tag to compare

@jakemac53 jakemac53 released this 02 Mar 20:45
· 4 commits to main since this release
f2748d8
  • Initial support for protocol version 2025-11-25.
    • Added support for Icons in Implementation, Tool, Resource, ResourceTemplate, and Prompt.
    • Added support for ToolChoice in sampling CreateMessageRequest.
    • Added support for URL-based elicitations in ElicitRequest.
      • Separated ElicitationSupport into ElicitationFormSupport and
        ElicitationUrlSupport mixins, which will affect which capabilities
        your server advertises. The original ElicitationSupport mixin is now
        deprecated (and is an alias for ElicitationFormSupport).
      • Added onElicitationComplete extension getter to ElicitRequest, which
        will listen for notifications/elicitation/complete notifications.
      • If a tool call fails with the urlElicitationRequired error code, and
        the client supports URL based elicitations, the client will automatically
        handle the elicitation and retry the tool call if the elicitation
        succeeds.
    • Added an McpErrorCodes namespace for MCP error codes. For now only
      contains the urlElicitationRequired error code.
    • Added examples for URL based elicitations, including handling
      urlElicitationRequired errors.
    • Added description field to Implementation.
    • Does not add support for Tasks yet.
    • Added support for EnumSchema subtypes, matching the spec. This includes
      multi select enums and enums with titles. Validation is also supported.
    • Added Meta? meta param to ElicitRequest.
  • Added ConstSchema type for constant values, with validation.
  • BREAKING:
    • Change many fields of ResourceLink to be nullable, and their associated
      parameters to be optional. This brings us in line with the specification.
    • The WithElicitationHandler interface is now private and implemented by
      the ElicitationFormSupport and ElicitationUrlSupport mixins.
    • Added a required ServerConnection server parameter to the
      ElicitationSupport.handleElicitation method.
    • ElicitRequest.requestedSchema is now nullable (for url mode).
    • EnumSchema is now a union type with 4 subtypes, matching the spec changes.