weavatrix refactor js for Cursor
io.github.sergii-ziborov/weavatrix-refactor-js
Transactional refactoring MCP with 11 evidence-backed tools, hash-bound previews, and rollback.
client:Cursor
transport:stdio
runtime:npm
Install weavatrix refactor js in Cursor
~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json
{
"mcpServers": {
"weavatrix-refactor-js": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"weavatrix-refactor-js"
],
"env": {
"WEAVATRIX_ALLOW_SOURCE_EDITS": "<WEAVATRIX_ALLOW_SOURCE_EDITS>",
"WEAVATRIX_REFACTOR_HOME": "<WEAVATRIX_REFACTOR_HOME>",
"WEAVATRIX_PRECISION": "<WEAVATRIX_PRECISION>"
}
}
}
}
Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs