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
Generated
+4 -4
View File
@@ -5399,9 +5399,9 @@ dependencies = [
[[package]] [[package]]
name = "rmcp" name = "rmcp"
version = "0.5.0" version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2faf35b7d3c4b7f8c21c45bb014011b32a0ce6444bf6094da04daab01a8c3c34" checksum = "bb21cd3555f1059f27e4813827338dec44429a08ecd0011acc41d9907b160c00"
dependencies = [ dependencies = [
"base64 0.22.1", "base64 0.22.1",
"chrono", "chrono",
@@ -5427,9 +5427,9 @@ dependencies = [
[[package]] [[package]]
name = "rmcp-macros" name = "rmcp-macros"
version = "0.5.0" version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ad9720d9d2a943779f1dc3d47fa9072c7eeffaff4e1a82f67eb9f7ea52696091" checksum = "ab5d16ae1ff3ce2c5fd86c37047b2869b75bec795d53a4b1d8257b15415a2354"
dependencies = [ dependencies = [
"darling 0.21.0", "darling 0.21.0",
"proc-macro2", "proc-macro2",
+1 -1
View File
@@ -14,7 +14,7 @@ description = "An AI agent"
uninlined_format_args = "allow" uninlined_format_args = "allow"
[workspace.dependencies] [workspace.dependencies]
rmcp = { version = "0.5.0", features = ["schemars", "auth"] } rmcp = { version = "0.6.0", features = ["schemars", "auth"] }
# Patch for Windows cross-compilation issue with crunchy # Patch for Windows cross-compilation issue with crunchy
[patch.crates-io] [patch.crates-io]
@@ -95,7 +95,7 @@ impl McpClientTrait for MockClient {
if let Some(handler) = self.handlers.get(name) { if let Some(handler) = self.handlers.get(name) {
match handler(&arguments) { match handler(&arguments) {
Ok(content) => Ok(CallToolResult { Ok(content) => Ok(CallToolResult {
content: Some(content), content: content,
is_error: None, is_error: None,
structured_content: None, structured_content: None,
}), }),
+2 -2
View File
@@ -786,7 +786,7 @@ impl ExtensionManager {
client_guard client_guard
.call_tool(&tool_name, arguments, cancellation_token) .call_tool(&tool_name, arguments, cancellation_token)
.await .await
.map(|call| call.content.unwrap_or_default()) .map(|call| call.content)
.map_err(|e| ErrorData::new(ErrorCode::INTERNAL_ERROR, e.to_string(), None)) .map_err(|e| ErrorData::new(ErrorCode::INTERNAL_ERROR, e.to_string(), None))
}; };
@@ -1046,7 +1046,7 @@ mod tests {
) -> Result<CallToolResult, Error> { ) -> Result<CallToolResult, Error> {
match name { match name {
"tool" | "test__tool" | "available_tool" | "hidden_tool" => Ok(CallToolResult { "tool" | "test__tool" | "available_tool" | "hidden_tool" => Ok(CallToolResult {
content: Some(vec![]), content: vec![],
is_error: None, is_error: None,
structured_content: None, structured_content: None,
}), }),