Skip to main content
Glama

MCP-演示

此仓库包含一个 MCP 演示的精简版本。该项目旨在演示使用qwen API 接口的 MCP 服务和客户端的基本功能。

特征

  • 轻量级和最小的实现。

  • 使用uv进行依赖管理。

  • qwen API 集成。

Related MCP server: emqx-mcp-server

先决条件

在使用此存储库之前,请确保已安装以下内容:

  • Python 3.10 或更高版本

  • uv包管理器

设置说明

  1. 克隆存储库:

    git clone https://github.com/tatocode/MCP-Demo.git cd MCP-Demo
  2. 使用uv安装依赖项:

    uv sync
  3. 在项目的根目录中创建一个.env文件并添加您的 API 密钥:

    API-KEY=xxxx

    xxxx替换为qwen API 的实际 API 密钥。

  4. 运行项目:

    uv run main.py mcp_server.py

笔记

  • .env文件是确保项目正常运行所必需的。请勿公开您的 API 密钥。

  • 有关qwen API 的更多信息,请参阅其官方文档。

执照

本项目遵循 MIT 许可证。详情请参阅LICENSE文件。

贡献

欢迎贡献代码!欢迎随时提交 issue 或 PR,以改进本项目。

-
security - not tested
A
license - permissive license
-
quality - not tested

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tatocode/MCP-Demo'

If you have feedback or need assistance with the MCP directory API, please join our Discord server