If Magit 4.4+ is installed, then the context menu function anju-context-menu-vc will offer Magit commands depending on context. If the context menu is raised in a file buffer, then the menu item “Magit Dispatch…” (magit-file-dispatch) is shown, otherwise “Magit Status” (magit-status).