Skip to content
verify mcp Beta VerifyMCP is currently in beta. If you notice any issues, get in touch and we’ll put it right.

io.github.sergii-ziborov/weavatrix-refactor-js

NPM · WEAVATRIX-REFACTOR-JS · SCANNED SEP 29

Transactional refactoring MCP with 11 evidence-backed tools, hash-bound previews, and rollback.

0 this week 85 Trust /100
Trust breakdown (7 categories)

How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. How we score → Why this is hard to score →

Supply Chain Security100
  • No malware found by supply-chain analysis.Pass
  • No known CVEs affecting this package version or its production dependencies.Pass
  • No install/post-install scripts declared.Pass
  • 0 of 5 dependencies flagged as unhealthy. View diagnostics → Pass
Provenance & Transparency71
  • Repository check failed: the declared repository URL redirects; it must resolve directly. See how to fix → View diagnostics → Fail
  • Cryptographically verified build provenance (signed, bound to sergii-ziborov/weavatrix-refactor-js). View diagnostics → Pass
  • Clear OSI-approved license (MIT).Pass
  • Actively maintained (last published 49 days ago).Pass
  • Disclosure check failed: no security disclosure policy was found in the source repository. See how to fix → Fail
Schema Quality & AI Usability66
  • AI-judged instruction clarity (good).Pass
  • Context-footprint check failed: tool/resource definitions use about 7073 tokens (~157/item across 45 items; 45 tools + 0 resources), over budget; trim descriptions and params. See how to fix → Fail
  • Usage-examples check failed: none of the tools include examples. See how to fix → Fail
Stability & Change Management100
  • No destabilizing schema changes in the last 30 days.Pass
Tool Coverage86
  • 100% of tools have a non-trivial description (not blank, and not just the tool's name).Pass
  • 59% of tool parameters carry a description.Partial
Tool Safety75
  • No prompt-injection markers were found in the server instructions, tool names or descriptions we captured.Pass
  • 0 of 2 tool(s) whose name or description implies an irreversible operation declare an MCP destructiveHint annotation; "delete_readiness" implies "delete" and declares no destructiveHint at all, which the MCP spec reads as destructive by default. See how to fix → Fail
  • An AI judge read all 46 captured unit(s) of tool text and found none that tries to manipulate the model reading it.Pass
Capabilities100
  • Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.Pass
Install

How do I install the io.github.sergii-ziborov/weavatrix-refactor-js MCP server?

io.github.sergii-ziborov/weavatrix-refactor-js runs locally as an npm package, launched with npx -y weavatrix-refactor-js. Ready-made configuration for Claude, Cursor, VS Code, Codex and 5 more is on this page, copied from each client's own documentation.

npm · weavatrix-refactor-js

# add to Claude Code
claude mcp add sergii-ziborov-weavatrix-refactor-js -- npx -y weavatrix-refactor-js
// .cursor/mcp.json
{
  "mcpServers": {
    "sergii-ziborov-weavatrix-refactor-js": {
      "command": "npx",
      "args": [
        "-y",
        "weavatrix-refactor-js"
      ]
    }
  }
}
// .vscode/mcp.json
{
  "servers": {
    "sergii-ziborov-weavatrix-refactor-js": {
      "command": "npx",
      "args": [
        "-y",
        "weavatrix-refactor-js"
      ]
    }
  }
}
# add to Codex CLI
codex mcp add sergii-ziborov-weavatrix-refactor-js -- npx -y weavatrix-refactor-js
// opencode.json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "sergii-ziborov-weavatrix-refactor-js": {
      "type": "local",
      "command": [
        "npx",
        "-y",
        "weavatrix-refactor-js"
      ],
      "enabled": true
    }
  }
}
# add to OpenClaw
openclaw mcp add sergii-ziborov-weavatrix-refactor-js --command npx --arg -y --arg weavatrix-refactor-js
# ~/.hermes/config.yaml
mcp_servers:
  sergii-ziborov-weavatrix-refactor-js:
    command: "npx"
    args: ["-y", "weavatrix-refactor-js"]
// ~/.netclaw/config/netclaw.json
{
  "McpServers": {
    "sergii-ziborov-weavatrix-refactor-js": {
      "Transport": "stdio",
      "Command": "npx",
      "Arguments": [
        "-y",
        "weavatrix-refactor-js"
      ]
    }
  }
}
# add to Vellum
assistant mcp add sergii-ziborov-weavatrix-refactor-js -t stdio -c npx -a -y weavatrix-refactor-js
// mcp.json
{
  "mcpServers": {
    "sergii-ziborov-weavatrix-refactor-js": {
      "command": "npx",
      "args": [
        "-y",
        "weavatrix-refactor-js"
      ]
    }
  }
}
Changelog

