Skip to main content
Glama
hc0061365

hc0061365-mcp-hello-world

by hc0061365

MCP Hello World

A simple MCP (Model Context Protocol) server that provides hello world greeting tools.

工具列表 | Tools

工具名称

描述

hello

向某人问好,返回友好的问候消息

greet_multiple

同时向多人问好

前置需求 | Prerequisites

  • Node.js 22 或以上版本

开始使用 | Getting Started

使用 Stdio 启动 | Start with Stdio transport

在 MCP 客户端配置中添加以下内容:

{
  "mcpServers": {
    "hc0061365-mcp-hello-world": {
      "command": "npx",
      "args": ["hc0061365-mcp-hello-world@latest"]
    }
  }
}

本地开发 | Local Development

# 安装依赖
npm install

# 使用 MCP Inspector 测试
npx @modelcontextprotocol/inspector node src/index.js

MCP 客户端配置 | MCP Client Configuration

Claude Desktop

编辑 ~/.claude/claude_desktop_config.json:

{
  "mcpServers": {
    "hc0061365-mcp-hello-world": {
      "command": "node",
      "args": ["/path/to/hc0061365-mcp-hello-world/src/index.js"]
    }
  }
}

Cursor

编辑 ~/.cursor/mcp.json:

{
  "mcpServers": {
    "hc0061365-mcp-hello-world": {
      "command": "node",
      "args": ["/path/to/hc0061365-mcp-hello-world/src/index.js"]
    }
  }
}

VS Code

在工作区 .vscode/mcp.json 中添加:

{
  "mcpServers": {
    "mcp-hello-world": {
      "command": "node",
      "args": ["${workspaceFolder}/src/index.js"]
    }
  }
}

License

MIT