Cursor
Use Conway sandboxes from Cursor.
Give Cursor's AI the ability to create cloud sandboxes, run code, deploy applications, and expose services to the internet.
Setup
Option A: One-Line Setup
If you haven't installed Conway yet, the setup script handles everything -- installs the terminal, creates a wallet, provisions an API key, and configures your tools:
curl -fsSL https://conway.tech/terminal.sh | shThen add Conway to Cursor manually (the setup script doesn't auto-configure Cursor):
- Open Cursor
- Go to Settings (Cmd+, on macOS, Ctrl+, on Windows/Linux)
- Search for "MCP" or navigate to Features > MCP Servers
- Add this configuration:
{
"mcpServers": {
"conway": {
"command": "conway-terminal",
"env": {
"CONWAY_API_KEY": "cnwy_k_..."
}
}
}
}Your API key is in ~/.conway/config.json after running the setup script.
Option B: Manual Setup
If you already have an API key from app.conway.tech:
- Open Cursor
- Go to Settings > Features > MCP Servers
- Add this configuration:
{
"mcpServers": {
"conway": {
"command": "npx",
"args": ["conway-terminal"],
"env": {
"CONWAY_API_KEY": "your-api-key-here"
}
}
}
}Restart Cursor
Restart Cursor to load the MCP configuration.
Verify Integration
In Cursor's AI chat, ask:
"List my cloud sandboxes"
Cursor should invoke the sandbox_list tool.
Example Workflows
Deploy and Test
"Create a sandbox, copy my current project files, install dependencies, and run the tests"
Debug in Isolation
"Create a sandbox and help me reproduce this bug in an isolated environment"
API Development
"Set up a sandbox with Python and FastAPI, create a simple REST API, and expose it on port 8000"
Database Testing
"Create a sandbox, install PostgreSQL, and help me test these SQL queries"
Tips
Combine with Local Development
Use sandboxes for:
- Running tests in a clean environment
- Testing deployment scripts
- Reproducing production issues
- Running resource-intensive tasks
Sync Files
Ask Cursor to sync your local files to a sandbox:
"Write my current file to /root/app.py in sandbox sbx-abc123"
Troubleshooting
MCP Not Available
- Ensure Cursor version supports MCP (check for updates)
- Verify the configuration JSON is valid
- Restart Cursor completely
Connection Timeouts
- Check your internet connection
- Verify the API key is valid (
~/.conway/config.jsonor the one you set manually) - Try a different region
Tools Not Found
- Check that
conway-terminalis installed:which conway-terminal - Verify the command works:
conway-terminal --version - Check Cursor's MCP logs for errors