《MCP极简开发》项目代码
Project description
《MCP极简开发》项目代码
本项目来自Datawhale 2025年07月组队学习的共读《MCP极简开发》项目代码。
项目地址:https://github.com/datawhalechina/mcp-lite-dev
环境安装
-
基础环境:Python3.10+
-
安装UV
pip install uv
set UV_INDEX=https://mirrors.aliyun.com/pypi/simple
- 安装Python依赖包
uv sync --python 3.10 --all-extras
- 切换到本地环境(.venv)
cd .venv/Scripts
activate
配置文件
-
访问openweathermap网站,注册账号,获取API KEY
-
在项目根目录下新建
.env文件,并添加以下内容
OPENWEATHER_API_KEY=YOUR_API_KEY
-
访问硅基流动网站,注册账号,获取API KEY
注:书中使用的是deepseek,我们使用硅基流动的模型,其实效果是一样的。 -
在项目根目录下新建
.env文件,并添加以下内容
BASE_URL=https://api.siliconflow.cn/v1
MODEL=deepseek-ai/DeepSeek-V3
API_KEY=YOUR_API_KEY
阅读提示
第7.2.2节 MCP Server的上线发布
-
请登录PyPI官方网站注册账号。
-
访问PyPI官网-我的账户创建API token。
-
在项目根目录下执行以下命令,进行项目打包和上传发布,需要使用到API token:
python -m build
python -m twine upload dist/*
关注我们
扫描下方二维码关注公众号:Datawhale
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_lite_dev-0.1.2.tar.gz.
File metadata
- Download URL: mcp_lite_dev-0.1.2.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a7f1430f9ef379d60e85ae6bba5e0b41e979d8649283ee396de3a30fd9faf8f
|
|
| MD5 |
aec8fb1b899df20072d6cb487b8d1517
|
|
| BLAKE2b-256 |
670019308a4134111baf38fe8f85d45f1590c7d413bef9b0db176025fdc38a49
|
File details
Details for the file mcp_lite_dev-0.1.2-py3-none-any.whl.
File metadata
- Download URL: mcp_lite_dev-0.1.2-py3-none-any.whl
- Upload date:
- Size: 8.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20b0f56d21e56f65c4837833ff9ac7d8a7743ef990695dba86705e9d115b4abc
|
|
| MD5 |
f1ae1810294a144105da848fdfa95a69
|
|
| BLAKE2b-256 |
662794806f0f0e7f6d18b027367f17b7b052ca709eba5bc58ed28fb87df6fe4d
|