The following syntax works. In addition, the access level of the token needs to be Reporter or higher.
uvx --from git+https://gitlab_username:[email protected] tool