chore: upgrade rmcp to 0.6.0 (#4243)

This commit is contained in:
Alex Hancock
2025-08-21 10:20:48 -04:00
committed by GitHub
parent ff5814f779
commit 5d7e6d0cb1
4 changed files with 8 additions and 8 deletions
@@ -95,7 +95,7 @@ impl McpClientTrait for MockClient {
if let Some(handler) = self.handlers.get(name) {
match handler(&arguments) {
Ok(content) => Ok(CallToolResult {
content: Some(content),
content: content,
is_error: None,
structured_content: None,
}),
+2 -2
View File
@@ -786,7 +786,7 @@ impl ExtensionManager {
client_guard
.call_tool(&tool_name, arguments, cancellation_token)
.await
.map(|call| call.content.unwrap_or_default())
.map(|call| call.content)
.map_err(|e| ErrorData::new(ErrorCode::INTERNAL_ERROR, e.to_string(), None))
};
@@ -1046,7 +1046,7 @@ mod tests {
) -> Result<CallToolResult, Error> {
match name {
"tool" | "test__tool" | "available_tool" | "hidden_tool" => Ok(CallToolResult {
content: Some(vec![]),
content: vec![],
is_error: None,
structured_content: None,
}),