Every change we have recorded for this component, newest first. Security-relevant changes are always shown. ▲ marks a change for the better, ▼ a change for the worse; unmarked changes are neutral.

  • 29 Sept 26 0
    • Stability: 0.97 → pass security
  • 28 Sept 26 +1
    • We updated how we score, so this day's move reflects our rubric, not a change to the server See what changed → functional
  • 25 Sept 26 +1
    • We updated how we score, so this day's move reflects our rubric, not a change to the server See what changed → functional
  • 24 Sept 26 −2
    • Stability: pass → 0.83 functional
  • 23 Sept 26 0
    • Stability: 0.97 → pass security
  • 22 Sept 26 +1

    No change was recorded against any check on this day. Stability & Change Management went from 93 to 97. That category is still filling its 30-day observation window: 28 days of observed history at the previous scan, 29 at this one. The score rises as the window fills, whether or not the server changes.

  • 19 Sept 26 +1

    No change was recorded against any check on this day. Stability & Change Management went from 83 to 87. That category is still filling its 30-day observation window: 25 days of observed history at the previous scan, 26 at this one. The score rises as the window fills, whether or not the server changes.

  • 17 Sept 26 −2
    • Stability: pass → 0.80 functional
Diagnostics

Diagnostic detail from the automated scan of this channel: what the scanner observed at each step, so you can see exactly where a check passed or failed. It is informational only and never changes the trust score.

Captured 29 Sept 2026 · Analysed npm/weavatrix-refactor-js@0.1.6

Provenance Verified

A signed build attestation was found and verified, binding this exact artifact to the source repository it claims to come from.

Result Verified
Ecosystem npm
Reason Verified
Discovered via Registry attestation endpoint
Source repo sergii-ziborov/weavatrix-refactor-js
Certificate issuer https://token.actions.githubusercontent.com
Certificate SAN https://github.com/sergii-ziborov/weavatrix-refactor-js/.github/workflows/release.yml@refs/tags/v0.1.6
Rekor log index 2406562791
Predicate type SLSA build provenance https://slsa.dev/provenance/v1
Subject digest sha512:3f7e1079f3a52b784b3a0e4a20ad559dda2dbaa852330561a72c059604367eb5eac728ac1ded0376e28158112375616f7846076c2d88b1bc0003edcdf

Background: How many MCP packages publish verified provenance →

Dependencies 5 packages
Packages resolved 5
Tree resolution Complete

Background: SBOMs and build attestations, explained →

MCP tools · 45 exposed · ~7,002 tokens

The tools this component advertises to a client, with an estimated token cost for each. Expand a tool to see its parameters and schema. The per-tool counts are indicative and are not scored directly; the schema's total context footprint is one signal in Schema Quality & AI Usability. A tool's description is untrusted text the model reads on every call, which is what makes this list a security surface and not just an inventory: how tool poisoning works →

Tool Tokens
apply_edit_plan ~206

Apply a weavatrix.edit-plan.v1 envelope (from a weavatrix-refactor-js plan producer or weavatrix-online plan_refactor) to the active repository. mode="preview" (default) verifies hashes and before-texts and issues a single-use confirm_token; mode="apply" consumes the token and writes atomically with an automatic rollback bundle. Requires WEAVATRIX_ALLOW_SOURCE_EDITS=1 to write. Only EXACT_LSP/RESOLVED/EXTRACTED/LEXICAL_EXACT edits are ever applied; uncertain references are reported, never guessed.

NameTypeReqDescription
confirm_tokenstring–Required for mode="apply"; issued by the preview step, single-use, 5-minute TTL
modestring––
output_formatstring–text returns concise TextContent; json also returns the stable structuredContent envelope
planobjectyesThe weavatrix.edit-plan.v1 envelope, verbatim as produced by the planning tool

No output schema declared.

No examples provided.

bulk_replace ~119

Two-stage occurrence-selective pattern replace over the indexed universe. Preview (no selection) returns stable occurrence ids; then pass occurrence_ids or expected_count to plan. literal:true by default.

NameTypeReqDescription
expected_countinteger––
flagsstring––
literalboolean––
occurrence_idsarray––
output_formatstring–text returns concise TextContent; json also returns the stable structuredContent envelope
path_prefixstring––
patternstringyes–
replacementstringyes–

No output schema declared.

No examples provided.

change_impact ~261

Verdict-first, symbol-aware blast radius. Parses a zero-context git diff and uses one bounded EXACT_LSP batch query for direct references to changed JavaScript/TypeScript symbols; transitive hops stay explicitly graph-backed. Additive exports do not inherit legacy file importers. Measured coverage is used when present; otherwise static reachability is labelled, not treated as coverage.

NameTypeReqDescription
basestring–Base ref, e.g. origin/main or HEAD~1 (default: first existing of origin/HEAD, origin/main, origin/master, main, master)
depthinteger–Max reverse hops, default 2
diffstring–Optional unified diff (prefer --unified=0) for a PR/change that is not checked out; enables symbol-level classification
filesarray–Optional repo-relative changed-file hints. Without diff evidence these are classified conservatively rather than guessed additive
max_nodesinteger–Max impacted nodes to list, default 40
max_referencesinteger––
output_formatstring–text returns only the concise TextContent summary; json also returns and mirrors the stable structuredContent envelope
precisionstring––
timeout_msinteger––

