《MCP极简开发》项目代码
Project description
《MCP极简开发》项目代码
本项目主要包括《MCP极简开发》的第6章代码。
环境安装
-
基础环境: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
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
mcp_lite_dev-0.1.1.tar.gz
(6.2 kB
view details)
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.1.tar.gz.
File metadata
- Download URL: mcp_lite_dev-0.1.1.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
167f1f4caa4f213d8b68f308874a7f65bbf3129a065a7a75d6e1b4822fc3481f
|
|
| MD5 |
82ea7591d38778d6f27de487aacb3ce6
|
|
| BLAKE2b-256 |
79a27923279a86a9f09dba5ea2787705b5c554619404f99e6de4dc7f99b271f3
|
File details
Details for the file mcp_lite_dev-0.1.1-py3-none-any.whl.
File metadata
- Download URL: mcp_lite_dev-0.1.1-py3-none-any.whl
- Upload date:
- Size: 8.5 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 |
d84ad721dda162b21e3a77413165043dd29d3dafb87d45690acfb863bd00120b
|
|
| MD5 |
023e48e16604bc2df6b86ba44403e5fb
|
|
| BLAKE2b-256 |
1adb6ff2ca12c1825a3d13ccfced61be6c57a5c7d2616bcdc7a7840528633977
|