Transactional refactoring MCP with 11 evidence-backed tools, hash-bound previews, and rollback.
Connect Runs on your machine
claude mcp add weavatrix-refactor-js -e WEAVATRIX_ALLOW_SOURCE_EDITS=<WEAVATRIX_ALLOW_SOURCE_EDITS> -e WEAVATRIX_REFACTOR_HOME=<WEAVATRIX_REFACTOR_HOME> -e WEAVATRIX_PRECISION=<WEAVATRIX_PRECISION> -- npx -y [email protected]
{
"mcpServers": {
"weavatrix-refactor-js": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"WEAVATRIX_ALLOW_SOURCE_EDITS": "<WEAVATRIX_ALLOW_SOURCE_EDITS>",
"WEAVATRIX_REFACTOR_HOME": "<WEAVATRIX_REFACTOR_HOME>",
"WEAVATRIX_PRECISION": "<WEAVATRIX_PRECISION>"
}
}
}
}
{
"mcpServers": {
"weavatrix-refactor-js": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"WEAVATRIX_ALLOW_SOURCE_EDITS": "<WEAVATRIX_ALLOW_SOURCE_EDITS>",
"WEAVATRIX_REFACTOR_HOME": "<WEAVATRIX_REFACTOR_HOME>",
"WEAVATRIX_PRECISION": "<WEAVATRIX_PRECISION>"
}
}
}
}
{
"servers": {
"weavatrix-refactor-js": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"WEAVATRIX_ALLOW_SOURCE_EDITS": "<WEAVATRIX_ALLOW_SOURCE_EDITS>",
"WEAVATRIX_REFACTOR_HOME": "<WEAVATRIX_REFACTOR_HOME>",
"WEAVATRIX_PRECISION": "<WEAVATRIX_PRECISION>"
}
}
}
}
Replace the values in angle brackets with your own. Keys stay on your machine; we never see them.
Tools
This server runs locally, so its tools are listed by your MCP client once it starts.
Environment variables
| Name | Description |
|---|---|
WEAVATRIX_ALLOW_SOURCE_EDITSOptional | Set to 1 to authorize apply_edit_plan and rollback to write source files; unset, the refactor tools stay preview-only |
WEAVATRIX_REFACTOR_HOMEOptional | Optional directory for the rollback snapshot store; defaults to a per-repo location |
WEAVATRIX_PRECISIONOptional | Core semantic precision: lsp (default) or off |
Details
| Package | [email protected] (NPM, stdio) |
| First published | 10 Aug 2026 |
| Last updated | 10 Aug 2026 |
| Registry name | io.github.sergii-ziborov/weavatrix-refactor-js |
More other servers See all
Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.