No output schema declared.

No examples provided.

change_signature ~106

Add or remove a function/method parameter (JS/TS) with byte-exact call-site argument surgery. Always PARTIAL (call sites from graph edges); spread/value-add reported UNCERTAIN. operation: {kind:"add_parameter",name,default?} | {kind:"remove_parameter",index}.

NameTypeReqDescription
operationobjectyes–
output_formatstring–text returns concise TextContent; json also returns the stable structuredContent envelope
symbolstringyes–

No output schema declared.

No examples provided.

context_bundle ~189

Return one compact, bounded source bundle for an exact symbol: definition, production-first inbound/outbound containers, exact re-export sites, on-demand TS/JS reference evidence and diverse excerpts around call sites. Use before an edit when query_graph would be too broad.

NameTypeReqDescription
context_linesinteger––
include_classifiedboolean–Include test/e2e/generated/vendored/mock/story/docs/benchmark/temp callers after production callers
labelstringyesExact node ID or unambiguous symbol label
max_reexportsinteger––
max_referencesinteger––
max_relatedinteger––
max_source_filesinteger––
output_formatstring–text returns only the concise TextContent summary; json also returns and mirrors the stable structuredContent envelope
precisionstring––
timeout_msinteger––

No output schema declared.

No examples provided.

coverage_map ~119

Map a real existing coverage report onto the graph. If no report exists, return clearly labelled static test reachability (a test imports/reaches a source file) with actualCoverage=NOT_AVAILABLE; reachability is never presented as measured coverage.

NameTypeReqDescription
output_formatstring–text returns only the concise TextContent summary; json also returns and mirrors the stable structuredContent envelope
pathstring–Optional repo-relative path prefix filter, e.g. src/query
top_ninteger–Max risk hotspots to list, default 15

No output schema declared.

No examples provided.

delete_readiness ~87

Per-symbol deletion verdict {safe: true|false|UNPROVEN, knownReferences, unknownDynamicUsages, confidence, reason} plus the deletion span. Exported symbols cap at UNPROVEN; always REVIEW_REQUIRED, never auto-delete.

NameTypeReqDescription
output_formatstring–text returns concise TextContent; json also returns the stable structuredContent envelope
symbolstringyes–

No output schema declared.

No examples provided.

edit_symbol ~86

Symbol-anchored edit over the parser source range (all languages): replace_symbol_body | insert_before_symbol | insert_after_symbol. JS/TS results are parse-gated.

NameTypeReqDescription
contentstringyes–
operationstringyes–
output_formatstring–text returns concise TextContent; json also returns the stable structuredContent envelope
symbolstringyes–

No output schema declared.

No examples provided.

explain_architecture_violation ~55

Explain one active architecture violation and the governing rule.

NameTypeReqDescription
fingerprintstringyes–
output_formatstring–text returns only the concise TextContent summary; json also returns and mirrors the stable structuredContent envelope

No output schema declared.

No examples provided.

find_dead_code ~199

Conservative review queue for statically unreferenced files, functions, methods and symbols. Returns confidence, reason, bounded evidence and explicit framework/dynamic/reflection/public-API caveats; never an auto-delete verdict. Tests, generated/vendored code, mocks, stories, docs, benchmarks and temporary roots are excluded by default.

NameTypeReqDescription
include_classifiedboolean–Include generated/vendored/mock/story/docs/benchmark/temp and paths explicitly classified as excluded; tests still require include_tests
include_testsboolean––
kindsarray–Optional candidate kinds; defaults to all
min_confidencestring–Minimum confidence to include. low explicitly includes public/framework/dynamic review candidates
output_formatstring–text returns only the concise TextContent summary; json also returns and mirrors the stable structuredContent envelope
pathstring–Optional repo-relative path prefix
top_ninteger––

No output schema declared.

No examples provided.

find_duplicates ~253

Content-based clone detection over production code (MOSS winnowing over method bodies). Supports high-confidence small clones down to 12 tokens when min_tokens is lowered. Tests, classified non-product paths, all-router framework boilerplate and immutable declarative catalogs are excluded by default; opt them in explicitly.

NameTypeReqDescription
include_boilerplateboolean–Include clone groups made entirely of conventional *.router.js/ts router symbols
include_classifiedboolean–Include generated/vendored/mock/story/docs/benchmark/temp and paths explicitly classified as excluded; tests still require include_tests
include_declarativeboolean–Include repeated immutable array/object catalogs that contain no executable control flow
include_stringsboolean–Also clone-check large multi-line string literals
include_testsboolean––
min_similarityinteger–50-100, default 80 (ignored in semantic mode)
min_tokensinteger–min fragment size, 12-400; default 50
modestring––
output_formatstring–text returns only the concise TextContent summary; json also returns and mirrors the stable structuredContent envelope
top_ninteger––

