// SPDX-FileCopyrightText: 2026 GXDE OS Team // SPDX-License-Identifier: GPL-3.0-or-later // // Headless MCP smoke test: starts the given command as an MCP server, waits for // tools/list and calls the first tool once. #include #include #include #include #include "chat/mcpclient.h" int main(int argc, char *argv[]) { QCoreApplication app(argc, argv); QTextStream out(stdout); if (argc < 3) { out << "usage: " << argv[0] << "