Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
作者提供的说明(英文原文)
Transactional refactoring extension with 11 evidence-backed tools, previews, and rollback.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
WEAVATRIX_ALLOW_SOURCE_EDITS你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"weavatrix-refactor": {
"command": "npx",
"args": [
"-y",
"weavatrix-refactor",
"mcp",
"."
],
"env": {
"WEAVATRIX_ALLOW_SOURCE_EDITS": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add weavatrix-refactor --env WEAVATRIX_ALLOW_SOURCE_EDITS=your-value -- npx -y weavatrix-refactor mcp .运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"weavatrix-refactor": {
"command": "npx",
"args": [
"-y",
"weavatrix-refactor",
"mcp",
"."
],
"env": {
"WEAVATRIX_ALLOW_SOURCE_EDITS": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"weavatrix-refactor": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"weavatrix-refactor",
"mcp",
"."
],
"env": {
"WEAVATRIX_ALLOW_SOURCE_EDITS": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
WEAVATRIX_ALLOW_SOURCE_EDITS env这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月6日
注册名称已通过 GitHub 账户 Weavatrix 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(1.0.11)于2个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有:Spec Driven Development, Remote Desktop Commander, AI Deprecations
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.
AI model shutdown dates, replacements, change feed and webhook alerts for 8 providers.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
The explicit source-write layer of the Weavatrix ecosystem; Core remains read-only.
Refactor across files without letting the agent guess.
Weavatrix Refactor is a native MCP server for coding agents. It finds a symbol through the repository graph, previews byte-exact edits, reports every same-named occurrence it could not prove, and writes only after an explicit, hash-bound confirmation.
The useful difference is not “AI can rename a word.” It is that the agent gets evidence before the write and a recoverable transaction after it.
Run the native binary through npm:
npx -y weavatrix-refactor mcp /absolute/path/to/repository
Or install it with Cargo:
cargo install weavatrix-refactor --locked
weavatrix-refactor mcp /absolute/path/to/repository
An MCP client can start it directly. Prefer an absolute path, or Cursor's ${workspaceFolder} so the write server never follows the host process cwd:
{
"mcpServers": { "weavatrix-refactor": { "command": "npx", "args": ["-y", "weavatrix-refactor@1.0.11", "mcp", "${workspaceFolder}", "--profile=refactor"], "env": {"WEAVATRIX_ALLOW_SOURCE_EDITS": "1"} } } }
Leave WEAVATRIX_ALLOW_SOURCE_EDITS unset for preview-only sessions. Preview is a read; only a confirmed apply or rollback requires the gate. Refactor does not expose Core's open_repo, so it cannot silently retarget mid-session; the launch root is the only repository it will edit.
The repository also ships one plugin bundle for Cursor, Codex, Claude Code, and Grok Build. The plugin starts the extension-only profile, so it contributes the 11 Refactor methods without repeating Weavatrix Core's 43 read-only method definitions. Install the separate Weavatrix plugin when both surfaces are needed.
The bundled skill is optional and activates only for explicitly requested refactoring work. Its entry point stays short; each method has an individual reference card that is loaded only when needed.
Weavatrix/weavatrix-refactor marketplace from .agents/plugins, then add weavatrix-refactor@weavatrix-refactor..claude-plugin, then install weavatrix-refactor@weavatrix-refactor.grok plugin marketplace add Weavatrix/weavatrix-refactor, open /marketplace, and install it.The plugin opens WEAVATRIX_ALLOW_SOURCE_EDITS=1, but every write still needs the exact preview's short-lived, plan-bound single-use token.
For a rename task, expose only the two tools the agent needs:
weavatrix-refactor mcp /absolute/path/to/repository --profile=rename
The rename profile keeps rename_symbol and rollback_last_apply; every unrelated graph and refactor tool is absent and cannot be called. Omit the option (or use --profile=refactor) for all 11 Refactor methods. The narrower catalog reduces repeated agent context; it does not weaken preview hashes, the write gate, the confirmation token, or rollback checks.
When Weavatrix Core is already installed as a separate MCP, expose only the 11 methods that Refactor adds:
weavatrix-refactor mcp /absolute/path/to/repository --profile=refactor
The refactor profile is the default for MCP and list-tools, including the marketplace plugin. The former full compatibility profile has been removed and is rejected by both commands: Refactor no longer republishes Core methods. Install Weavatrix Core as its own MCP when read-only repository intelligence is also needed.
Suppose two files declare resolveTarget. A bare name is ambiguous, so the server refuses to pick one and returns exact ids:
// rename_symbol
{"symbol":"resolveTarget","new_name":"locateTarget","output_format":"json"}
{ "status": "NOT_FOUND", "reason": "the name matches more than one symbol; pass one of the candidate ids", "candidates": [ "symbol:src/core.ts#function:resolveTarget@2:1", "symbol:src/shadow.ts#function:resolveTarget@3:1" ] }
Retry with the intended id. The result is still read-only: it contains the edit plan, content hashes, the proven edit count, and the references the backend refused to guess at.
// rename_symbol
{ "symbol": "symbol:src/core.ts#function:resolveTarget@2:1", "new_name": "locateTarget", "output_format": "json" }
{ "status": "PLANNED", "completeness": "PARTIAL", "renamedEdits": 7, "uncertainReferences": ["... three named locations ..."], "confirmToken": "single-use-token", "plan": {"schemaVersion":"weavatrix.edit-plan.v1","files":["..."]} }
After reviewing the plan, repeat the same operation with the same inputs and its token:
// rename_symbol
{ "symbol": "symbol:src/core.ts#function:resolveTarget@2:1", "new_name": "locateTarget", "mode": "apply", "confirm_token": "single-use-token", "output_format": "json" }
{"status":"APPLIED"}
This exact flow is exercised against the real stdio MCP server. The repository fixture requires seven edits across three files, preserves four traps (a longer identifier, string, comment, and unrelated shadow), and must still compile; it scores 12/12.
The eleven tools do not all claim the same level of automation:
| Level | Tools | What the agent receives |
|---|---|---|
| Complete preview/apply workflow | rename_symbol, rename_related_symbols | A generated plan and token, then a confirmed write by repeating the same operation |
| Plan-producing | change_signature, edit_symbol, bulk_replace, organize_imports, move_file | Byte-exact edits or a review plan; use apply_edit_plan where an edit-plan envelope is returned |
| Advisory | move_symbol, delete_readiness | Blast radius, cycle/architecture risks, or a deletion verdict; no automatic source write |
| Safety infrastructure | apply_edit_plan, rollback_last_apply | Verification/application of an edit-plan envelope and drift-safe restoration |
Refactor uses the Rust Weavatrix graph internally for evidence but never exports Core methods. Install the separate Weavatrix plugin for read-only repository intelligence. The Refactor MCP owns exactly its 11 extension methods; --profile=rename is an optional narrower two-method workflow.
PARTIAL means the graph proved the edits in the plan but did not prove that no other semantic references exist. uncertainReferences names the places requiring review.WEAVATRIX_ALLOW_SOURCE_EDITS=1 plus a short-lived, single-use token bound to that repository and exact recomputed plan.rollback_last_apply refuses to overwrite files that drifted after the transaction.Only edits with proven provenance are applied. A lexical or graph backend is deliberately more conservative than a language server and must not be read as a claim of full compiler semantics.
The checked-in August 2026 benchmark uses equivalent adversarial TypeScript, Rust, and Python fixtures. Each has seven required edits, four traps, and a build/test gate. Protocol runs count exact o200k_base initialization, catalog, request, and response tokens. Agent runs use the actual cumulative usage reported by Codex CLI with pinned gpt-5.6-sol / medium reasoning. No byte proxy or estimated tokens-per-second conversion is used.
The new rename-only profile kept all nine protocol runs at 12/12 while reducing fixed MCP context from 9,331 to 485 tokens. Its guided TypeScript agent A/B is:
| Arm | Correctness | Median end-to-end | Median input tokens |
|---|---|---|---|
| Naked Codex | 12/12 x3 | 42,602 ms | 72,169 |
Weavatrix 1.0.6 --profile=rename | 12/12 x3 | 48,389 ms | 108,155 |
| Weavatrix 1.0.5 full surface | 12/12 x3 | 58,719 ms | 275,784 |
| Serena | 12/12 x3 | 68,728 ms | 388,271 |
The full agent matrix is 12/12 in all 27 TypeScript/Rust/Python runs; every run also completed operationally and passed the sanitized edit-channel audit. The deterministic protocol matrix also exposed a language-specific Serena defect: its suggested find_symbol → rename_symbol flow scored 7/12 on TypeScript in all three runs, while Rust and Python passed. It also found and drove fixes for Rust macro calls and Python f-string/module-level call evidence.
On this toy TypeScript repository naked Codex is still faster and cheaper than the narrowed profile. Weavatrix's demonstrated value is preview-before-write, named uncertainty, stale-plan refusal, explicit authorization, and rollback—not a universal small-repository token win.
See the full methodology, all language medians, raw-result links, and limitations.
The 11 Refactor tool names, schemas, and result states are frozen in contract/refactor-tools.v1.json. All refactor operations are native Rust; the host uses the read-only weavatrix-rust engine internally for graph evidence without exporting its methods on the default surface.
Versions 0.1.x used the JavaScript engine. That line continues as weavatrix-refactor-js and keeps a separate state directory, token store, and rollback journal.
MIT.