MCP Server Hello World

MCP Server Hello World

site icon
2025.03.05 0
TypeScript示例服务器MCP协议演示其它
mcp-server-hello-world 是一个基于 Model Context Protocol 的示例服务器,提供了简单的 hello world 方法。它主要用于演示和测试 MCP 协议的基本功能。
View on GitHub

Overview

基本能力

产品定位

mcp-server-hello-world 是一个示例性的 MCP 服务器,用于演示和测试 MCP 协议的基本功能。

核心功能

  1. hello_world: 返回 "hello world"。
  2. hello_world_with_input: 返回 "hello world" 并附加提供的输入。
  3. 输入参数: message (字符串,可选)。
  4. hello_world_with_config: 返回 "hello configuration" 并附加提供的配置。
  5. 输入参数: config (字符串,必需)。

适用场景

  • MCP 协议的演示和测试。
  • 开发人员学习 MCP 协议的基本用法。
  • 快速验证 MCP 服务器的基本功能。

工具列表

无明确工具列表。

常见问题解答

无明确常见问题解答。

使用教程

使用依赖

无明确前置依赖。

安装教程

  1. 安装依赖: bash npm install
  2. 构建项目: bash npm run build
  3. 启动服务器: bash npm run inspector

调试方式

运行测试:

npm test

许可证

该项目遵循 MIT 开源许可条款,请参阅 MIT 了解完整条款。