Use Cursor with AI Workbench#
Overview#
- The Cursor integration streamlines attaching Cursor to a project container.
Adding Cursor to a project puts a Cursor option in the Application Launcher dropdown. Launching Cursor starts the project container and attaches a Cursor window to the container, regardless of whether it’s local or remote.
- AI Workbench will create a
.cursor/rules/ai-workbenchfolder to the repository. Workbench adds preconfigured
mdcfiles with specific guidance about features and conventions. This makes Cursor “Workbench aware” so you don’t need to give Cursor any Workbench guidance. Things should “just work”.- The Git Changes tab shows you exactly what Cursor creates and edits, file by file.
The Project Tab > Git Changes feature lets you inspect file changes from the last commit, including environment and build changes. So if you make commits before running the agent, Workbench gives you visibility and control over what it’s doing to your files.
- Launching Cursor in a project container is different for remote only mode.
The current integration uses a container runtime to setup a socket for Cursor to access the container. This works in full local mode because there’s an installed container runtime but can fail for remote only mode.
We will fix this in a future release, but you can follow the Manual Steps section below for remote only mode.
Prerequisites: Full Local Install#
- For the integration to work out of hte box, you must have done the following steps.
Install AI Workbench in full local mode. See here <full-local-install>.
Install the Cursor desktop application. Go to the Cursor site and download the version for your operating system.
Add Cursor to a Project#
- Step One: Open the project that you want to add Cursor to.
Select Locations Manager > Location Card > Project Card
- Step Two: Add Cursor to the project.
Select Project Tab > Project Container > Apps (LHS) > Add
Select Cursor
Success: The modal disappears and the Application Launcher shows Cursor in the drop down.
Open Cursor in a Project#
- Once Cursor is added to the project, open it using the Application Launcher.
This will work for local projects and remote projects.
Select Project Tab > Application Launcher > Cursor
Wait for the project container to start and the Cursor server to be installed
There is a timeout on the application launch, so you may see an error message if it takes a while install the Cursor server
You can dismiss the error message and the Cursor window will open once the server is installed
Then use Cursor normally.
Manual Steps: Remote Only Mode#
Use this process if you have the Desktop App in remote only mode.
- Step One: Install Cursor locally.
See above.
- Step Two: Add Cursor to the project.
See above.
- Step Three: Start the Project container.
Select Project Tab > Project Dashboard > Project Container > Start
Wait for the project container to start
- Step Four: Open Cursor and connect it to the remote.
Open a new Cursor window > Select Connect via SSH
Select the location name or IP from the options provided in the top search bar
Wait for the connection to be made
- Step Five: Connect Cursor to the running project container.
Then go to Search Bar (Top) > Dev Containers: Attach to a Running Container
Hit Enter and Select Drop Down > Select the container name > Hit Enter
- Step Six: Open the project repository.
Select Cursor window > Open Folder (LHS)
Locate the project folder and select it