/ Annuaire / Playground / DepWire
● Officiel depwire ⚡ Instantané

DepWire

par 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.

Pourquoi l'utiliser

Fonctionnalités clés

Démo en direct

Aperçu en pratique

depwire-mcp.replay ▶ prêt
0/0

Installer

Choisissez votre client

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

Ouvrez Claude Desktop → Settings → Developer → Edit Config. Redémarrez après avoir enregistré.

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

Cursor utilise le même schéma mcpServers que Claude Desktop. La config projet l'emporte sur la globale.

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

Cliquez sur l'icône MCP Servers dans la barre latérale Cline, puis "Edit Configuration".

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

Même format que Claude Desktop. Redémarrez Windsurf pour appliquer.

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

Continue utilise un tableau d'objets serveur plutôt qu'une map.

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

Ajoutez dans context_servers. Zed recharge à chaud à la sauvegarde.

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

Une seule ligne. Vérifiez avec claude mcp list. Supprimez avec claude mcp remove.

Cas d'usage

Usages concrets : DepWire

Rename an exported symbol safely across an unfamiliar codebase

👤 Engineers refactoring legacy code ⏱ ~15 min intermediate

Quand l'utiliser : You don't trust the codebase enough to just grep-and-rename.

Prérequis
  • Server/skill installed and authenticated — See repo README
Déroulement
  1. Map the impact
    Show me every file that imports parseConfig from src/config.ts.✓ Copié
    → List of importers grouped by package
  2. Find covering tests
    Which tests exercise src/config.ts? Run them first.✓ Copié
    → Test files + pass/fail status
  3. Refactor
    Rename to loadConfig everywhere. Update tests too.✓ Copié
    → Diff across all importers

Résultat : Rename with confidence — every call site and every test accounted for.

Pièges
  • 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.
Combiner avec : filesystem · github

Combinaisons

Associez-le à d'autres MCPs pour un effet X10

depwire-mcp + filesystem

Pair with filesystem for complementary capabilities

Use this server together with filesystem to complete a multi-step task.✓ Copié
depwire-mcp + github

Pair with github for complementary capabilities

Use this server together with github to complete a multi-step task.✓ Copié

Outils

Ce que ce MCP expose

OutilEntréesQuand appelerCoût
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

Coût et limites

Coût d'exécution

Quota d'API
See provider docs for rate limits
Tokens par appel
Varies by tool
Monétaire
See repo README for pricing details
Astuce
Cache tool results and avoid repeated identical calls.

Sécurité

Permissions, secrets, portée

Stockage des identifiants : Use environment variables; never commit secrets
Sortie de données : Tool calls go to the provider's API as documented

Dépannage

Erreurs courantes et correctifs

no index built

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

Vérifier : who_imports returns results
missing files

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

Vérifier : depwire status lists the language

Alternatives

DepWire vs autres

AlternativeQuand l'utiliserCompromis
Sourcegraph MCPYou want hosted multi-repo searchEnterprise; depwire is local-first

Plus

Ressources

📖 Lire le README officiel sur GitHub

🐙 Voir les issues ouvertes

🔍 Parcourir les 400+ serveurs MCP et Skills