File tree Expand file tree Collapse file tree 4 files changed +8
-2
lines changed Expand file tree Collapse file tree 4 files changed +8
-2
lines changed Original file line number Diff line number Diff line change
1
+ ## 0.6.1
2
+
3
+ - Fix issue with CallToolResult not including metadata
4
+
1
5
## 0.6.0
2
6
3
7
- Add ToolInputSchema and ToolOutputSchema support in server.tool()
Original file line number Diff line number Diff line change @@ -745,7 +745,8 @@ abstract class Protocol {
745
745
746
746
return completer.future.then ((response) {
747
747
try {
748
- return resultFactory (response.result);
748
+ return resultFactory (
749
+ response.toJson ()['result' ] as Map <String , dynamic >);
749
750
} catch (e, s) {
750
751
throw McpError (
751
752
ErrorCode .internalError.value,
Original file line number Diff line number Diff line change @@ -1980,6 +1980,7 @@ class CallToolResult implements BaseResultData {
1980
1980
1981
1981
// Content may optionally be included even if structured based on the unstructuredCompatibility flag.
1982
1982
result['content' ] = content.map ((c) => c.toJson ()).toList ();
1983
+ result['meta' ] = meta;
1983
1984
1984
1985
// Structured or unstructured?
1985
1986
// Error can only be included if unstructured.
Original file line number Diff line number Diff line change 1
1
name : mcp_dart
2
2
description : Dart Implementation of Model Context Protocol (MCP) SDK.
3
- version : 0.6.0
3
+ version : 0.6.1
4
4
repository : https://github.com/leehack/mcp_dart
5
5
6
6
environment :
You can’t perform that action at this time.
0 commit comments