MCP Demo
一个简单的MCP (Model Context Protocol) 服务器演示包,可以通过Trae AI IDE使用。
功能特性
这个MCP服务器提供了三个简单的工具:
- echo - 回显输入的文本
- add - 计算两个数字的和
- greet - 生成多语言个性化问候语(支持中文、英文、法文、西班牙文)
安装
从PyPI安装
pip install yashuashua_mcp_server
在Trae中使用
- 在Trae的MCP配置文件中添加以下配置:(保持最新版)
{
"mcpServers": {
"yashuashua-mcp-server": {
"command": "uvx",
"args": ["--reinstall", "yashuashua-mcp-server"]
}
}
}
- 重启Trae,你就可以在对话中使用这些工具了!
使用示例
在Trae中,你可以这样使用:
- "帮我回显一下'Hello World'"
- "计算 15 + 27 的结果"
- "用法语向Alice问好"
开发
许可证
MIT License - 详见 LICENSE 文件。
贡献
欢迎提交Issue和Pull Request!
Metadata
Release files for yashuashua-mcp-server 0.2.3
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 | |
|---|---|---|---|---|
| yashuashua_mcp_server-0.2.3.tar.gz | 4.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| yashuashua_mcp_server-0.2.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.9 kB
Release files / yashuashua_mcp_server-0.2.3.tar.gz
| Download URL | yashuashua_mcp_server-0.2.3.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
63dd5d2abea6d6dd6bbe1e5be45dd34301a1e957f63af0ae3b8d1704697d885a
|
|
BLAKE2b-256 checksum How to use checksums |
bf4ba13776f36b616018b38d76da160d04be93b8b6c9afb6a02ed20b91b7114a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.5
|
Release files / yashuashua_mcp_server-0.2.3-py3-none-any.whl
| Download URL | yashuashua_mcp_server-0.2.3-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7b608300e61cc77504b95956503239a36e9e135af67d24e663b96faf2dd25ab1
|
|
BLAKE2b-256 checksum How to use checksums |
2a0e1655dd406bf34fdc93a93b1db2e1fc675df9edab373036687d9d6ef597da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.5
|
Security for yashuashua-mcp-server 0.2.3
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.