weavatrix refactor js for VS Code
io.github.sergii-ziborov/weavatrix-refactor-js
Transactional refactoring MCP with 11 evidence-backed tools, hash-bound previews, and rollback.
client:VS Code
transport:stdio
runtime:npm
Install weavatrix refactor js in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "weavatrix-allow-source-edits",
"description": "WEAVATRIX_ALLOW_SOURCE_EDITS",
"password": true
},
{
"type": "promptString",
"id": "weavatrix-refactor-home",
"description": "WEAVATRIX_REFACTOR_HOME",
"password": true
},
{
"type": "promptString",
"id": "weavatrix-precision",
"description": "WEAVATRIX_PRECISION",
"password": true
}
],
"servers": {
"weavatrix-refactor-js": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"weavatrix-refactor-js"
],
"env": {
"WEAVATRIX_ALLOW_SOURCE_EDITS": "${input:weavatrix-allow-source-edits}",
"WEAVATRIX_REFACTOR_HOME": "${input:weavatrix-refactor-home}",
"WEAVATRIX_PRECISION": "${input:weavatrix-precision}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs