模型上下文协议服务器示例

一个包含hello world方法的模型上下文协议服务器示例,用于展示基础功能。

  • by dcSpark
  • TypeScript
  • 本地部署
  • 更新于
在 GitHub 查看 dcspark/mcp-server-hello-world

使用说明

MCP服务器Hello World

一个具有hello world方法的模型上下文协议服务器示例。

安装

npm install

用法

npm run build
npm run inspector

测试

npm test

方法

你好_世界

返回“hello world”。

hello_world_withinput

使用提供的输入返回“hello world”。

输入:

  • message(字符串,可选):附加到“hello world”的输入。

hello_world_with_config

使用提供的配置返回“hello configuration”。

输入:

  • config(string,必填):要附加到“hello configuration”的配置。