/ Directorio / Playground / DepWire
● Oficial depwire ⚡ Instantáneo

DepWire

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

Por qué usarlo

Características clave

Demo en vivo

Cómo se ve en la práctica

depwire-mcp.replay ▶ listo
0/0

Instalar

Elige tu cliente

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

Abre Claude Desktop → Settings → Developer → Edit Config. Reinicia después de guardar.

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

Cursor usa el mismo esquema mcpServers que Claude Desktop. La configuración del proyecto prevalece sobre la global.

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

Haz clic en el icono MCP Servers de la barra lateral de Cline y luego en "Edit Configuration".

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

Mismo formato que Claude Desktop. Reinicia Windsurf para aplicar.

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

Continue usa un array de objetos de servidor en lugar de un mapa.

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

Añádelo a context_servers. Zed recarga en caliente al guardar.

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

Un solo comando. Verifica con claude mcp list. Quita con claude mcp remove.

Casos de uso

Usos del mundo real: DepWire

Rename an exported symbol safely across an unfamiliar codebase

👤 Engineers refactoring legacy code ⏱ ~15 min intermediate

Cuándo usarlo: You don't trust the codebase enough to just grep-and-rename.

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

Resultado: Rename with confidence — every call site and every test accounted for.

Errores comunes
  • 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.
Combinar con: filesystem · github

Combinaciones

Combínalo con otros MCPs para multiplicar por 10

depwire-mcp + filesystem

Pair with filesystem for complementary capabilities

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

Pair with github for complementary capabilities

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

Herramientas

Lo que expone este MCP

HerramientaEntradasCuándo llamarCoste
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

Coste y límites

Lo que cuesta ejecutarlo

Cuota de API
See provider docs for rate limits
Tokens por llamada
Varies by tool
Monetario
See repo README for pricing details
Consejo
Cache tool results and avoid repeated identical calls.

Seguridad

Permisos, secretos, alcance

Almacenamiento de credenciales: Use environment variables; never commit secrets
Salida de datos: Tool calls go to the provider's API as documented

Resolución de problemas

Errores comunes y soluciones

no index built

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

Verificar: who_imports returns results
missing files

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

Verificar: depwire status lists the language

Alternativas

DepWire vs otros

AlternativaCuándo usarlaContrapartida
Sourcegraph MCPYou want hosted multi-repo searchEnterprise; depwire is local-first

Más

Recursos

📖 Lee el README oficial en GitHub

🐙 Ver issues abiertas

🔍 Ver todos los 400+ servidores MCP y Skills