Minimal DevSAFE
共学《MCP极简开发》项目代码
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
《MCP极简开发》学习笔记
本项目基于Datawhale组队学习的共读《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
项目协作安排
致谢
核心贡献者
- 胡锐锋-项目负责人 (Datawhale成员-华东交通大学-系统架构设计师)
其他
阅读提示
第7.2.2节 MCP Server的上线发布
- 请登录PyPI官方网站注册账号。
- 访问PyPI官网-我的账户创建API token。
- 在项目根目录下执行以下命令,进行项目打包和上传发布,需要使用到API token:
python -m build python -m twine upload dist/*
关注我们
扫描下方二维码关注公众号:Datawhale
f4bf2fa69f59OBSERVED · 2026-10-08Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.
claude mcp add mcp-lite-dev --env API_KEY=${API_KEY} --env OPENWEATHER_API_KEY=${OPENWEATHER_API_KEY} -- uvx mcp-lite-dev{
"mcpServers": {
"mcp-lite-dev": {
"command": "uvx",
"args": [
"mcp-lite-dev"
],
"env": {
"API_KEY": "${API_KEY}",
"OPENWEATHER_API_KEY": "${OPENWEATHER_API_KEY}"
}
}
}
}Exposed tools (1)
1 read · 0 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
query_weather | read |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- declared (5 observation(s))
- Shell
- none-observed
- Dependencies
- pinned
- Secrets in source
- none-found
Findings (3)
.nojekyll
在Inspector界面中Server面板选择`Transport Type`为`SSE`,在URL处输入 http://0.0.0.0:8000/sse 连接后在Inspector工具面板的Tools选项卡并单击`List Tools`按钮即可看到工具列表。测试运行返回结果后,SSE通信的MCP Server开发完成,如图7-11和图7-12所示。
Gates applied: no_behavioural_pass, no_license.
f4bf2fa69f59full audit observations/trust-audit/mcp-server/datawhalechina__minimal-dev.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-08 | f4bf2fa69f59 | SAFE | B | 89 | first audit |
Questions
What is the Minimal Dev MCP server?
共学《MCP极简开发》项目代码
What tools does Minimal Dev expose?
1 in total: 1 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Minimal Dev safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does Minimal Dev need?
It reads API_KEY and OPENWEATHER_API_KEY from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.
How does Minimal Dev run?
It speaks sse and stdio, so it runs as a local process your client starts. It is published on PyPI as mcp-lite-dev.
How current is this page?
The grade is for one exact copy of the source (f4bf2fa69f59), read on 2026-10-08. The repository is watched and re-audited when it changes.