AngelosP/mcp-server-for-vscode
3.2
If you are the rightful owner of mcp-server-for-vscode 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.
A simple Model Context Protocol (MCP) server implementation compatible with Agent mode in VS Code.
Tools
2
Resources
0
Prompts
0
VS Code MCP Server
A simple Model Context Protocol (MCP) server implementation that is compatible with Agent mode in VS Code. This MCP server allows the GitHub Copilot Agent to access tools that provide additional information and capabilities.
Features
- CurrentDateAndTime Tool: Returns the current date and time along with timezone information, including day of year and week number.
- SystemInfo Tool: Returns basic system information like platform, architecture, Node.js version, and uptime.
Prerequisites
- Node.js 16+
- npm or yarn
Installation
- Clone this repository
- Install dependencies:
npm install
- Build the project:
npm run build
Usage
Running the Server
npm start
Configuring VS Code
To use this MCP server with VS Code Agent mode, you need to add a configuration file in VS Code:
- Create or edit the
mcp.json
file in the.vscode
folder of your user or workspace directory:
{
"servers": {
"vscode-date-time": {
"type": "stdio",
"command": "node",
"args": [
"/path/to/this/repo/build/index.js"
]
}
}
}
- Replace
/path/to/this/repo
with the actual path to this repository.
Extending with Additional Tools
The server is designed to be extensible. You can add more tools by:
- Creating a companion package that exports tool definitions
- Using the server's extension mechanism to register those tools
Development
Building
npm run build
Development Build with Auto-Run
npm run dev
License
ISC