No output schema declared.

No examples provided.

get_architecture_contract ~178

Read the owner-approved architecture target or safely bootstrap one. With action=preview, returns an adaptive candidate, observed-but-not-enforced dependency directions, verification, exact file content/hash and a short-lived confirmation token. action=approve creates the local contract only after explicit token confirmation and never overwrites an active target.

NameTypeReqDescription
actionstring–Omit to read; preview is dry-run only; approve requires the preview token
baseline_modestring–Whether preview should materialize current violations as an explicit ratchet baseline
candidate_contractobject–Optional reviewed candidate to normalize and verify during preview
confirm_tokenstring–One-time token returned by preview; required for approve
output_formatstring–text returns only the concise TextContent summary; json also returns and mirrors the stable structuredContent envelope

No output schema declared.

No examples provided.

get_community ~68

Get all nodes in a community by community ID (0-indexed by size).

NameTypeReqDescription
community_idintegeryesCommunity ID (0-indexed by size)
output_formatstring–text returns only the concise TextContent summary; json also returns and mirrors the stable structuredContent envelope

No output schema declared.

No examples provided.

get_dependents ~220

Transitive blast-radius of ONE node. JavaScript/TypeScript symbols use a cached on-demand EXACT_LSP point query by default, then traverse exact direct callers through the wider graph; incomplete precision is labelled and never silently presented as exact. Set precision=graph to skip LSP or include_container_importers for a conservative module-wide radius.

NameTypeReqDescription
depthinteger–Max reverse hops, default 3
include_container_importersboolean–Also seed importers of the symbol containing file (broader, conservative; default false)
labelstringyesNode label or ID
max_nodesinteger–Max dependents to list, default 40
max_referencesinteger––
output_formatstring–text returns only the concise TextContent summary; json also returns and mirrors the stable structuredContent envelope
precisionstring–auto uses exact JS/TS point queries when precision is enabled; graph skips LSP; lsp forces an attempt
timeout_msinteger––

No output schema declared.

No examples provided.

get_neighbors ~98

Get all direct neighbors of a node with edge details (1 hop, call sites deduped). For transitive impact use get_dependents; for the impact of your current branch changes use change_impact.

NameTypeReqDescription
labelstringyes–
output_formatstring–text returns only the concise TextContent summary; json also returns and mirrors the stable structuredContent envelope
relation_filterstring–Optional: filter by relation type

No output schema declared.

No examples provided.

get_node ~61

Get full details for a specific node by label or ID.

NameTypeReqDescription
labelstringyesNode label or ID to look up
output_formatstring–text returns only the concise TextContent summary; json also returns and mirrors the stable structuredContent envelope

No output schema declared.

No examples provided.

git_history ~116

Behavioral architecture evidence from bounded local git history: churn × connectivity hotspots, hidden co-change coupling, and expected test/source coupling. Reads numstat only — never commit messages, authors, or source bodies.

NameTypeReqDescription
max_commitsinteger––
max_pairsinteger––
min_pair_countinteger––
monthsinteger––
output_formatstring–text returns only the concise TextContent summary; json also returns and mirrors the stable structuredContent envelope
top_ninteger––

No output schema declared.

No examples provided.

god_nodes ~125

Rank production-code connectivity hubs by unique call/import/reference neighbors, with class/method ownership reported separately from runtime connectivity. Repeated call sites do not inflate the rank; classified tests, generated/build output and other non-product paths are excluded by default.

NameTypeReqDescription
include_classifiedboolean–Include tests/e2e/generated/build output/mocks/stories/docs/benchmarks/temp and paths explicitly excluded by repository classification
output_formatstring–text returns only the concise TextContent summary; json also returns and mirrors the stable structuredContent envelope
top_ninteger––

No output schema declared.

No examples provided.

graph_diff ~149

Structural graph diff: compare the current graph with an immutable Git-ref baseline (base_ref such as HEAD~1 or main), or with graph.prev.json from the last rebuild when base_ref is omitted. Reports architecture drift, cycle changes and symbols that lost their last caller.

NameTypeReqDescription
base_refstring–Optional immutable Git baseline to build in isolation, e.g. HEAD~1, main or origin/main; never checks out or mutates the working tree
output_formatstring–text returns only the concise TextContent summary; json also returns and mirrors the stable structuredContent envelope
pathstring–Optional node-id/path prefix to scope the diff, e.g. src/query

No output schema declared.

No examples provided.

graph_stats ~71

Return summary statistics: node count, edge count, communities, versioned edge-provenance/legacy-confidence breakdowns, and graph build time vs repo HEAD (staleness).

NameTypeReqDescription
output_formatstring–text returns only the concise TextContent summary; json also returns and mirrors the stable structuredContent envelope

No output schema declared.

No examples provided.

hot_path_review ~242

