A simple Model Context Protocol server built with Node.js
This MCP Server is a Node.js application using the Model Context Protocol to provide weather information and simple interactions through an API.
- hello: Greets the user
- goodbye: Says goodbye to the user
- saybye: Alternative way to bid farewell to the user
When a user interacts with the MCP server, the processing flow is as follows:
- Request Analysis: The AI model analyzes the user's input text
- Tool Identification: The system identifies the appropriate tool to handle the request
- Parameter Extraction: Necessary parameters are extracted from the user's input
- MCP Tool Invocation: The request is sent to the MCP server with the corresponding parameters
- Request Processing: The server processes the request and generates a response
- Result Return: The result is sent back to the user
- Input: "Hello, my name is hgbaodev"
- Selected tool:
hello
- Extracted parameter:
name = "hgbaodev"
- Response: "Hello, hgbaodev!"