File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 6
6
- Add new ` package:dart_mcp/stdio.dart ` library with a ` stdioChannel ` utility
7
7
for creating a stream channel that separates messages by newlines.
8
8
- Added more examples.
9
+ - Deprecated the ` WithElicitationHandler ` interface - the method this required
10
+ is now defined directly on the ` ElicitationSupport ` mixin which matches the
11
+ pattern used by other mixins in this package.
9
12
- Change the ` schema ` parameter for elicitation requests to an ` ObjectSchema ` to
10
13
match the spec.
11
14
- Deprecate the ` Elicitations ` server capability, this doesn't exist in the spec.
Original file line number Diff line number Diff line change 4
4
5
5
part of 'client.dart' ;
6
6
7
- /// The interface for handling elicitation requests.
8
- ///
9
- /// Any client using [ElicitationSupport] must implement this interface.
7
+ @Deprecated (
8
+ 'This interface is going away, the method will exist directly on the '
9
+ 'ElicitationSupport mixin instead' ,
10
+ )
10
11
abstract interface class WithElicitationHandler {
11
12
FutureOr <ElicitResult > handleElicitation (ElicitRequest request);
12
13
}
13
14
14
15
/// A mixin that adds support for the `elicitation` capability to an
15
16
/// [MCPClient] .
17
+ // ignore: deprecated_member_use_from_same_package
16
18
base mixin ElicitationSupport on MCPClient implements WithElicitationHandler {
17
19
@override
18
20
void initialize () {
19
21
capabilities.elicitation ?? = ElicitationCapability ();
20
22
super .initialize ();
21
23
}
24
+
25
+ /// The method for handling elicitation requests.
26
+ ///
27
+ /// Any client using [ElicitationSupport] must implement this interface.
28
+ @override
29
+ FutureOr <ElicitResult > handleElicitation (ElicitRequest request);
22
30
}
You can’t perform that action at this time.
0 commit comments