DepGuard
DepGuard MCP Server
DepGuard is a production MCP server for real-time dependency risk checks while coding.
It checks package updates against:
OSV vulnerabilities (CVE/GHSA)
npm package deprecations
local cache for fast repeated lookups
Status
Docker image:
ghcr.io/foudhilriahi/depguard:latestMulti-arch publish:
linux/amd64,linux/arm64GitHub Pages live proof:
https://foudhilriahi.github.io/DepGuard/
1) Fastest way to use DepGuard (Docker + MCP)
Add this to your MCP client config:
{
"mcpServers": {
"depguard": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"-e",
"CACHE_TTL_SECONDS=86400",
"-e",
"DEPGUARD_CACHE_PATH=/data/cache.sqlite",
"-v",
"depguard-cache:/data",
"ghcr.io/foudhilriahi/depguard:latest"
]
}
}
}Restart your AI IDE/CLI after saving config.
Available MCP tools
check_packagecheck_packages_bulkscan_package_jsonget_cached_result
2) Real online proof (no mocks)
Live proof page
GitHub Pages app in docs/ performs real browser calls to:
https://api.osv.dev/v1/querybatchhttps://registry.npmjs.org/<package>
CI proof artifact
docs/proof/latest.json is generated by running actual DepGuard core logic in CI:
workflow:
.github/workflows/proof-artifact.ymlscript:
scripts/generate-proof.mjs
This is not simulation data.
3) How to test Docker image online (without local Docker)
Use GitHub Actions manual workflow:
Workflow:
.github/workflows/docker-smoke.ymlTrigger: Actions → Docker Smoke Test (GHCR) → Run workflow
It validates:
image can be pulled from GHCR
manifest inspection works
container runtime works (
node --version)MCP entrypoint file exists (
/app/dist/index.js)
So you can prove your container works even without Docker installed locally.
4) GitHub Pages setup
Use workflow-based Pages deploy for consistency:
GitHub repo → Settings → Pages
Source: GitHub Actions
Keep
.github/workflows/pages.ymlenabled
5) Local dev (optional)
npm install
npm run test
npm run build
npm run dev6) Environment variables
CACHE_TTL_SECONDS(default86400)DEPGUARD_CACHE_PATH(default.depguard-cache.sqlite)DEPGUARD_HTTP_TIMEOUT_MS(default7000)DEPGUARD_HTTP_RETRIES(default2)DEPGUARD_HTTP_RETRY_DELAY_MS(default250)
7) CI/CD workflows in this repo
ci.yml→ tests + buildpages.yml→ deploysdocs/to GitHub Pagesproof-artifact.yml→ refreshes real proof JSONpublish-docker.yml→ publishes multi-arch GHCR imagedocker-smoke.yml→ manual online container verification