Skip to main content

Minimal MCP server (stdio) for testing: input name, fixed output hello world

Project description

mcp-hello-world

最小 MCP Server(仅 stdio),用于联调测试:

  • 工具:greet
  • 输入:name(姓名)
  • 输出:固定 hello world(与 name 无关)

本地开发

cd mcp_scope
uv sync
uv run hairuo-mcp-hello-world

uvx(发布后)

uvx hairuo-mcp-hello-world

MCP 客户端 stdio 配置示例

Cursor / Claude Desktop

{
  "mcpServers": {
    "hello-world": {
      "command": "uvx",
      "args": ["hairuo-mcp-hello-world"]
    }
  }
}

本地未发布时(用 uv run)

{
  "mcpServers": {
    "hello-world": {
      "command": "uv",
      "args": ["run", "--directory", "/path/to/mcp_scope", "hairuo-mcp-hello-world"]
    }
  }
}

使用已构建的 venv

{
  "mcpServers": {
    "hello-world": {
      "command": "/path/to/mcp_scope/.venv/bin/hairuo-mcp-hello-world",
      "args": []
    }
  }
}

发布到 PyPI

uv build
uv publish

首次发布需配置 PyPI token:uv publish --token pypi-... 或设置 UV_PUBLISH_TOKEN

工具说明

工具 参数 返回值
greet name: str hello world

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hairuo_mcp_hello_world-0.1.2.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hairuo_mcp_hello_world-0.1.2-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file hairuo_mcp_hello_world-0.1.2.tar.gz.

File metadata

  • Download URL: hairuo_mcp_hello_world-0.1.2.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.24 {"installer":{"name":"uv","version":"0.11.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for hairuo_mcp_hello_world-0.1.2.tar.gz
Algorithm Hash digest
SHA256 2e3c22f0b0f065146561220ccd4619c1e7487c2267f27f83372b54c177ea17c6
MD5 85976092b20ab6a18c857e282d56d412
BLAKE2b-256 f3e84d95f830bdc4592f8db169f9f8ac7170b441e25911bc15f00e96fa3054ee

See more details on using hashes here.

File details

Details for the file hairuo_mcp_hello_world-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: hairuo_mcp_hello_world-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.24 {"installer":{"name":"uv","version":"0.11.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for hairuo_mcp_hello_world-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 04257a1bcdfd4f7e7049be64048929c09e71fbae60ef8cf576c4e2d26daddc49
MD5 3235b573efdb20cbedf3be24519c490d
BLAKE2b-256 c17b2f251e4c9e6315d44bf49cc3cc6afb5b984c183acc1fae323ebbfba87287

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page