- Open Cursor
- Go to Settings:
Ctrl+,(orCmd+,on Mac) - Search for "MCP" in the settings search bar
- Add MCP Server with these details:
- Name:
vps-initialize - Command:
node - Arguments:
["/home/oxy/mcp-vps-initialize/dist/index.js"] - Environment:
{"LOG_LEVEL": "info"}
- Name:
If Cursor supports MCP config files, place this in your Cursor config directory:
{
"mcpServers": {
"vps-initialize": {
"command": "node",
"args": ["/home/oxy/mcp-vps-initialize/dist/index.js"],
"env": {
"LOG_LEVEL": "info"
}
}
}
}If using VS Code with MCP extension:
- Install the MCP extension
- Add to your VS Code settings.json:
{
"mcp.servers": {
"vps-initialize": {
"command": "node",
"args": ["/home/oxy/mcp-vps-initialize/dist/index.js"],
"env": {
"LOG_LEVEL": "info"
}
}
}
}Once connected, try asking Cursor:
"Can you list the available VPS management tools?"
You should see tools like:
ssh_connect- Connect to VPSvps_initialize- Setup servicesnginx_setup- Configure domainsgithub_cicd_setup- Setup deploymentsexecute_command- Run commands
"Connect to my VPS at 192.168.1.100 with username 'root' and password 'mypassword', then install Node.js and Nginx"
The AI should be able to:
- Use the
ssh_connecttool to establish connection - Use the
vps_initializetool to install services - Provide you with status updates and next steps
- Ensure the path
/home/oxy/mcp-vps-initialize/dist/index.jsexists - Run
npm run buildif the dist folder is missing
- Make sure the server file is executable
- Check that Node.js is in your PATH
- Check the Cursor/VS Code console for error messages
- Verify the MCP server starts correctly with
npm start
Set LOG_LEVEL to "debug" for more detailed logs:
"env": {
"LOG_LEVEL": "debug"
}