VKey Calculator MCP
一个基于 MCP (Model Context Protocol) 的计算器服务器,提供数学计算功能。
功能特性
- 基础算术运算:加法、减法、乘法、除法
- 高级数学运算:幂运算、平方根、阶乘
- 错误处理:除零检查等安全机制
- MCP 协议:支持与 MCP 客户端集成
安装
方法一:使用 uv(推荐)
# 克隆项目
git clone <repository-url>
cd vkey-calculator-mcp
# 安装依赖并运行
uv run -m vkey_calculator_kel
方法二:本地安装
# 克隆项目
git clone <repository-url>
cd vkey-calculator-mcp
# 安装项目
pip install -e .
# 运行
python -m vkey_calculator_kel
MCP 配置
在你的 MCP 客户端配置文件中添加以下配置:
{
"mcpServers": {
"vkey_calculator_kel": {
"command": "uvx",
"args": [
"vkey_calculator_kel@latest"
]
}
}
}
可用的计算工具
基础算术
add(a, b)- 加法运算subtract(a, b)- 减法运算multiply(a, b)- 乘法运算divide(a, b)- 除法运算(自动检查除零)
高级数学
power(base, exponent)- 幂运算sqrt(number)- 平方根计算factorial(n)- 阶乘计算
开发
项目结构
vkey-calculator-mcp/
├── src/
│ └── vkey_calculator_kel/
│ ├── __init__.py # 主入口
│ ├── __main__.py # 模块入口
│ └── server.py # MCP 服务器实现
├── pyproject.toml # 项目配置
└── README.md # 项目说明
构建
# 构建包
uv run -m build
# 安装开发版本
pip install -e .
许可证
MIT License
Metadata
Release files for vkey-calculator-mcp 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| vkey_calculator_mcp-0.1.4.tar.gz | 35.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| vkey_calculator_mcp-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 39.1 kB
Release files / vkey_calculator_mcp-0.1.4.tar.gz
| Download URL | vkey_calculator_mcp-0.1.4.tar.gz |
|---|---|
| Size | 35.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a7387b9d364a3eba766acc517b5b5893667994baafe07e5eb95136eecc9d308f
|
|
BLAKE2b-256 checksum How to use checksums |
8e694266daffe0e6b223c31c1bc963f37d95ebc30306db3fe92ff6237df1a485
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|
Release files / vkey_calculator_mcp-0.1.4-py3-none-any.whl
| Download URL | vkey_calculator_mcp-0.1.4-py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d92bb71399267c4728eea205fed1bdf631aa230ddbc3a434b467199e81062b2f
|
|
BLAKE2b-256 checksum How to use checksums |
4cece1471d839988b97fd22d766ff4048646948e1994c9cb59220dee998c461a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|
Security for vkey-calculator-mcp 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.