The current cloudscript example works for .net6 with in-process Azure functions. However, it does not work with isolated process model.
The in-process model has been deprecated and Microsoft recommends using isolated model. Also, it is the only way to use .net 8 and future .net versions in Azure functions.
Please update the examples and the SDK to support the isolated process model. In particular, the FunctionContext.Create function should be overloaded to support HttpRequest.
Several questions have been posted about this: