// MCP JSON-RPC messages from an agent (read-only mode: no file or daemon access). #include "../mcp/mcp_server.hpp" #include #include extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { static strawberry::mcp::McpServer server({ .socket_path = "/nonexistent/strawberry-fuzz.sock", .db_path_override = "/nonexistent/strawberry-fuzz.db", .read_only = true, }); const auto message = nlohmann::json::parse(data, data + size, nullptr, false); if (message.is_discarded()) return 0; if (const auto reply = server.handle(message)) { (void) strawberry::mcp::McpServer::dump(*reply); } return 0; }