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

io.github.sergii-ziborov/weavatrix-refactor

NPM · WEAVATRIX-REFACTOR · SCANNED AUG 3

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

Available components

−9 this week 78 Trust /100
Trust breakdown (6 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 →

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 & Transparency97
  • Source repository is publicly reachable at the declared URL. View diagnostics → Pass
  • Cryptographically verified build provenance (signed, bound to sergii-ziborov/weavatrix-refactor). View diagnostics → Pass
  • Clear OSI-approved license (MIT).Pass
  • Actively maintained (last published 3 days ago).Pass
  • Disclosure check failed: no security disclosure policy was found in the source repository. See how to fix → Fail
Schema Quality & AI Usability60
  • AI-judged instruction clarity (good).Pass
  • Context-footprint check failed: tool/resource definitions use about 7072 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 Management23
  • Stability observed for 7 of 30 days with no destabilising changes; credit accrues until the full window elapses.Partial
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
Capabilities100
  • Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.Pass
Install

Add this component to your MCP client. Where a client-specific snippet is available, pick your client below and copy it straight into your config; otherwise use the connection detail shown.

npm · weavatrix-refactor

# add to Claude Code
claude mcp add sergii-ziborov-weavatrix-refactor -- npx -y weavatrix-refactor
# add to Codex CLI
codex mcp add sergii-ziborov-weavatrix-refactor -- npx -y weavatrix-refactor
// opencode.json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "sergii-ziborov-weavatrix-refactor": {
      "type": "local",
      "command": [
        "npx",
        "-y",
        "weavatrix-refactor"
      ],
      "enabled": true
    }
  }
}
# add to OpenClaw
openclaw mcp add sergii-ziborov-weavatrix-refactor --command npx --arg -y --arg weavatrix-refactor
# ~/.hermes/config.yaml
mcp_servers:
  sergii-ziborov-weavatrix-refactor:
    command: "npx"
    args: ["-y", "weavatrix-refactor"]
// mcp.json
{
  "mcpServers": {
    "sergii-ziborov-weavatrix-refactor": {
      "command": "npx",
      "args": [
        "-y",
        "weavatrix-refactor"
      ]
    }
  }
}
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.

  • 2 Aug 26 +15
    • Malware scan: unverified → pass security
  • 1 Aug 26 +1

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

  • 31 Jul 26 +21
    • We updated how we score, so this day's move reflects our rubric, not a change to the server See what changed → functional
  • 30 Jul 26 −46
    • Malware scan: pass → unverified security
    • Tool coverage: 100 → unverified functional
    • Licence: Apache-2.0 → MIT functional
    • Package version: 0.1.2 → 0.1.5 functional
    • Package version: 0.1.2 → 0.1.3 functional
  • 27 Jul 26 +28
    • Tool coverage: unverified → 100 functional
    • First check of Schema quality: fail functional
    • First check of Schema quality: fail functional
    • First check of Tool coverage: 59 functional
    • First check of Schema quality: good functional
  • 26 Jul 26 59

    First indexed and scored.

    • We updated how we score, so this day's move reflects our rubric, not a change to the server See what changed → 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 3 Aug 2026 · Analysed npm/[email protected]

Provenance verified

Ecosystem: npm · Outcome: verified

Reason: verified

Source repo:
sergii-ziborov/weavatrix-refactor
Certificate issuer:
https://token.actions.githubusercontent.com
Certificate SAN:
https://github.com/sergii-ziborov/weavatrix-refactor/.github/workflows/release.yml@refs/tags/v0.1.5
Rekor log index:
2288209301
Predicate type:
https://slsa.dev/provenance/v1
Subject digest:
sha512:d72b124dfc52bfc01dc09ece7bf2e0cc934b40ad333ddb4dc2d66ae55a90ea0d531ee8c2e2a5c9f725a17d0771db9d11d263c3161d4fd3175cea1d778
Discovery method:
attestation_endpoint
Dependencies 5 packages

5 packages in the resolved dependency tree.

MCP tools — 45 exposed · ~7,001 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.

Tool Tokens
apply_edit_plan ~205

