PluginBench
MCP Server
Active
MIT

io.github.sergii-ziborov/weavatrix-refactor-js MCP Server

io.github.sergii-ziborov/weavatrix-refactor-js

What is the io.github.sergii-ziborov/weavatrix-refactor-js MCP server?

Transactional refactoring MCP with 11 evidence-backed tools, hash-bound previews, and rollback.

How to install io.github.sergii-ziborov/weavatrix-refactor-js

Copy-paste configuration for popular MCP clients.

transport: stdio
Config generated by PluginBench — verify against the source before use.
Environment / auth
  • WEAVATRIX_ALLOW_SOURCE_EDITS

    Set to 1 to authorize apply_edit_plan and rollback to write source files; unset, the refactor tools stay preview-only

  • WEAVATRIX_REFACTOR_HOME

    Optional directory for the rollback snapshot store; defaults to a per-repo location

  • WEAVATRIX_PRECISION

    Core semantic precision: lsp (default) or off

Claude Desktop
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "weavatrix-refactor-js": {
      "command": "npx",
      "args": [
        "-y",
        "weavatrix-refactor-js",
        "repoRoot"
      ],
      "env": {
        "WEAVATRIX_ALLOW_SOURCE_EDITS": "<YOUR_WEAVATRIX_ALLOW_SOURCE_EDITS>",
        "WEAVATRIX_REFACTOR_HOME": "<YOUR_WEAVATRIX_REFACTOR_HOME>",
        "WEAVATRIX_PRECISION": "<YOUR_WEAVATRIX_PRECISION>"
      }
    }
  }
}
Cursor
~/.cursor/mcp.json
{
  "mcpServers": {
    "weavatrix-refactor-js": {
      "command": "npx",
      "args": [
        "-y",
        "weavatrix-refactor-js",
        "repoRoot"
      ],
      "env": {
        "WEAVATRIX_ALLOW_SOURCE_EDITS": "<YOUR_WEAVATRIX_ALLOW_SOURCE_EDITS>",
        "WEAVATRIX_REFACTOR_HOME": "<YOUR_WEAVATRIX_REFACTOR_HOME>",
        "WEAVATRIX_PRECISION": "<YOUR_WEAVATRIX_PRECISION>"
      }
    }
  }
}
Windsurf
~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "weavatrix-refactor-js": {
      "command": "npx",
      "args": [
        "-y",
        "weavatrix-refactor-js",
        "repoRoot"
      ],
      "env": {
        "WEAVATRIX_ALLOW_SOURCE_EDITS": "<YOUR_WEAVATRIX_ALLOW_SOURCE_EDITS>",
        "WEAVATRIX_REFACTOR_HOME": "<YOUR_WEAVATRIX_REFACTOR_HOME>",
        "WEAVATRIX_PRECISION": "<YOUR_WEAVATRIX_PRECISION>"
      }
    }
  }
}
VS Code
.vscode/mcp.json
{
  "servers": {
    "weavatrix-refactor-js": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "weavatrix-refactor-js",
        "repoRoot"
      ],
      "env": {
        "WEAVATRIX_ALLOW_SOURCE_EDITS": "<YOUR_WEAVATRIX_ALLOW_SOURCE_EDITS>",
        "WEAVATRIX_REFACTOR_HOME": "<YOUR_WEAVATRIX_REFACTOR_HOME>",
        "WEAVATRIX_PRECISION": "<YOUR_WEAVATRIX_PRECISION>"
      }
    }
  }
}
Claude Code
claude mcp add weavatrix-refactor-js --env WEAVATRIX_ALLOW_SOURCE_EDITS=<YOUR_WEAVATRIX_ALLOW_SOURCE_EDITS> --env WEAVATRIX_REFACTOR_HOME=<YOUR_WEAVATRIX_REFACTOR_HOME> --env WEAVATRIX_PRECISION=<YOUR_WEAVATRIX_PRECISION> -- npx -y weavatrix-refactor-js repoRoot

Related MCP servers

Weavatrix

Active

Native Weavatrix MCP: 43 read-only repository tools across 24 code and configuration surfaces.

4
JavaScript
MIT
View repository →

Local-first Wi-Fi incident diagnostics with native BLE scan, history, and risk evidence.

1
Rust
MIT
View repository →

Source-free Weavatrix MCP: preview-gated sync, advisories, malware review, architecture contracts.

1
JavaScript
MIT
View repository →

Transactional refactoring MCP with 11 evidence-backed tools, hash-bound previews, and rollback.

1
JavaScript
MIT
View repository →

Fast, bounded, read-only Git evidence for local AI coding agents.

0
Rust
MIT
View repository →

Always-fresh local repo graph: LSP-backed impact, Health, dead code, endpoints, architecture.

0
JavaScript
MIT
View repository →