Rank a focused production-symbol hot-path queue from parser-derived local complexity, inside-loop allocations/copies/scans/sorts/recursion, graph fan-in/fan-out, and measured coverage or clearly labelled static test reachability. The default score gate is 85 with a narrow strong-local fallback; set min_score=0 for the full diagnostic queue. This is not profiler data or interprocedural Big-O.

NameTypeReqDescription
call_thresholdinteger––
cyclomatic_thresholdinteger––
include_classifiedboolean–Include generated/vendored/mock/story/docs/benchmark/temp and explicitly excluded paths; tests still require include_tests
include_testsboolean––
loop_depth_thresholdinteger––
min_scoreinteger–Focused default is 85; lower explicitly to broaden, or use 0 for every threshold-matching diagnostic candidate
output_formatstring–text returns only the concise TextContent summary; json also returns and mirrors the stable structuredContent envelope
pathstring–Optional repository-relative path prefix
time_rank_thresholdinteger––
top_ninteger––

No output schema declared.

No examples provided.

inspect_symbol ~141

Inspect one exact symbol with an on-demand TypeScript/JavaScript LSP reference query, grouped occurrence containers, graph blast radius, complexity facts and bounded local source context. Ambiguous labels fail closed; point queries never replace the broad precision overlay.

NameTypeReqDescription
context_linesinteger––
labelstringyesExact node ID or unambiguous symbol label
max_containersinteger––
max_referencesinteger––
output_formatstring–text returns only the concise TextContent summary; json also returns and mirrors the stable structuredContent envelope
precisionstring––
timeout_msinteger––

No output schema declared.

No examples provided.

list_communities ~83

List graph communities named by their dominant folder (largest first) with sample files — a readable module overview; feed the list position into get_community.

NameTypeReqDescription
output_formatstring–text returns only the concise TextContent summary; json also returns and mirrors the stable structuredContent envelope
top_ninteger–Max communities to list, default 20

No output schema declared.

No examples provided.

list_endpoints ~164

Inventory of HTTP endpoints defined in the repo (Express/Fastify/Nest/Flask/FastAPI/Go mux/Rust axum and actix-web/Spring MVC and WebFlux): declared and reachable composed paths, static mount provenance, confidence, handler, file:line, and Spring conditional/default-active state.

NameTypeReqDescription
include_classifiedboolean–Include test/e2e/generated/mock/story/docs/benchmark/temp and explicitly excluded targets
max_resultsinteger–Max endpoints to list, default 100
methodstring––
output_formatstring–text returns only the concise TextContent summary; json also returns and mirrors the stable structuredContent envelope
pathstring–Optional exact composed path or segment-aligned suffix

No output schema declared.

No examples provided.

list_known_repos ~60

OFFLINE RETARGET: list every registered local repository graph from the global per-user registry, regardless of parent folder.

NameTypeReqDescription
output_formatstring–text returns only the concise TextContent summary; json also returns and mirrors the stable structuredContent envelope

No output schema declared.

No examples provided.

module_map ~122

First orientation view for understanding an unfamiliar application with little context: a production-first folder architecture map with file/symbol counts and strongest module dependencies, separating runtime, TypeScript type-only and language compile-only coupling.

NameTypeReqDescription
include_non_productboolean–Include tests, fixtures, benchmarks, generated output, docs and other classified non-product files; false by default
output_formatstring–text returns only the concise TextContent summary; json also returns and mirrors the stable structuredContent envelope
top_ninteger–Max modules to list, default 25

No output schema declared.

No examples provided.

move_file ~103

Relocate a JS/TS file: rewrites the moved file own imports and every importer specifier, and reports the architecture dry-run (WOULD_VIOLATE/WOULD_IMPROVE). A review plan the agent applies (it renames a file), not an apply envelope.

NameTypeReqDescription
fromstringyes–
output_formatstring–text returns concise TextContent; json also returns the stable structuredContent envelope
tostringyes–

No output schema declared.

No examples provided.

move_symbol ~91

Dry-run for moving a declaration to another file: predicts introduced/removed runtime cycles and architecture violations plus the blast radius. PROJECTED from graph edges — no byte-exact edits; apply the mechanical move yourself and run verified_change.

NameTypeReqDescription
output_formatstring–text returns concise TextContent; json also returns the stable structuredContent envelope
symbolstringyes–
to_filestringyes–

No output schema declared.

No examples provided.

open_repo ~192

OFFLINE RETARGET: switch this server to another local Git repository, building its graph when missing. This explicit tool call changes the active repository boundary; pass build:false to probe without building. Omitted mode/precision preserve an existing graph; a new graph uses full and the startup precision setting (lsp unless WEAVATRIX_PRECISION=off). Omit the retarget capability at registration to pin one repository.

NameTypeReqDescription
buildboolean–Build the graph when missing (default true)
modestring–Optional build mode override; omit to preserve an existing graph
output_formatstring–text returns only the concise TextContent summary; json also returns and mirrors the stable structuredContent envelope
pathstringyesAbsolute path to a Git working tree
precisionstring–Optional semantic precision override; omit to preserve an existing graph or use the startup setting for a new graph

