mcp-dependency-drift-audit
यह क्या करती है
यह टूल `.mcp.json` जैसी कॉन्फ़िगरेशन फ़ाइलों को जाँचता है, ताकि npm/npx वाले सॉफ़्टवेयर पैकेज के रेफ़रेंस रिव्यू के बाद चुपचाप बदल न जाएँ। यह फ़ाइलों को बिना चलाए सिर्फ़ पढ़ता है, जिससे consistency और सिक्योरिटी बनी रहती है।
कब इस्तेमाल करें
- ✓AI कॉन्फ़िगरेशन फ़ाइल को मंज़ूरी देने से पहले।
- ✓कोड अपडेट में सिक्योरिटी चेक जोड़ते समय।
- ✓AI कॉन्फ़िगरेशन की सिक्योरिटी रिव्यू के दौरान।
Skill का लिंक
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 में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“इस प्रोजेक्ट की AI कॉन्फ़िगरेशन जाँचो कि मेरे रिव्यू करने के बाद डिपेंडेंसी बदलेंगी तो नहीं।”
हर हफ़्ते 5 नई skills, 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
- अपडेट की गई
- 15/10/2026
कमेंट
- …
इस repository की और skills
00-andruia-consultant
48kआपके एजेंट को AI प्रोजेक्ट शुरू करने या उन्हें बेहतर बनाने में मदद करता है। यह code का विश्लेषण करता है, tools सुझाता है और स्पेनिश भाषा में action plan बनाता है।
007
48kआपका एजेंट security audit और threat modeling करता है। यह प्रोजेक्ट को हमलों और कमजोरियों से बचाने में काम आता है।
10-andruia-skill-smith
48kआपके एजेंट को AI tools बनाने या उन्हें बेहतर करने में मदद करता है। यह तय करता है कि tools कैसे काम करेंगे, documentation लिखता है और structure की जांच करता है।
20-andruia-niche-intelligence
48kआपका एजेंट किसी खास industry का summary बनाता है। भरोसेमंद स्रोतों की मदद से यह प्रोजेक्ट का संदर्भ, नियम, इस्तेमाल के तरीके और जोखिम समझने में मदद करता है।
मिलती-जुलती skills
mcporter
394kयह आपके एजेंट को HTTP या stdio पर MCP सर्वर और उनके टूल सूचीबद्ध करने, चलाने और जांचने देती है, और उनकी साइन-इन सेटिंग्स प्रबंधित करती है।
fastmcp
260kआपको Python में MCP सर्वर बनाने, जाँचने और तैनात करने में मदद करती है, जो AI सहायकों को आपके API, डेटाबेस या फ़ाइलों तक टूल के रूप में पहुँच देता है।
mcp-oauth-remote-gateway
260kजब Hermes किसी सर्वर पर चलता है, तो रिमोट MCP सर्वर के लिए OAuth साइन-इन हाथ से करने में मदद करती है, जहाँ सामान्य ब्राउज़र साइन-इन नहीं पहुँच पाता।