Current collected state Current
Observed since 20 Oct, 17:26 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Add your description here
一个简单而实用的 MCP 服务,提供数字相加计算和个性化问候功能。
pip install add-two-num
git clone <your-repo-url>
cd add-two-num
pip install -e .
{
"mcpServers": {
"add-two-num": {
"command": "uvx",
"args": ["add-two-num@latest"],
"env": {}
}
}
}
{
"mcpServers": {
"add-two-num": {
"command": "python",
"args": ["-m", "add_two_num"],
"cwd": "/path/to/add-two-num",
"env": {}
}
}
}
计算两个整数的和。
参数:
a (int): 第一个整数b (int): 第二个整数返回值:
int: 两个数的和示例:
# 调用示例
result = sum(5, 3) # 返回 8
生成个性化问候语。
参数:
name (str): 要问候的姓名返回值:
str: 个性化问候语示例:
greeting://Alice # 返回 "Hello, Alice!"
sum 工具进行数字计算greeting:// URI 获取个性化问候语# 克隆仓库
git clone <your-repo-url>
cd add-two-num
# 安装依赖
pip install -e .
# 运行服务
python -m add_two_num
# 测试工具调用
echo '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "sum", "arguments": {"a": 5, "b": 3}}}' | python -m add_two_num
本项目采用 MIT 许可证。
欢迎提交 Issue 和 Pull Request 来改进这个项目!
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.1.2 | 24 Jul 2025 | 2 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 17:26 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:7abcdf304b3626c5fa22c926160d981d96b8ec8505f446b31c5b031c31ce43d1