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 mcp-hello-world
uvx(发布后)
uvx mcp-hello-world
MCP 客户端 stdio 配置示例
Cursor / Claude Desktop
{
"mcpServers": {
"hello-world": {
"command": "uvx",
"args": ["mcp-hello-world"]
}
}
}
本地未发布时(用 uv run)
{
"mcpServers": {
"hello-world": {
"command": "uv",
"args": ["run", "--directory", "/path/to/mcp_scope", "mcp-hello-world"]
}
}
}
使用已构建的 venv
{
"mcpServers": {
"hello-world": {
"command": "/path/to/mcp_scope/.venv/bin/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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hairuo_mcp_hello_world-0.1.0.tar.gz.
File metadata
- Download URL: hairuo_mcp_hello_world-0.1.0.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ccb8734278fe270d2b02d95341fe3ab6d78216e14a229a3d8a27877c39f0c504
|
|
| MD5 |
05ff49268b607f79e168d68d840955c6
|
|
| BLAKE2b-256 |
4fa313e122138a53d19c668dc02e8b036f894c6f150d7f877d1febc72b5dfe62
|
File details
Details for the file hairuo_mcp_hello_world-0.1.0-py3-none-any.whl.
File metadata
- Download URL: hairuo_mcp_hello_world-0.1.0-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bae5a6ad13429ec44e2aae6f7777904c8cc1fb845e4db923e540dc5e1c37ecbd
|
|
| MD5 |
9d965b998759781bca78be5e8c94631e
|
|
| BLAKE2b-256 |
3504520cd1b957abc4b1641ef374360acb5bdfd406d0ab04dd981d797fc3c123
|