MCP Server Not Detected in IDE
If you experience issues where your IDE doesn’t recognize TestSprite MCP Server, please follow the solution below:1
Verify JSON Configuration
Cursor Quick Check CommandsVS Code Quick Check Commands
jq
installed:For macOS/LinuxFor Windows
If you see a parse error, fix the JSON file (missing commas, quotes, brackets, etc.)
2
Check Configuration Files
Configuration File Locations:File Management Commands:
IDE
Project
Global config
Cursor
.cursor/mcp.json
~/.cursor/mcp.json
(macOS/Linux)%USERPROFILE%\.cursor\mcp.json
(Windows)VS Code
.vscode/settings.json
~/Library/Application Support/Code/User/settings.json
(macOS)~/.config/Code/User/settings.json
(Linux)%APPDATA%\Code\User\settings.json
(Windows)Project-level configuration takes precedence over global configuration
- Check if files exist:
- Create directories if missing:
- Check file permissions (if needed):
3
Validate Configuration
Cursor Required Configuration Format
Common Issues to Avoid
Missing commas
Missing commas
If there’s a JSON parsing error about missing commas like
"command": "npx" "args": [...]
, make sure to add commas between JSON properties. The correct format should be "command": "npx",
with a comma after each property except the last one.Wrong quotes
Wrong quotes
If there’s an error about invalid JSON syntax with single quotes like
'command': 'npx'
, JSON requires double quotes for all strings. Change it to use double quotes: "command": "npx"
.Wrong property name
Wrong property name
If there’s an error about server configuration not being recognized in Cursor, make sure you’re using the correct property name. For Cursor, use
"mcpServers"
instead of "servers"
. VS Code uses "mcp.servers"
.Missing required fields
Missing required fields
If there’s an error about incomplete server configuration with no
env
section, ensure you include all required fields: command
, args
, and env
. The env
section is necessary for passing the API key to TestSprite.Test Your Configuration
API Key Issues
If you experience issues about Invalid or missing API key, please follow the solution below:1
Get API key
- Visit TestSprite Dashboard
- Go to
Settings > API Keys
- Generate new key if needed
2
Update configuration
3
Verify API key format
- Should start with
sk-user-
- Should be 32+ characters long
- No extra spaces or characters