MCP 服务器示例:Hello World
一个包含 Hello World 方法的 Model Context Protocol 服务器示例。
快速入门
-
安装依赖: npm install
-
构建项目: npm run build
-
启动服务: npm run inspector
-
测试方法: npm test
提供的方法
- hello_world:返回 "hello world"。
- hello_world_with_input:接受可选参数 message,返回附加输入的 "hello world"。
- hello_world_with_config:接受必填参数 config,返回附加配置的 "hello configuration"。