Skip to main content

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

Metadata

Release files for hairuo-mcp-hello-world 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hairuo-mcp-hello-world 0.1.2
File Size Uploaded
hairuo_mcp_hello_world-0.1.2.tar.gz 2.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hairuo-mcp-hello-world 0.1.2
File Interpreter ABI Platform
hairuo_mcp_hello_world-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 6.6 kB

Release files / hairuo_mcp_hello_world-0.1.2.tar.gz

Download URL hairuo_mcp_hello_world-0.1.2.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
2e3c22f0b0f065146561220ccd4619c1e7487c2267f27f83372b54c177ea17c6
BLAKE2b-256 checksum
How to use checksums
f3e84d95f830bdc4592f8db169f9f8ac7170b441e25911bc15f00e96fa3054ee
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release files / hairuo_mcp_hello_world-0.1.2-py3-none-any.whl

Download URL hairuo_mcp_hello_world-0.1.2-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
04257a1bcdfd4f7e7049be64048929c09e71fbae60ef8cf576c4e2d26daddc49
BLAKE2b-256 checksum
How to use checksums
c17b2f251e4c9e6315d44bf49cc3cc6afb5b984c183acc1fae323ebbfba87287
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page