mcp-dependency-drift-audit
하는 일
이 도구는 `.mcp.json` 같은 설정 파일을 확인해, npm/npx 소프트웨어 패키지에 대한 참조가 검토 후에 예기치 않게 바뀌지 않는지 확인합니다. 파일을 실행하지 않고 읽기만 하여 일관성과 보안을 유지하도록 돕습니다.
사용하는 경우
- ✓AI 설정 파일을 승인하기 전에 확인해야 할 때.
- ✓코드 업데이트에 보안 점검을 추가할 때.
- ✓AI 설정에 대한 보안 검토를 할 때.
스킬 링크
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/mcp-dependency-drift-audit/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이 프로젝트의 AI 설정을 확인해서, 제가 검토한 뒤에 의존성이 바뀌지 않는지 확인해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
도구는 AI 설정 파일을 읽고 패키지 참조를 분석합니다. 이 참조들이 앞으로 다른 버전을 가리킬 수 있는지 확인하며, AI 서버 코드는 실행하지 않습니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
MCP Dependency Drift Audit
Overview
Audit Model Context Protocol configuration files for npm/npx package references that can resolve to different code after the configuration was reviewed. The workflow is deliberately static: it reads config text, classifies version selectors, and recommends reproducibility fixes without starting discovered MCP servers.
Dependency mutability is a review-boundary signal, not proof that a package is malicious, vulnerable, or compromised.
When to Use This Skill
- Before approving
.mcp.json, Cursor, VS Code, GitHub Copilot, Claude, or Windsurf MCP configuration. - When adding an MCP configuration gate to pull requests or CI.
- During an AI-agent security review where npm/npx-backed MCP servers are configured.
- When checking whether a previously reviewed MCP config can silently resolve to newer package code.
How It Works
Step 1: Locate and read MCP configs without executing them
Inspect known project paths such as .mcp.json, .github/mcp.json, .cursor/mcp.json, .vscode/mcp.json, and .windsurf/mcp.json, plus any MCP config explicitly supplied by the user.
Read them as text/JSON only. Never run a discovered command or args value as part of this audit. Stay inside the requested workspace by default; only include user-level/global MCP configuration if the user explicitly asks for machine-wide scope.
Step 2: Use MCP Drift Check when already available
If mcp-drift-check is already installed, use the workspace-scoped mode from the intended repo root:
mcp-drift-check scan-workspace --markdown
For CI evidence:
mcp-drift-check scan-workspace --sarif mcp-drift.sarif --markdown
If the scanner is not installed, explain that the following command fetches the open-source scanner from GitHub and get user approval before running it:
uvx --from git+https://github.com/tomelias10/mcp-drift-check mcp-drift-check scan-workspace --markdown
If the user declines network access or installation, continue with the manual rules below.
Step 3: Apply the manual static rules
For npm/npx-style package selectors:
| Selector | Classification | Reason |
|---|---|---|
package@1.2.3 |
SAFE | Exact package version is reproducible. |
bare package or @scope/package |
HIGH | A later resolution can select different package code. |
package@latest |
HIGH | The selector is explicitly mutable. |
package@^1.2.0, ~1.2.0, >=1.2.0, wildcard |
MEDIUM | Resolution can change within the allowed range. |
| local path, script, binary, unknown executable | REVIEW | npm version-drift rules do not establish update behavior. |
Treat -y / --yes as context only. It suppresses interactive confirmation but is not a vulnerability by itself.
Step 4: Recommend remediation without inventing versions
For mutable npm/npx references, recommend pinning to an exact version that the team has actually reviewed and then updating that pin deliberately.
Do not guess the version to pin. If registry lookup is needed, explain that it requires network access and ask before querying it.
Pinning improves reproducibility. It does not establish package provenance, vulnerability status, authorization safety, prompt-injection resistance, or runtime isolation.
Step 5: Produce a bounded report
Return:
| Config | MCP server | Package/reference | Classification | Why | Recommended next step |
|---|
Then state:
- No MCP servers were executed during the audit.
- Mutable dependency references are review/reproducibility signals, not breach claims.
- A clean dependency-drift result is not a complete MCP security assessment.
Examples
Example 1: Audit before approval
User: Audit this repo's MCP config before we approve it. Do not run any MCP servers.
Expected shape:
.mcp.json | browser | @example/browser-mcp@latest | HIGH
Reason: @latest can resolve to different package code later.
Next step: pin the exact version your team reviews and update it deliberately.
No MCP servers were executed.
Example 2: Add a CI gate
For GitHub Actions:
- uses: actions/checkout@v4
- uses: tomelias10/mcp-drift-check@v0
MCP Drift Check can also emit SARIF 2.1.0 for GitHub Code Scanning. The action defaults to workspace-only discovery; machine-wide user-level scanning remains an explicit scan-all choice.
Best Practices
…
자주 묻는 질문
의존성 「drift」란 무엇인가요?
패키지 참조(예: 버전 번호)가 시간이 지나며 바뀌어, 처음 검토하고 승인한 코드와 다른 코드를 가리키게 되는 현상입니다.
이 도구는 AI 코드를 실행하나요?
아니요. 설정 파일을 읽고 패키지 참조를 분석할 뿐입니다. AI 서버를 실행하지 않습니다.
버전 「고정(pinning)」이란 무엇인가요?
「latest」나 버전 범위 같은 일반적인 참조 대신, 소프트웨어 패키지의 정확한 버전 번호를 지정하는 것입니다. 이렇게 하면 항상 같은 패키지 버전이 사용됩니다.
상세 정보
작성자의 원본 설명
Statically audit MCP configs for mutable npm/npx package references before approval or CI, without executing discovered MCP servers.
인기도
- GitHub 스타
- 48k
- 순위
- #5186
- 라이선스
- MIT
- 업데이트
- 2026. 10. 15.
댓글
- …
이 저장소의 다른 스킬
00-andruia-consultant
48k에이전트가 AI 프로젝트를 시작하거나 개선할 수 있도록 코드를 분석하고 스페인어로 실행 계획을 세워 줍니다.
007
48k에이전트가 보안 감사와 위협 모델링을 수행해 공격과 취약점으로부터 프로젝트를 보호하도록 돕습니다.
10-andruia-skill-smith
48k에이전트가 AI 도구의 작동 방식을 정의하고 문서를 쓰며 구조를 검증하도록 돕습니다.
20-andruia-niche-intelligence
48k에이전트가 신뢰할 수 있는 자료를 바탕으로 특정 산업의 맥락, 규칙, 사용 패턴, 위험을 정리한 요약을 만들도록 돕습니다.
비슷한 스킬
mcporter
394k에이전트가 HTTP나 stdio로 MCP 서버와 그 도구를 목록화하고, 호출하고, 점검하며, 로그인 설정을 관리하도록 돕습니다.
fastmcp
260kAPI, 데이터베이스, 파일에 AI 어시스턴트가 도구로 접근할 수 있도록 Python MCP 서버를 만들고 테스트하고 배포하도록 돕습니다.
mcp-oauth-remote-gateway
260kHermes가 서버에서 실행될 때 일반 브라우저 로그인이 닿지 않는 경우를 위해, 원격 MCP 서버의 OAuth 로그인을 단계별로 안내합니다.