I am currently giving Cursor another try to code Elixir apps. Although I am quite happy with how it evolved, I kept getting annoyed by the agent adding outdated packages, which I manually had to set to the latest version from hex.pm.
To solve this, I wrote a tiny MCP server, which allows the editor to retrieve the correct versions before adding packages to the project, and it works quite well:
If you have the same issue and want to give it a try, I deployed it to fly: https://hex-mcp.9elements.com/
Be sure to activate agent mode; at least for me, Cursor seems to ignore this function when in normal chat or composer mode.