After updating the TexLive installation on macOS, I got the following error when trying to build a ConTeXt project.

resolvers       | caches | path '/Users/kevin/.texlive2023/texmf-var' created
mtxrun          | unknown script 'mtx-context.lua' or 'mtx-mtx-context.lua'

To fix the error, run mtxrun --generate which will generate the file database.

References