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": ["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.1.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.1-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hairuo_mcp_hello_world-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 bbf7c338ad7bb93af79dc1c5e44e8a7a8c27644a187e280e7f4bf8e9cc247191
MD5 4a027b53a2f445fcc900acac559159a5
BLAKE2b-256 59f8b1862270d2230c4418c265030f18603c857dcc30746e14b9f532b98d538c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hairuo_mcp_hello_world-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bb2951c05002876e159b16f75267ec64d22d0d44eca91c1d1a236dc34175b91f
MD5 b73c2a4b90006f6d659d6541cbc44b3c
BLAKE2b-256 9b9dbc587bb926412b156c09e2bb73c45ee16a58ffbf8f50f198ef1c05fdf631

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