/ الدليل / الملعب / DepWire
● رسمي depwire ⚡ فوري

DepWire

بواسطة depwire · depwire/depwire

Dependency graph context for AI-assisted refactoring.

DepWire builds a real dependency graph of your codebase and exposes it as MCP tools — 15+ queries like 'who imports this?', 'what does this function call transitively?', and 'what tests exercise this file?'. Designed to give refactoring agents the context they currently lack.

لماذا تستخدمه

الميزات الأساسية

عرض مباشر

كيف يبدو في الممارسة

depwire-mcp.replay ▶ جاهز
0/0

التثبيت

اختر العميل

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "depwire-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "depwire"
      ]
    }
  }
}

افتح Claude Desktop → Settings → Developer → Edit Config. أعد التشغيل بعد الحفظ.

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "depwire-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "depwire"
      ]
    }
  }
}

يستخدم Cursor نفس مخطط mcpServers مثل Claude Desktop. إعدادات المشروع أولى من الإعدادات العامة.

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "depwire-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "depwire"
      ]
    }
  }
}

انقر على أيقونة MCP Servers في شريط Cline الجانبي، ثم "Edit Configuration".

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "depwire-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "depwire"
      ]
    }
  }
}

نفس الصيغة مثل Claude Desktop. أعد تشغيل Windsurf لتطبيق التغييرات.

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "depwire-mcp",
      "command": "npx",
      "args": [
        "-y",
        "depwire"
      ]
    }
  ]
}

يستخدم Continue مصفوفة من كائنات الخادم بدلاً من خريطة.

~/.config/zed/settings.json
{
  "context_servers": {
    "depwire-mcp": {
      "command": {
        "path": "npx",
        "args": [
          "-y",
          "depwire"
        ]
      }
    }
  }
}

أضف إلى context_servers. يعيد Zed التحميل تلقائيًا عند الحفظ.

claude mcp add depwire-mcp -- npx -y depwire

أمر من سطر واحد. تحقق باستخدام claude mcp list. احذف باستخدام claude mcp remove.

حالات الاستخدام

استخدامات عملية: DepWire

Rename an exported symbol safely across an unfamiliar codebase

👤 Engineers refactoring legacy code ⏱ ~15 min intermediate

متى تستخدمه: You don't trust the codebase enough to just grep-and-rename.

المتطلبات الأساسية
  • Server/skill installed and authenticated — See repo README
الخطوات
  1. Map the impact
    Show me every file that imports parseConfig from src/config.ts.✓ تم النسخ
    → List of importers grouped by package
  2. Find covering tests
    Which tests exercise src/config.ts? Run them first.✓ تم النسخ
    → Test files + pass/fail status
  3. Refactor
    Rename to loadConfig everywhere. Update tests too.✓ تم النسخ
    → Diff across all importers

النتيجة: Rename with confidence — every call site and every test accounted for.

المزالق
  • Dynamic imports (require(x)) won't show up in the graph. For dynamic dispatch, double-check with grep. — Dynamic imports (require(x)) won't show up in the graph. For dynamic dispatch, double-check with grep.
اجمعها مع: filesystem · github

التركيبات

اجمعها مع خوادم MCP أخرى لتحقيق نتائج x10

depwire-mcp + filesystem

Pair with filesystem for complementary capabilities

Use this server together with filesystem to complete a multi-step task.✓ تم النسخ
depwire-mcp + github

Pair with github for complementary capabilities

Use this server together with github to complete a multi-step task.✓ تم النسخ

الأدوات

ما يوفره هذا الـ MCP

الأداةالمدخلاتمتى تستدعيهاالتكلفة
who_imports file_or_symbol Find the blast radius of a change free
transitive_callers symbol Trace a function's full caller tree free
tests_covering file Find tests to run after touching a file free

التكلفة والحدود

تكلفة التشغيل

حصة API
See provider docs for rate limits
الرموز لكل استدعاء
Varies by tool
التكلفة المالية
See repo README for pricing details
نصيحة
Cache tool results and avoid repeated identical calls.

الأمان

الصلاحيات والأسرار ونطاق الأثر

تخزين بيانات الاعتماد: Use environment variables; never commit secrets
نقل البيانات الخارجي: Tool calls go to the provider's API as documented

استكشاف الأخطاء

الأخطاء الشائعة وحلولها

no index built

Run depwire index from the repo root before first use. Re-run after major branch switches.

تحقق: who_imports returns results
missing files

Add the language pack (e.g. depwire lang add python) if your repo isn't pure TS.

تحقق: depwire status lists the language

البدائل

DepWire مقابل البدائل

البديلمتى تستخدمهاالمقايضة
Sourcegraph MCPYou want hosted multi-repo searchEnterprise; depwire is local-first

المزيد

الموارد

📖 اقرأ ملف README الرسمي على GitHub

🐙 تصفح القضايا المفتوحة

🔍 تصفح أكثر من 400 خادم MCP و Skills