fix: upgraded to newer rmcp version to get native-tls support

This commit is contained in:
2026-04-20 13:50:34 -06:00
parent f7fb249d43
commit 8f7d3bd13c
3 changed files with 11 additions and 12 deletions
Generated
+8 -4
View File
@@ -4467,15 +4467,19 @@ dependencies = [
"http-body 1.0.1", "http-body 1.0.1",
"http-body-util", "http-body-util",
"hyper 1.9.0", "hyper 1.9.0",
"hyper-tls",
"hyper-util", "hyper-util",
"js-sys", "js-sys",
"log", "log",
"native-tls",
"percent-encoding", "percent-encoding",
"pin-project-lite", "pin-project-lite",
"rustls-pki-types",
"serde", "serde",
"serde_json", "serde_json",
"sync_wrapper", "sync_wrapper",
"tokio", "tokio",
"tokio-native-tls",
"tokio-util", "tokio-util",
"tower", "tower",
"tower-http", "tower-http",
@@ -4528,9 +4532,9 @@ dependencies = [
[[package]] [[package]]
name = "rmcp" name = "rmcp"
version = "0.16.0" version = "1.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cc4c9c94680f75470ee8083a0667988b5d7b5beb70b9f998a8e51de7c682ce60" checksum = "67d69668de0b0ccd9cc435f700f3b39a7861863cf37a15e1f304ea78688a4826"
dependencies = [ dependencies = [
"async-trait", "async-trait",
"base64", "base64",
@@ -4555,9 +4559,9 @@ dependencies = [
[[package]] [[package]]
name = "rmcp-macros" name = "rmcp-macros"
version = "0.16.0" version = "1.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "90c23c8f26cae4da838fbc3eadfaecf2d549d97c04b558e7bd90526a9c28b42a" checksum = "48fdc01c81097b0aed18633e676e269fefa3a78ec1df56b4fe597c1241b92025"
dependencies = [ dependencies = [
"darling 0.23.0", "darling 0.23.0",
"proc-macro2", "proc-macro2",
+1 -1
View File
@@ -89,7 +89,7 @@ duct = "1.0.0"
argc = "1.23.0" argc = "1.23.0"
strum_macros = "0.27.2" strum_macros = "0.27.2"
indoc = "2.0.6" indoc = "2.0.6"
rmcp = { version = "0.16.0", features = ["client", "transport-child-process", "transport-streamable-http-client-reqwest"] } rmcp = { version = "1.5.0", features = ["client", "transport-child-process", "transport-streamable-http-client-reqwest", "reqwest-native-tls"] }
num_cpus = "1.17.0" num_cpus = "1.17.0"
tree-sitter = "0.26.8" tree-sitter = "0.26.8"
tree-sitter-language = "0.1" tree-sitter-language = "0.1"
+2 -7
View File
@@ -25,7 +25,6 @@ use anyhow::{Context, Result, anyhow};
use bm25::{Document, Language, SearchEngineBuilder}; use bm25::{Document, Language, SearchEngineBuilder};
use rmcp::model::{CallToolRequestParams, CallToolResult}; use rmcp::model::{CallToolRequestParams, CallToolResult};
use serde_json::{Value, json}; use serde_json::{Value, json};
use std::borrow::Cow;
use std::collections::HashMap; use std::collections::HashMap;
use std::sync::Arc; use std::sync::Arc;
@@ -160,12 +159,8 @@ impl McpRuntime {
.cloned() .cloned()
.with_context(|| format!("Invoked MCP server does not exist: {server}"))?; .with_context(|| format!("Invoked MCP server does not exist: {server}"))?;
let request = CallToolRequestParams { let mut request = CallToolRequestParams::new(tool.to_owned());
name: Cow::Owned(tool.to_owned()), request.arguments = arguments.as_object().cloned();
arguments: arguments.as_object().cloned(),
meta: None,
task: None,
};
server_handle.call_tool(request).await.map_err(Into::into) server_handle.call_tool(request).await.map_err(Into::into)
} }