No output schema declared.

No examples provided.

organize_imports ~85

Removes provably-unused named imports from a JS/TS file (a binding is removed only when its name occurs once in the file). Default/namespace imports are reported UNCERTAIN, never removed; sorting is left to the formatter.

NameTypeReqDescription
filestringyes–
output_formatstring–text returns concise TextContent; json also returns the stable structuredContent envelope

No output schema declared.

No examples provided.

prepare_change ~71

Select active target-architecture rules for an intended set of changed files. Run before a non-trivial edit.

NameTypeReqDescription
filesarrayyes–
intentstring––
output_formatstring–text returns only the concise TextContent summary; json also returns and mirrors the stable structuredContent envelope

No output schema declared.

No examples provided.

propose_architecture_exception ~76

Prepare, but never apply, a bounded exception proposal for human review.

NameTypeReqDescription
expiresstring–Optional YYYY-MM-DD
fingerprintstringyes–
output_formatstring–text returns only the concise TextContent summary; json also returns and mirrors the stable structuredContent envelope
reasonstringyes–

No output schema declared.

No examples provided.

query_graph ~329

Explore a focused production-first graph around a concept or exact symbols (BFS/DFS). Exact seed files/symbols stay pinned; relation_filter and flow_direction support bounded event/data-flow views without a separate tool. Classified paths and unreferenced constant/field leaves stay suppressed unless explicitly requested.

NameTypeReqDescription
augment_seedsboolean–With exact seeds, also add fuzzy question-derived seeds; false keeps traversal strictly pinned
context_filterarray––
depthinteger––
flow_directionstring–Traverse outgoing, incoming, or both directions
include_classifiedboolean–Allow traversal through tests/e2e/generated/mocks/stories/docs/benchmarks/temp and explicitly excluded paths. An explicit class term in the question enables only that class.
include_low_signalboolean–Include unreferenced constant/field leaf symbols that do not match a query term
modestring––
output_formatstring–text returns only the concise TextContent summary; json also returns and mirrors the stable structuredContent envelope
questionstring–Optional natural-language question or keyword search when exact seeds are not sufficient
relation_filter––Optional relation allow-list, e.g. calls,references,imports
seed_filesarray–Exact repo-relative file paths. Resolved exact seeds remain pinned unless augment_seeds is true
seed_symbolsarray–Exact node IDs or unambiguous symbol labels; enables focused flows without fuzzy query seeds
token_budgetinteger–Higher budget shows more nodes/edges

No output schema declared.

No examples provided.

read_source ~154

Read the actual source of a node (by label/ID) or a repo-relative file path — the symbol's lines with context. The graph stores only locations, not source text. For a path read, pass start_line to anchor the window anywhere in the file (otherwise it shows the head).

NameTypeReqDescription
afterinteger––
beforeinteger––
labelstring–node label or ID
output_formatstring–text returns only the concise TextContent summary; json also returns and mirrors the stable structuredContent envelope
pathstring–or a repo-relative file path
start_lineinteger–anchor line: window = start_line-before .. start_line+after

No output schema declared.

No examples provided.

rebuild_graph ~190

Rebuild the active full-repository graph and report a structural delta. Omitted mode/precision preserve the active graph; a first build uses full and the startup precision setting (lsp unless WEAVATRIX_PRECISION=off). The local TypeScript/JavaScript LSP overlay validates bounded ambiguous edges; precision:off is an explicit fallback. With scope, build an isolated diagnostic graph without replacing or diffing the full graph.

NameTypeReqDescription
modestring–Build mode; omit to preserve the active mode (or use full for a first build)
output_formatstring–text returns only the concise TextContent summary; json also returns and mirrors the stable structuredContent envelope
precisionstring–Semantic precision; omit to preserve the active mode (or use the startup setting for a first build)
scopestring–Optional isolated diagnostic path prefix; never replaces the active full graph

No output schema declared.

No examples provided.

rename_related_symbols ~155

Complete coordinated JS/TS multi-symbol rename as ONE atomic workflow with conflict/chain/swap detection. Default mode="preview" returns a plan-bound confirm_token; repeat with identical renames, mode="apply", and that token to write atomically with rollback. Blocks entirely if any sub-rename fails.

NameTypeReqDescription
confirm_tokenstring–Required for mode="apply"; single-use and bound to the exact generated plan and working tree
modestring–preview verifies the generated plan and returns a confirm_token; apply recomputes the same plan and consumes that token
output_formatstring–text returns concise TextContent; json also returns the stable structuredContent envelope
renamesarrayyes–

No output schema declared.

No examples provided.

rename_symbol ~201

Complete cross-language rename workflow: EXACT LSP backend for JS/TS, SQL schema backend for .sql, graph+lexical backend for Rust/Python/Go/Java/C#/Solidity. Default mode="preview" proves the byte-exact edits and returns a single-use confirm_token; repeat the same call with mode="apply" and that token for an atomic write with rollback. Requires WEAVATRIX_ALLOW_SOURCE_EDITS=1 only for apply.

