From b37e3e116f55faa2631d8fc06c58e30901419d6a Mon Sep 17 00:00:00 2001 From: SWangHash <88996709+SWangHash@users.noreply.github.com> Date: Mon, 27 Jul 2026 16:21:36 +0800 Subject: [PATCH] [fix] fix the reqwewst --- Cargo.toml | 3 ++- src/apps/ohos/.opencode/opencode.json | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 src/apps/ohos/.opencode/opencode.json diff --git a/Cargo.toml b/Cargo.toml index 7085972944..44dbb9832e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -117,7 +117,7 @@ encoding_rs = "0.8.35" url = "2" # HTTP client -reqwest = { version = "0.12", default-features = false, features = ["native-tls", "rustls-tls-native-roots", "json", "stream", "multipart"] } +reqwest = { version = "0.13.4", default-features = false, features = ["native-tls", "rustls", "json", "stream", "multipart", "query", "form"] } # Debug Log HTTP Server axum = { version = "0.8", features = ["json", "ws"] } @@ -248,6 +248,7 @@ rmcp = { version = "1.7", default-features = false, features = [ "base64", "client", "elicitation", + "reqwest", "macros", "schemars", "server", diff --git a/src/apps/ohos/.opencode/opencode.json b/src/apps/ohos/.opencode/opencode.json new file mode 100644 index 0000000000..03806ccc55 --- /dev/null +++ b/src/apps/ohos/.opencode/opencode.json @@ -0,0 +1,16 @@ +{ + "mcp": { + "deveco-mcp": { + "type": "local", + "command": [ + "devecocli", + "serve", + "mcp" + ], + "environment": { + "PROJECT_PATH": "D:\\workspace\\wc\\github\\BitFun-OHOS\\src\\apps\\ohos" + }, + "enabled": true + } + } +} \ No newline at end of file