my-mcp-server
A simple Model Context Protocol (MCP) server implementation in Node.js. This server exposes three tools via MCP:
- greet: Greet someone with a personalized message.
- calculate: Perform basic math calculations.
- weather_info: Get mock weather information for a city.
Above ones are implemented in the server1.js
in server2 there is an agent that requires selenium web driver that launches the html provided in prompt in a browser and tests and returns if any console errors are thrown.
All these agents can be used in not just copilot but with other AI extensions too for example refer this video for Amazon Q --> https://www.youtube.com/watch?v=sF6KkaV102M
Features
- MCP server using
@modelcontextprotocol/sdk - Stdio transport for easy integration
- Extensible tool definitions
Steps
- Clone the repo and install dependencies
git clone https://github.com/devashish234073/my-mcps cd my-mcps npm install - Open the my-mcp folder in vscode
- Open copilot chat
- In the chat click on "Configure Tools"
- Add more tools
- Add MCP Server
- This creates an mcp.json file with minimal configuration of the command your mcp server will run, in our case the repo already has that so step #4 to #7 is not needed
- Just go to that file and click "Restart"
- The server.js has three tools greet, calculate and weather_info
- You can interact with these now using prompts like:
