Skip to content
Back to search

mcp

A MCP(Model Context Protocol) server instance

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today

Check it deeper on your machine

It has changed since its scan on 20 Nov 2026.

As a Claude Code plugin, install it and then ask Claude Code:

/plugin marketplace add keithmackay/mackayi/plugin install scanskillsafety@mackayiDo a deep scan of https://github.com/Sunfe/mcp with scanskillsafety

Or from a terminal, clone it and run it:

git clone https://github.com/keithmackay/scanskillsafety-skill ~/.claude/skills/scanskillsafetynode ~/.claude/skills/scanskillsafety/cli.cjs --deep 'https://github.com/Sunfe/mcp'

It checks the exact commit: every file, its packages against OSV (api.osv.dev), how it compares with this page's scan (findsafeskills.com receives the repository's address), and, if you agree, Claude reading every file with your own Claude subscription. It never runs the code.

Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/sunfe--mcp/badge.svg)](/listings/sunfe--mcp)

HTML

<a href="/listings/sunfe--mcp"><img src="/api/listings/sunfe--mcp/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

README.md · README · 61 lines
  1. # MCP 文档知识库
  2. 将 TXT、PDF、DOCX、DOC 文档解析到 SQLite FTS5,通过 FastAPI 和 MCP stdio 提供文档列表、全文检索及文档读取。支持 Linux 本机 Codex、Windows 本地部署,以及 Windows Codex CLI / App 通过 SSH 访问 Linux 知识库。
  3. Windows 本地部署、后台启动、登录自启、MSYS / WSL 建立索引,以及 Codex 优先查询知识库的规则示例,见 **[Windows 本地部署说明](docs/codex-windows-local.md)**。
  4. Linux 部署、SSH 密钥配置、Codex 接入、备份迁移与故障排查见 **[MCP部署与Codex接入手册](docs/MCP部署与Codex接入手册.md)**。
  5. ## 快速启动
  6. 在 Linux 项目根目录执行,使用 Python 3.10+;读取旧版 `.doc` 还需要系统安装 `antiword`:
  7. ```bash
  8. python3 -m venv .venv
  9. .venv/bin/python -m pip install -r requirements.txt
  10. ```
  11. 没有 `.env` 时,从示例创建配置:
  12. ```bash
  13. cp -n .env.example .env
  14. .venv/bin/python -c 'import secrets; print(secrets.token_urlsafe(32))'
  15. ```
  16. 将生成的随机值填入 `.env` 的 `API_TOKEN`。将文档放进 `raw/`,然后执行:
  17. ```bash
  18. bash scripts/reindex.sh
  19. bash scripts/start_api.sh
  20. ```
  21. API 默认监听 `127.0.0.1:8016`。另开终端做 MCP 协议自检:
  22. ```bash
  23. .venv/bin/python scripts/check_mcp.py --query 资料中存在的关键词
  24. ```
  25. ## Codex 接入
  26. 将适合当前机器的模板合并到该机器的 Codex `config.toml`,调整实际路径、SSH 地址和密钥配置:
  27. - [Linux 本机配置](configs/codex-mcp-local.toml)
  28. - [使用 SSH 别名的配置](configs/codex-mcp.toml)
  29. - [Windows SSH 配置](configs/codex-mcp-windows.toml)
  30. - [Windows 本地配置](configs/codex-mcp-windows-local.toml)
  31. 本机和 SSH 模板中的服务器目录是已验证环境的示例,迁移时需要修改。API 持续运行,MCP stdio 进程由 Codex 自动启动。
  32. ## 开发验证
  33. ```bash
  34. .venv/bin/python -m unittest discover -s tests -v
  35. ```
  36. ## 仓库内容与本地数据
  37. 仓库保留应用代码、测试、脚本、配置模板和使用文档。真实 `.env`、SSH 私钥、虚拟环境、SQLite 数据库、`raw/` 原始资料、日志和备份均作为本地数据排除;空目录通过 `.gitkeep` 保留。
  38. 新机器克隆仓库后,需要自行创建 `.env`、恢复原始文档并建立索引。更新文档后执行 `scripts/reindex.sh`。
  39. 历史方案参考保留在 `setup.md` 和 `next.md`;日常部署以本手册和当前代码为准。

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.