From 469ee2d92a612bca3b79dd958dbe2236ae15947d Mon Sep 17 00:00:00 2001 From: Terrence Date: Thu, 11 Sep 2025 04:22:33 +0800 Subject: [PATCH] rename withSystemTools to withUserTools --- main/mcp_server.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main/mcp_server.cc b/main/mcp_server.cc index b779711b..85fc4abc 100644 --- a/main/mcp_server.cc +++ b/main/mcp_server.cc @@ -327,9 +327,9 @@ void McpServer::ParseMessage(const cJSON* json) { if (cJSON_IsString(cursor)) { cursor_str = std::string(cursor->valuestring); } - auto with_system_tools = cJSON_GetObjectItem(params, "withSystemTools"); - if (cJSON_IsBool(with_system_tools)) { - list_user_only_tools = with_system_tools->valueint == 1; + auto with_user_tools = cJSON_GetObjectItem(params, "withUserTools"); + if (cJSON_IsBool(with_user_tools)) { + list_user_only_tools = with_user_tools->valueint == 1; } } GetToolsList(id_int, cursor_str, list_user_only_tools);