rename withSystemTools to withUserTools

This commit is contained in:
Terrence
2025-09-11 04:22:33 +08:00
parent 57c2c64047
commit 469ee2d92a

View File

@@ -327,9 +327,9 @@ void McpServer::ParseMessage(const cJSON* json) {
if (cJSON_IsString(cursor)) { if (cJSON_IsString(cursor)) {
cursor_str = std::string(cursor->valuestring); cursor_str = std::string(cursor->valuestring);
} }
auto with_system_tools = cJSON_GetObjectItem(params, "withSystemTools"); auto with_user_tools = cJSON_GetObjectItem(params, "withUserTools");
if (cJSON_IsBool(with_system_tools)) { if (cJSON_IsBool(with_user_tools)) {
list_user_only_tools = with_system_tools->valueint == 1; list_user_only_tools = with_user_tools->valueint == 1;
} }
} }
GetToolsList(id_int, cursor_str, list_user_only_tools); GetToolsList(id_int, cursor_str, list_user_only_tools);