Apply a weavatrix.edit-plan.v1 envelope (from a weavatrix-refactor 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_tokenstringRequired for mode="apply"; issued by the preview step, single-use, 5-minute TTL
modestring
output_formatstringtext 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_formatstringtext 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
basestringBase ref, e.g. origin/main or HEAD~1 (default: first existing of origin/HEAD, origin/main, origin/master, main, master)
depthintegerMax reverse hops, default 2
diffstringOptional unified diff (prefer --unified=0) for a PR/change that is not checked out; enables symbol-level classification
filesarrayOptional repo-relative changed-file hints. Without diff evidence these are classified conservatively rather than guessed additive
max_nodesintegerMax impacted nodes to list, default 40
max_referencesinteger
output_formatstringtext 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_formatstringtext 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_classifiedbooleanInclude 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_formatstringtext 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_formatstringtext returns only the concise TextContent summary; json also returns and mirrors the stable structuredContent envelope
pathstringOptional repo-relative path prefix filter, e.g. src/query
top_nintegerMax 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_formatstringtext 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_formatstringtext 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_formatstringtext 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_classifiedbooleanInclude generated/vendored/mock/story/docs/benchmark/temp and paths explicitly classified as excluded; tests still require include_tests
include_testsboolean
kindsarrayOptional candidate kinds; defaults to all
min_confidencestringMinimum confidence to include. low explicitly includes public/framework/dynamic review candidates
output_formatstringtext returns only the concise TextContent summary; json also returns and mirrors the stable structuredContent envelope
pathstringOptional 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_boilerplatebooleanInclude clone groups made entirely of conventional *.router.js/ts router symbols
include_classifiedbooleanInclude generated/vendored/mock/story/docs/benchmark/temp and paths explicitly classified as excluded; tests still require include_tests
include_declarativebooleanInclude repeated immutable array/object catalogs that contain no executable control flow
include_stringsbooleanAlso clone-check large multi-line string literals
include_testsboolean
min_similarityinteger50-100, default 80 (ignored in semantic mode)
min_tokensintegermin fragment size, 12-400; default 50
modestring
output_formatstringtext 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
actionstringOmit to read; preview is dry-run only; approve requires the preview token
baseline_modestringWhether preview should materialize current violations as an explicit ratchet baseline
candidate_contractobjectOptional reviewed candidate to normalize and verify during preview
confirm_tokenstringOne-time token returned by preview; required for approve
output_formatstringtext 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_formatstringtext 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
depthintegerMax reverse hops, default 3
include_container_importersbooleanAlso seed importers of the symbol containing file (broader, conservative; default false)
labelstringyesNode label or ID
max_nodesintegerMax dependents to list, default 40
max_referencesinteger
output_formatstringtext returns only the concise TextContent summary; json also returns and mirrors the stable structuredContent envelope
precisionstringauto 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_formatstringtext returns only the concise TextContent summary; json also returns and mirrors the stable structuredContent envelope
relation_filterstringOptional: 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_formatstringtext 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_formatstringtext 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_classifiedbooleanInclude tests/e2e/generated/build output/mocks/stories/docs/benchmarks/temp and paths explicitly excluded by repository classification
output_formatstringtext 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_refstringOptional immutable Git baseline to build in isolation, e.g. HEAD~1, main or origin/main; never checks out or mutates the working tree
output_formatstringtext returns only the concise TextContent summary; json also returns and mirrors the stable structuredContent envelope
pathstringOptional 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_formatstringtext 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_classifiedbooleanInclude generated/vendored/mock/story/docs/benchmark/temp and explicitly excluded paths; tests still require include_tests
include_testsboolean
loop_depth_thresholdinteger
min_scoreintegerFocused default is 85; lower explicitly to broaden, or use 0 for every threshold-matching diagnostic candidate
output_formatstringtext returns only the concise TextContent summary; json also returns and mirrors the stable structuredContent envelope
pathstringOptional 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_formatstringtext 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_formatstringtext returns only the concise TextContent summary; json also returns and mirrors the stable structuredContent envelope
top_nintegerMax 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_classifiedbooleanInclude test/e2e/generated/mock/story/docs/benchmark/temp and explicitly excluded targets
max_resultsintegerMax endpoints to list, default 100
methodstring
output_formatstringtext returns only the concise TextContent summary; json also returns and mirrors the stable structuredContent envelope
pathstringOptional 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_formatstringtext 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_productbooleanInclude tests, fixtures, benchmarks, generated output, docs and other classified non-product files; false by default
output_formatstringtext returns only the concise TextContent summary; json also returns and mirrors the stable structuredContent envelope
top_nintegerMax 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_formatstringtext 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_formatstringtext 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
buildbooleanBuild the graph when missing (default true)
modestringOptional build mode override; omit to preserve an existing graph
output_formatstringtext returns only the concise TextContent summary; json also returns and mirrors the stable structuredContent envelope
pathstringyesAbsolute path to a Git working tree
precisionstringOptional 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_formatstringtext 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_formatstringtext 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
expiresstringOptional YYYY-MM-DD
fingerprintstringyes
output_formatstringtext 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_seedsbooleanWith exact seeds, also add fuzzy question-derived seeds; false keeps traversal strictly pinned
context_filterarray
depthinteger
flow_directionstringTraverse outgoing, incoming, or both directions
include_classifiedbooleanAllow 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_signalbooleanInclude unreferenced constant/field leaf symbols that do not match a query term
modestring
output_formatstringtext returns only the concise TextContent summary; json also returns and mirrors the stable structuredContent envelope
questionstringOptional natural-language question or keyword search when exact seeds are not sufficient
relation_filterOptional relation allow-list, e.g. calls,references,imports
seed_filesarrayExact repo-relative file paths. Resolved exact seeds remain pinned unless augment_seeds is true
seed_symbolsarrayExact node IDs or unambiguous symbol labels; enables focused flows without fuzzy query seeds
token_budgetintegerHigher 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
labelstringnode label or ID
output_formatstringtext returns only the concise TextContent summary; json also returns and mirrors the stable structuredContent envelope
pathstringor a repo-relative file path
start_lineintegeranchor 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
modestringBuild mode; omit to preserve the active mode (or use full for a first build)
output_formatstringtext returns only the concise TextContent summary; json also returns and mirrors the stable structuredContent envelope
precisionstringSemantic precision; omit to preserve the active mode (or use the startup setting for a first build)
scopestringOptional 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_tokenstringRequired for mode="apply"; single-use and bound to the exact generated plan and working tree
modestringpreview verifies the generated plan and returns a confirm_token; apply recomputes the same plan and consumes that token
output_formatstringtext 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_tokenstringRequired for mode="apply"; single-use and bound to the exact generated plan and working tree
modestringpreview verifies the generated plan and returns a confirm_token; apply recomputes the same plan and consumes that token
new_namestringyes
output_formatstringtext 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_formatstringtext 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_refstringOptional immutable Git baseline (for example HEAD~1 or origin/main). Enables honest new/existing/fixed debt comparison
categorystringOnly findings of this category; dependencies selects dependency manifest/import and dependency-integrity findings
changed_filesarrayOptional explicit repo-relative scope. Without base_ref this is changed-scope only; when omitted with base_ref, files are derived from the Git diff
debtstringBaseline comparison view. Defaults to genuinely new deterministic findings when base_ref is present
include_classifiedbooleanInclude findings whose evidence is entirely tests/e2e/generated/vendored/mocks/stories/docs/benchmarks/temp or explicitly excluded
max_findingsintegerMax findings to list, default 30
min_severitystringMinimum severity to include
output_formatstringtext 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
globstringoptional path glob, e.g. "*.js" or "src/**"
is_regexboolean
max_resultsinteger
output_formatstringtext 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_formatstringtext 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_wrappersbooleanDiscover 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_filesarrayOptional backend repo-relative changed files; only endpoints declared in those files are traced
client_namesarrayExtra object-style clients whose .get/.post/... methods perform HTTP requests; persistent per-repo configuration belongs in .weavatrix.json httpContracts.clientNames
client_wrappersarrayFixed-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
cursorstringOpaque 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_formatstringtext returns only the concise TextContent summary; json also returns and mirrors the stable structuredContent envelope
page_sizeintegerMaximum HTTP/transport/uncertain evidence items returned on this page.
pathstringOptional full route or segment-aligned route fragment; /query matches /edgeAnalytics/query/... and {id}, :id and concrete parameter values are normalized
per_item_limitintegerCompact-mode sample limit for callsites, affected files, screens and modules per item.
response_detailstringCompact returns bounded samples and counts. Full is explicit opt-in and still paginated.
runtime_configobjectOptional 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_filesobjectOptional 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_hoursintegerMaximum accepted age for a revision-matched runtime evidence report
top_ninteger
transportstringContract 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_filestringRepo-relative file path (or unambiguous path suffix) declaring the handler; use after an AMBIGUOUS_HANDLER result.
include_classifiedbooleanInclude test/e2e/generated/mock/story/docs/benchmark/temp and explicitly excluded targets
max_depthinteger
max_excerptsinteger
max_nodesinteger
methodstring
output_formatstringtext 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_formatstringtext 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_formatstringtext returns only the concise TextContent summary; json also returns and mirrors the stable structuredContent envelope

No output schema declared.

No examples provided.