Adarshprakash123/MCP_Server_Tools
3.1
If you are the rightful owner of MCP_Server_Tools and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
This project demonstrates the integration of Visual Studio Code and Cursor using Model-Connected Programming (MCP) to enable seamless code execution and debugging across both platforms.
MCP Setup: Connect VS Code (Server) with Cursor (Client)
This project demonstrates how to connect two different editors ā Visual Studio Code and Cursor ā using MCP (Model-Connected Programming) to allow code execution, debugging, and interaction across both tools.
Goal
To use:
- VS Code as the MCP server (where the code runs)
- Cursor as the MCP client (where the code is edited and AI-assisted)
Project Structure
GEN-AI/ āāā genai-cohort/ āāā mcp-weather/ āāā index.js
This index.js
is the entry point for your Node.js server that gets run by MCP.
How I Set It Up
- Opened VS Code ā this acted as the MCP server.
- Opened Cursor ā this acted as the MCP client.
- Inside Cursor, I opened the MCP Tool and added this configuration:
{
"mcpServers": {
"weather-server": {
"command": "node",
"args": ["./GEN-AI/genai-cohort/mcp-weather/index.js"],
"env": {
"API_KEY": "your_actual_api_key_here"
}
}
}
}