Setup with Cursor
Learn how to integrate the desplega.ai MCP Server with Cursor IDE for AI-powered QA testing directly in your editor.
Prerequisites
- Cursor IDE installed on your machine
- Node.js (v18 or higher) and npm installed
- A desplega.ai API key (generate your API key or register directly through the MCP server)
Open Cursor Settings
Navigate to Cursor Settings → MCP → New MCP Server
Add MCP Server Configuration
Add the following configuration to register the desplega.ai MCP server:
{ "mcpServers": { "desplega-qa": { "command": "npx", "args": ["-y", "@desplega.ai/qa-use-mcp@latest"], "env": { "QA_USE_API_KEY": "your-desplega-ai-api-key" } } } }
Note: Replace your-desplega-ai-api-key
with your actual API key. If you don't have one yet, you can register through the MCP server's register_user
tool.
Restart Cursor
After adding the configuration, restart Cursor to activate the MCP server connection.
Verify Installation
Open Cursor's AI chat and try the following prompt to verify the MCP server is working:
Initialize desplega QA mcp and test ...
The MCP server should initialize, set up browser automation, and start testing the specified case.
Troubleshooting
MCP server not appearing in Cursor
Make sure you've restarted Cursor after adding the configuration. Check that the JSON syntax is valid and there are no trailing commas.
Authentication errors
Verify your API key is correct and hasn't expired. You can register a new account or check your existing key at tester.desplega.ai.
Browser launch issues
The MCP server will automatically install Playwright browsers on first use. Make sure you have sufficient disk space and permissions.