NameTypeReqDescription
confirm_tokenstring–Required for mode="apply"; single-use and bound to the exact generated plan and working tree
modestring–preview verifies the generated plan and returns a confirm_token; apply recomputes the same plan and consumes that token
new_namestringyes–
output_formatstring–text returns concise TextContent; json also returns the stable structuredContent envelope
symbolstringyesExact symbol id (file#name@line)

No output schema declared.

No examples provided.

rollback_last_apply ~81

Restore the repository files from the most recent apply_edit_plan rollback bundle. All-or-nothing: if any target file changed after the apply, nothing is restored and the drifted files are reported. Requires WEAVATRIX_ALLOW_SOURCE_EDITS=1.

NameTypeReqDescription
output_formatstring–text returns concise TextContent; json also returns the stable structuredContent envelope

No output schema declared.

No examples provided.

run_audit ~383

Offline production-first repository Health review for structure, dependency declarations and lockfile integrity, bounded runtime-correctness/concurrency patterns, dead code and coverage. Vulnerability advisory matching and installed-dependency malware heuristics are separate explicit weavatrix-online tools. Unsupported Maven/Gradle import verification is NOT_SUPPORTED/PARTIAL, never a clean zero. Findings whose evidence is entirely test/e2e/generated/vendored/mock/story/docs/benchmark/temp or explicitly excluded are suppressed by default; opt them in with include_classified. category=dependencies selects dependency manifest/import, lockfile-drift, and direct dependency name-confusion findings. With base_ref, builds and audits an immutable Git checkout and compares stable deterministic finding IDs; debt defaults to genuinely new findings. changed_files without base_ref is only changed-scope, never a new-debt claim.

NameTypeReqDescription
base_refstring–Optional immutable Git baseline (for example HEAD~1 or origin/main). Enables honest new/existing/fixed debt comparison
categorystring–Only findings of this category; dependencies selects dependency manifest/import and dependency-integrity findings
changed_filesarray–Optional explicit repo-relative scope. Without base_ref this is changed-scope only; when omitted with base_ref, files are derived from the Git diff
debtstring–Baseline comparison view. Defaults to genuinely new deterministic findings when base_ref is present
include_classifiedboolean–Include findings whose evidence is entirely tests/e2e/generated/vendored/mocks/stories/docs/benchmarks/temp or explicitly excluded
max_findingsinteger–Max findings to list, default 30
min_severitystring–Minimum severity to include
output_formatstring–text returns only the concise TextContent summary; json also returns and mirrors the stable structuredContent envelope

No output schema declared.

No examples provided.

search_code ~126

Full-text or regex search across the repo source (ripgrep-backed, Node fallback). The graph only stores structure — use this to find literal text/patterns, then get_node/get_neighbors for structure.

NameTypeReqDescription
globstring–optional path glob, e.g. "*.js" or "src/**"
is_regexboolean––
max_resultsinteger––
output_formatstring–text returns only the concise TextContent summary; json also returns and mirrors the stable structuredContent envelope
querystringyestext or regex to search for

No output schema declared.

No examples provided.

shortest_path ~70

Find the shortest path between two concepts in the knowledge graph.

NameTypeReqDescription
max_hopsinteger––
output_formatstring–text returns only the concise TextContent summary; json also returns and mirrors the stable structuredContent envelope
sourcestringyes–
targetstringyes–

No output schema declared.

No examples provided.

trace_api_contract ~604

Cross-repository HTTP, GraphQL, gRPC and event/topic contract, handler-liveness and blast-radius evidence. Joins static models with optional revision-bound runtime/OTLP evidence; unobserved dynamic URLs/topics/reflection remain explicit UNKNOWN. Medium/high-confidence external matches mark a handler/contract NOT_DEAD_EXTERNAL_USE. Repository paths stay local and runtime report paths are repository-contained.

NameTypeReqDescription
auto_discover_wrappersboolean–Discover only simple unambiguous functions that forward a URL parameter directly to a known object-style HTTP client
backendstringyesBackend repository UUID or exact unambiguous registry label
changed_filesarray–Optional backend repo-relative changed files; only endpoints declared in those files are traced
client_namesarray–Extra object-style clients whose .get/.post/... methods perform HTTP requests; persistent per-repo configuration belongs in .weavatrix.json httpContracts.clientNames
client_wrappersarray–Fixed-method wrapper calls. Use call+method for get(url), or object+member+method for transport.send(url). url_argument is zero-based.
clientsarrayyesClient repository UUIDs or exact unambiguous registry labels
cursorstring–Opaque nextCursor from the previous page; bound to repository revisions and filters.
include_testsboolean––
max_affected_filesinteger––
max_endpointsinteger––
max_impact_depthinteger––
max_matchesinteger––
methodstring––
output_formatstring–text returns only the concise TextContent summary; json also returns and mirrors the stable structuredContent envelope
page_sizeinteger–Maximum HTTP/transport/uncertain evidence items returned on this page.
pathstring–Optional full route or segment-aligned route fragment; /query matches /edgeAnalytics/query/... and {id}, :id and concrete parameter values are normalized
per_item_limitinteger–Compact-mode sample limit for callsites, affected files, screens and modules per item.
response_detailstring–Compact returns bounded samples and counts. Full is explicit opt-in and still paginated.
runtime_configobject–Optional non-secret static bindings for runtime URL prefixes, e.g. process.env.API_BASE. Values are used locally for this call and are not returned.
runtime_evidence_filesobject–Optional repository-label/UUID to repository-relative weavatrix.transport-runtime.v1 JSON path. Defaults to .weavatrix/transport-runtime.json or .weavatrix/reports/transport-runtime.json in each repo…
runtime_evidence_max_age_hoursinteger–Maximum accepted age for a revision-matched runtime evidence report
top_ninteger––
transportstring–Contract family to trace; all runs static and revision-bound runtime evidence for every supported transport

No output schema declared.

No examples provided.

trace_endpoint ~201

Resolve one exact reachable HTTP endpoint, prove its router mount chain, bind its handler symbol, and return a bounded production-only multi-hop call graph with call-site excerpts. This is a focused projection of the repository graph, not text-search inference.

NameTypeReqDescription
context_linesinteger––
handler_filestring–Repo-relative file path (or unambiguous path suffix) declaring the handler; use after an AMBIGUOUS_HANDLER result.
include_classifiedboolean–Include test/e2e/generated/mock/story/docs/benchmark/temp and explicitly excluded targets
max_depthinteger––
max_excerptsinteger––
max_nodesinteger––
methodstring––
output_formatstring–text returns only the concise TextContent summary; json also returns and mirrors the stable structuredContent envelope
pathstringyesExact composed path; a suffix is accepted only when unambiguous

No output schema declared.

No examples provided.

verified_change ~252

Pre-commit, proof-carrying change safeguard. Given a natural-language task and current diff/files, returns compact edit contexts, bounded call-argument data-flow, blast radius, graph/architecture/duplicate/API ratchets, affected tests, and one PASS/BLOCKED/UNKNOWN verdict. Use this high-level workflow before manually composing lower-level checks. Package tests run only when explicitly requested and WEAVATRIX_ALLOW_TEST_RUNS=1.

NameTypeReqDescription
api_contractobject––
base_refstring––
data_flow_depthinteger––
diffstring––
duplicate_ratchetboolean––
filesarray––
impact_depthinteger––
max_data_flow_edgesinteger––
max_impact_nodesinteger––
max_symbolsinteger––
output_formatstring–text returns only the concise TextContent summary; json also returns and mirrors the stable structuredContent envelope
phasestring––
precisionstring––
run_testsboolean––
taskstringyes–
test_timeout_msinteger––
testsarray––

No output schema declared.

No examples provided.

verify_architecture ~60

Verify the fresh graph against the active target contract and ratchet; separates new, existing, fixed and excepted debt.

NameTypeReqDescription
output_formatstring–text returns only the concise TextContent summary; json also returns and mirrors the stable structuredContent envelope

No output schema declared.

No examples provided.

Common questions

What is the io.github.sergii-ziborov/weavatrix-refactor-js MCP server?

io.github.sergii-ziborov/weavatrix-refactor-js is an MCP server listed in the public MCP registry as io.github.sergii-ziborov/weavatrix-refactor-js. Transactional refactoring MCP with 11 evidence-backed tools, hash-bound previews, and rollback. This page covers its npm package (weavatrix-refactor-js).

Is the io.github.sergii-ziborov/weavatrix-refactor-js MCP server safe to use?

io.github.sergii-ziborov/weavatrix-refactor-js scores 85 out of 100 on VerifyMCP. We found no known CVEs affecting it as of 29 September 2026. It declares no install or post-install scripts. Its build provenance is signed and verified. That is a record of what we were able to check automatically, not an endorsement. The category breakdown on this page shows every signal behind the number, including the ones we could not confirm.

What tools does the io.github.sergii-ziborov/weavatrix-refactor-js MCP server expose?

io.github.sergii-ziborov/weavatrix-refactor-js exposes 45 tools: graph_stats, get_node, get_neighbors, query_graph, god_nodes, and 40 more. Their descriptions and schemas cost roughly 7,002 tokens of context every time the server is loaded.

Is the io.github.sergii-ziborov/weavatrix-refactor-js MCP server still maintained?

io.github.sergii-ziborov/weavatrix-refactor-js is still listed as active in the MCP registry. We last reached this channel on 29 September 2026. Those dates come from our own scans of the registry and the channel itself, not from anything the publisher announced.

What licence is the io.github.sergii-ziborov/weavatrix-refactor-js MCP server under?

io.github.sergii-ziborov/weavatrix-refactor-js declares the MIT licence, which is OSI-approved. That covers the source only, and says nothing about the cost of any service it calls.