MCP, MCP server
Lab Analysis
医学检验 + 文献循证 + 影像印证 多源整合分析 Pipeline(DSPy 双轨 + 量化评估 + CI Gate)
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.
PERMISSION_DELETE_FILES NETWORK_NO_FIXED_HOST SECRETS_PATH_DOTENV SECRETS_ENV_READ
Why this grade
- PERMISSION_DELETE_FILES Low
Contains a call that can delete files.
examples/demo_dspy_prompt_e2e.py, line 86
result = subprocess.run( - NETWORK_NO_FIXED_HOST Low
Makes a network call whose host is not written as a fixed address.
examples/demo_dashscope_compatibility.py, line 41
response = requests.post(url, json=payload, headers=headers, timeout=30) - SECRETS_PATH_DOTENV Low
Mentions a .env file.
init_dirs.py, line 14
# 加载 .env 文件 - SECRETS_ENV_READ Note
Reads an environment variable whose name contains KEY, SECRET, TOKEN, PASSWORD or CREDENTIAL.
examples/compile_all_dspy_modules_v2.py, line 101
api_key = os.environ.get("DEEPSEEK_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
Concern
can delete files.
PERMISSION_DELETE_FILES
examples/demo_dspy_prompt_e2e.py, line 86
result = subprocess.run(
examples/demo_dspy_prompt_e2e.py, line 112
result = subprocess.run(
examples/demo_dspy_prompt_e2e.py, line 140
result = subprocess.run(
Show more
examples/dual_mode_pipeline.py, line 175
r = subprocess.run(cmd, cwd=str(PROJECT_ROOT), env=env)
lab_analysis/batch_vision_extract.py, line 76
result = subprocess.run(cmd, cwd=str(project_root), capture_output=True, text=True) # noqa: S603
lab_analysis/batch_vision_extract.py, line 119
result = subprocess.run(cmd, cwd=str(project_root), capture_output=True, text=True) # noqa: S603
lab_analysis/cleanup_runs.py, line 104
shutil.rmtree(d)
lab_analysis/organize_local_files.py, line 159
shutil.rmtree(dest)
lab_analysis/ingest_data/dicom.py, line 123
shutil.rmtree(temp_dir, ignore_errors=True)
lab_analysis/pipeline/run.py, line 142
r = subprocess.run(cmd, cwd=str(root), env=full_env) # noqa: S603
lab_analysis/pipeline/run.py, line 159
r = subprocess.run(cmd, cwd=str(root), env=full_env) # noqa: S603
scripts/cleanup_local_upload.py, line 37
shutil.rmtree(ROOT)
Install and update
Pass
No install-time script found, and dependencies are pinned or absent.
Network
Concern
can reach a host that is not written as a fixed address.
NETWORK_NO_FIXED_HOST
examples/demo_dashscope_compatibility.py, line 41
response = requests.post(url, json=payload, headers=headers, timeout=30)
lab_analysis/llm_client.py, line 165
resp = requests.post(
lab_analysis/llm_client.py, line 233
resp = requests.post(
Show more
lab_analysis/extract_lab_data/ocr.py, line 73
resp = requests.post(url, headers=headers, data=payload, files=files, timeout=60)
lab_analysis/literature_searcher/pubmed.py, line 39
with urllib.request.urlopen(req, timeout=15) as resp: # noqa: S310
lab_analysis/literature_searcher/pubmed.py, line 59
with urllib.request.urlopen(req, timeout=20) as resp: # noqa: S310
lab_analysis/llm_client.py, line 8
消除 lab_analysis 各模块中重复出现的「读 .env → 拼 headers → requests.post → 解析 choices」模式。
Secrets
Concern
reads a credential or environment file.
SECRETS_ENV_READ SECRETS_PATH_DOTENV
init_dirs.py, line 14
# 加载 .env 文件
examples/compile_all_dspy_modules_v2.py, line 101
api_key = os.environ.get("DEEPSEEK_API_KEY")
examples/compile_dspy_module.py, line 30
api_key = os.environ.get("DEEPSEEK_API_KEY")
Show more
examples/demo_dashscope_compatibility.py, line 22
api_key = os.environ.get("DASHSCOPE_API_KEY")
examples/demo_dashscope_compatibility.py, line 62
api_key = os.environ.get("DASHSCOPE_API_KEY")
examples/demo_dashscope_compatibility.py, line 108
api_key = os.environ.get("DASHSCOPE_API_KEY")
examples/demo_dspy_basic.py, line 164
print("1. 配置 LLM API 密钥 (在 .env 文件中)")
examples/demo_dspy_e2e.py, line 62
deepseek_key = os.environ.get("DEEPSEEK_API_KEY")
examples/demo_dspy_e2e.py, line 63
dashscope_key = os.environ.get("DASHSCOPE_API_KEY")
examples/demo_dspy_llm.py, line 13
# 加载 .env 文件
examples/demo_dspy_llm.py, line 27
api_key = os.environ.get("DEEPSEEK_API_KEY")
lab_analysis/__init__.py, line 16
env_file = project_root / ".env"
lab_analysis/llm_client.py, line 8
消除 lab_analysis 各模块中重复出现的「读 .env → 拼 headers → requests.post → 解析 choices」模式。
lab_analysis/llm_client.py, line 26
- .env 读取统一走 ``load_dotenv``(已在 lab_analysis/__init__.py 完成),本模块不再重复解析 .env 文件。
lab_analysis/llm_client.py, line 73
``load_dotenv()`` 从 .env 注入),不再在各处重复解析 .env 文件。
lab_analysis/llm_client.py, line 83
raise RuntimeError(f"未找到环境变量 {env_var}。请在 .env 或运行环境中配置。")
Agent instructions
Pass
No instruction to ignore earlier instructions or to hide a step.
Obfuscation
Pass
No encoded or minified payload found.
Licence
Pass
A licence file is present (LICENSE).
Maintainer activity
Pass
The latest commit is within the last 365 days.
Note
Hygiene check of commit c6c740cbd124. can delete files. can reach a host that is not written as a fixed address. reads a credential or environment file.
Date and source
Date checked:
github.com
Commit graded: c6c740cbd12444be59ea4227fac51f15b3b59d4a
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.