MCP, MCP server
Mcp Lite Dev
《MCP极简开发》学习笔记
Compatibility: Not stated.
Grade B
Minor issues only, no Medium or High. Worth a quick look at the findings below before installing.
Not a guarantee. A hygiene check of the source at the commit shown, not a security audit.
SECRETS_PATH_DOTENV SECRETS_ENV_READ
Why this grade
- SECRETS_PATH_DOTENV Low
Mentions a .env file.
src/ch06/mcp_client.py, line 21
# 加载 .env 文件,确保 API Key 受到保护 - SECRETS_ENV_READ Note
Reads an environment variable whose name contains KEY, SECRET, TOKEN, PASSWORD or CREDENTIAL.
src/weather.py, line 26
API_KEY = os.getenv("OPENWEATHER_API_KEY")
Any High, or two or more Medium findings, give D. One Medium gives C. Low findings or a security Note give B. Each code names a finding behind the letter.
Grades are a hygiene check of the source at the commit shown, on the date checked, not a security audit or a guarantee. The free directory grades are automated. Before release, a PlugVet engineer reviews every paid report and any grade we hold back, including all F grades, against the source code and the evidence we quote.
What was checked
Plain notes from the hygiene checks.
Permissions
Pass
No shell or command execution found, and no extra permission was declared.
Install and update
Pass
No install-time script found, and dependencies are pinned or absent.
Network
Pass
No network call found.
Secrets
Concern
reads a credential or environment file.
SECRETS_ENV_READ SECRETS_PATH_DOTENV
src/weather.py, line 26
API_KEY = os.getenv("OPENWEATHER_API_KEY")
src/ch06/mcp_client.py, line 21
# 加载 .env 文件,确保 API Key 受到保护
src/ch06/mcp_client.py, line 31
self.api_key = os.getenv("API_KEY") # 读取 API Key
Show more
src/ch06/mcp_client.py, line 35
raise ValueError("❌ 未找到 OpenAI API Key,请在 .env 文件中设置 OPENAI_API_KEY")
src/ch06/weather.py, line 26
API_KEY = os.getenv("OPENWEATHER_API_KEY")
src/ch07/weather.py, line 26
API_KEY = os.getenv("OPENWEATHER_API_KEY")
.gitignore, line 236
# Environments
README.md, line 34
2. 在项目根目录下新建`.env`文件,并添加以下内容
README.md, line 42
4. 在项目根目录下新建`.env`文件,并添加以下内容
docs/ch06/ch06.md, line 75
# 加载 .env 文件中的环境变量,方便管理 API Key 等敏感信息
docs/ch06/ch06.md, line 196
与服务器一样,客户端也需要配置。这里使用[硅基流动](https://cloud.siliconflow.cn/)的大模型服务,并通过环境变量来管理 API 密钥等敏感信息。确保项目根目录下的 `.env` 文件包含以下内容:
docs/ch06/ch06.md, line 208
首先,定义 `MCPClient` 类的构造函数 `__init__`。它负责加载 `.env` 文件中的配置,并初始化一个 OpenAI 客户端实例。
Agent instructions
Pass
No instruction to ignore earlier instructions or to hide a step.
Obfuscation
Pass
No encoded or minified payload found.
Licence
Note
no licence file found.
LICENCE_MISSING
No file path was stored.
no licence file found.
Maintainer activity
Note
the latest commit is more than 365 days old.
MAINTAINER_STALE
No file path was stored.
2025-07-21T09:47:57+08:00
Note
Hygiene check of commit ec495e5531af. reads a credential or environment file. no licence file found. the latest commit is more than 365 days old.
Date and source
Date checked:
github.com
Commit graded: ec495e5531af31f46458e66e4379014cb0d99391
This link goes to the original host. PlugVet does not host or check what you download from there, and installing it is your own decision and risk.