Weavatrix Refactor MCP
A transactional refactoring layer for AI coding agents that provides 11 MCP methods for evidence-backed planning, write-gated application, and drift-checked rollback. It operates over a Rust evidence engine to ensure safe, previewable, and recoverable source code modifications.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
What you can do with it
- Preview byte-exact edits before applying changes
- Rename symbols across files with impact analysis
- Rollback last applied changes to restore state
- Analyze change impact and blast radius
Source and maintenance
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
weavatrix-refactor 1.0.8
{
"version": "1.0.8",
"transport": "stdio",
"identifier": "weavatrix-refactor",
"runtimeHint": "npx",
"registryType": "npm",
"registryBaseUrl": "https://registry.npmjs.org",
"packageArguments": [
{
"type": "positional",
"value": "mcp"
},
{
"type": "positional",
"format": "filepath",
"default": ".",
"valueHint": "repoRoot",
"description": "Absolute path to the initial local repository; defaults to the current directory"
}
],
"environmentVariables": [
{
"name": "WEAVATRIX_ALLOW_SOURCE_EDITS",
"format": "string",
"description": "Set to 1 to authorize confirmed apply operations and rollback to write source files; unset, the refactor tools stay preview-only"
}
]
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"weavatrix-refactor-mcp": {
"command": "npx",
"args": [
"-y",
"weavatrix-refactor@1.0.8",
"mcp"
],
"env": {
"WEAVATRIX_ALLOW_SOURCE_EDITS": "<YOUR_WEAVATRIX_ALLOW_SOURCE_EDITS>"
}
}
}
}Cline
{
"mcpServers": {
"weavatrix-refactor-mcp": {
"command": "npx",
"args": [
"-y",
"weavatrix-refactor@1.0.8",
"mcp"
],
"env": {
"WEAVATRIX_ALLOW_SOURCE_EDITS": "<YOUR_WEAVATRIX_ALLOW_SOURCE_EDITS>"
}
}
}
}VS Code
{
"servers": {
"weavatrix-refactor-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"weavatrix-refactor@1.0.8",
"mcp"
],
"env": {
"WEAVATRIX_ALLOW_SOURCE_EDITS": "<YOUR_WEAVATRIX_ALLOW_SOURCE_EDITS>"
}
}
}
}Claude Desktop
{
"mcpServers": {
"weavatrix-refactor-mcp": {
"command": "npx",
"args": [
"-y",
"weavatrix-refactor@1.0.8",
"mcp"
],
"env": {
"WEAVATRIX_ALLOW_SOURCE_EDITS": "<YOUR_WEAVATRIX_ALLOW_SOURCE_EDITS>"
}
}
}
}Let your agent find its tools
Find servers like Weavatrix Refactor MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.