Skip to main content

A simple MCP (Model Context Protocol) server demo

Project description

MCP Demo

一个简单的MCP (Model Context Protocol) 服务器演示包,可以通过Trae AI IDE使用。

功能特性

这个MCP服务器提供了三个简单的工具:

  1. echo - 回显输入的文本
  2. add - 计算两个数字的和
  3. greet - 生成多语言个性化问候语(支持中文、英文、法文、西班牙文)

安装

从PyPI安装

pip install yashuashua_mcp_server

在Trae中使用

  1. 在Trae的MCP配置文件中添加以下配置:(保持最新版)
{
  "mcpServers": {
    "yashuashua-mcp-server": {
      "command": "uvx",
      "args": ["--reinstall", "yashuashua-mcp-server"]
    }
  }
}
  1. 重启Trae,你就可以在对话中使用这些工具了!

使用示例

在Trae中,你可以这样使用:

  • "帮我回显一下'Hello World'"
  • "计算 15 + 27 的结果"
  • "用法语向Alice问好"

开发

许可证

MIT License - 详见 LICENSE 文件。

贡献

欢迎提交Issue和Pull Request!

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

yashuashua_mcp_server-0.2.3.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yashuashua_mcp_server-0.2.3-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file yashuashua_mcp_server-0.2.3.tar.gz.

File metadata

  • Download URL: yashuashua_mcp_server-0.2.3.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.5

File hashes

Hashes for yashuashua_mcp_server-0.2.3.tar.gz
Algorithm Hash digest
SHA256 63dd5d2abea6d6dd6bbe1e5be45dd34301a1e957f63af0ae3b8d1704697d885a
MD5 c834aff94a36291f62f3545ede268940
BLAKE2b-256 bf4ba13776f36b616018b38d76da160d04be93b8b6c9afb6a02ed20b91b7114a

See more details on using hashes here.

File details

Details for the file yashuashua_mcp_server-0.2.3-py3-none-any.whl.

File metadata

File hashes

Hashes for yashuashua_mcp_server-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7b608300e61cc77504b95956503239a36e9e135af67d24e663b96faf2dd25ab1
MD5 118d1351c1d4db61f9214c9215dbbd4c
BLAKE2b-256 2a0e1655dd406bf34fdc93a93b1db2e1fc675df9edab373036687d9d6ef597da

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