Weavatrix — native MCP repository intelligence

Part of the Weavatrix ecosystem: evidence infrastructure for AI software agents.
Give your coding agent repository evidence before it starts guessing.
Weavatrix is the native MCP product that answers the questions agents
otherwise invent: what breaks if this file changes, who consumes this n8n
field, whether an MCP schema still accepts yesterday’s request, which
viem call sites follow an ABI layout change, and whether
.weavatrix/architecture.json still holds. 66 operations,
one revision-bound graph, no LSP and no prompt pack.
Codex, Claude Code, Cursor, and Grok get impact, architecture, APIs, Git
history, duplicates, dead code, search, semantic links,
exported n8n workflows (n8n_*), Dify YAML apps (dify_*), Agent
Plugins/Skills/MCP catalogs (agent_*), Mermaid flowcharts (diagram_*),
and Web3 ABI/consumer impact (web3_*). Those parsers are domains on
Weavatrix Core, not new MCP products. Dedicated pages:
n8n · Dify ·
parsers.
It does not answer from a larger grep or an invented confidence score. Every
bounded result can carry the repository revision, file, line, extractor,
evidence kind, and confidence that produced it.
Adjacent MCP tools (not this host)
This repository is the stdio MCP host and plugin pack. It pins
weavatrix-rust. It does not grow a second indexer, and it does not compete
with the engine crate for the same README story.
| You may already use |
Use it for |
Use this host instead when |
| Serena |
LSP-accurate rename, refs, and edits inside the agent |
You need read-only impact, architecture, and provenance — and you do not want the agent to start a language server |
| Repomix MCP |
Stuffing a compressed repo into the next prompt |
You need a bounded answer (change_impact, verify_architecture) without paying the pack-token tax every turn |
| Aider RepoMap |
Ranking symbols that fit one chat |
You need the full revision-bound graph, including n8n / Dify / Agent / Web3 / Mermaid domains |
| Claude Context / vector MCP |
Semantic “code like this” retrieval |
You need extractor-backed edges, not nearest-neighbor chunks |
| GitNexus / CodeGraph daemons |
A long-lived graph service beside the IDE |
You want the published native binary, no extra database process |
The host’s unique job is transport: profiles, watching, npm/crate
distributions, and the 66-tool catalog over one engine session. Measured
engine times live in
weavatrix-rust benchmarks,
not here.
Ecosystem place (UNDERSTAND)
Weavatrix (this) — code facts
│
▼
Weavatrix Loom — semantic composition (capabilities, registry, compile → Rust)
│
▼
Realforge — artifact construction (scaffold / package / deploy)
| Product |
Owns |
Does not own |
| Weavatrix (this) |
Repository / code graph, symbols, deps, search, impact |
Capability interchange Registry, WVX project graph |
| Weavatrix Loom |
Capability · Implementation · evidence · GraphPatch · semantic compiler |
Deep repo indexing (that stays here) |
| FerroSift |
Deterministic transform recipes/ops |
Capability Registry; code intelligence |
| Cortex Loom |
Agent workflow / context budgets |
Code index; Loom admit policy |
Loom consumes Weavatrix facts for semantic classification (e.g. “this fn
is a candidate for data.json.parse@1”). Loom must not grow a second product
code indexer. Normative Loom side: ADR-0012.
The same source is distributed in two forms:
| Distribution |
Install |
Best for |
weavatrix on crates.io |
cargo install weavatrix |
Rust-first environments and source builds |
weavatrix on npm |
npx -y weavatrix@1.17.20 mcp <repo> |
Ready-made cross-platform binaries without a Rust toolchain |
The npm package exists for convenience; it does not contain a different
JavaScript engine. Both distributions run the same native adapter and the same
weavatrix-rust analysis engine. The separately versioned weavatrix-js
package is the legacy JavaScript implementation used for compatibility and
historical baselines; it is not bundled into weavatrix.
Install as a plugin
The repository ships one plugin bundle for Cursor, Codex, Claude Code, and
Grok Build. Each client starts the published native npm distribution and loads
the same read-only MCP tools. Its optional Weavatrix skill activates only for
tasks that benefit from indexed, cross-file evidence; detailed tool routing is
loaded separately when needed.
Cursor plugin
Search for Weavatrix in Cursor's Plugins view after its marketplace review
is complete. The bundle can be tested before listing by copying or linking
plugins/weavatrix to
~/.cursor/plugins/local/weavatrix and reloading the Cursor window.
Codex plugin
codex plugin marketplace add Weavatrix/weavatrix --sparse .agents/plugins plugins/weavatrix
codex plugin add weavatrix@weavatrix
Claude Code plugin
claude plugin marketplace add Weavatrix/weavatrix --sparse .claude-plugin plugins
claude plugin install weavatrix@weavatrix
Grok Build plugin
grok plugin marketplace add Weavatrix/weavatrix
Open /marketplace and install Weavatrix. Grok also accepts the plugin
directly with
grok plugin install Weavatrix/weavatrix#plugins/weavatrix.
Install in 30 seconds
Run the convenient prebuilt npm distribution:
npx -y weavatrix mcp .
Or install the same MCP product through Cargo:
cargo install weavatrix
weavatrix mcp .
Codex
# ~/.codex/config.toml
[mcp_servers.weavatrix]
command = "npx"
args = ["-y", "weavatrix", "mcp", "."]
Claude Code
claude mcp add weavatrix -- npx -y weavatrix mcp .
Grok
grok mcp add weavatrix -- npx -y weavatrix mcp .
Everything after -- is the server command, so -y reaches npx instead of
Grok. The equivalent hand-written entry:
# ~/.grok/config.toml
[mcp_servers.weavatrix]
command = "npx"
args = ["-y", "weavatrix", "mcp", "."]
startup_timeout_sec = 120
The package unpacks to roughly 40 MB, so the first npx launch can spend
longer fetching it than Grok's 30-second default startup timeout allows.
startup_timeout_sec covers that once; npm i -g weavatrix or
cargo install weavatrix removes the cold start for every later session.
Use --scope project to write .grok/config.toml inside a repository instead,
so a clone carries the server with it.
Cursor
Prefer the Cursor plugin (it already passes ${workspaceFolder}). For a
hand-written user entry, pin the server to the open workspace — not the host
process cwd — and avoid running both a user MCP and the plugin at once:
// ~/.cursor/mcp.json
{
"mcpServers": {
"weavatrix": {
"command": "npx",
"args": ["-y", "weavatrix@1.17.20", "mcp", "${workspaceFolder}", "--output-format=structured"]
}
}
}
Profiles expose bounded views of the same engine:
npx -y weavatrix@1.17.20 mcp . --profile=all
npx -y weavatrix@1.17.20 mcp . --profile=code
npx -y weavatrix@1.17.20 mcp . --profile=seo
npx -y weavatrix@1.17.20 mcp . --profile=n8n
npx -y weavatrix@1.17.20 mcp . --profile=dify
npx -y weavatrix@1.17.20 mcp . --profile=agent
npx -y weavatrix@1.17.20 mcp . --profile=diagram
npx -y weavatrix@1.17.20 mcp . --profile=web3
The npm package contains native binaries for Windows x64/arm64, macOS
x64/arm64, and glibc Linux x64/arm64. It has no install script and performs no
runtime download.
Where data is stored
The 66 MCP tools do not modify source files. The graph they answer from is process memory. A lane that sits unused for 20 minutes unloads. There is no database. rebuild_graph replaces that in-memory lane. A child repository argument reads that child and does not move the process pin.
search_code keeps a resident index for the life of the process and an on-disk index at ~/.weavatrix/search/<fingerprint>/index. On Windows that home is USERPROFILE; elsewhere it is HOME. Set WEAVATRIX_SEARCH_HOME to move it. A repository under the temp directory uses <temp>/weavatrix-search-indexes instead. The directory is created on the first search.
git_fetch writes a depth-1 checkout under ~/.weavatrix/fetches and a marker file .weavatrix-fetch inside that checkout. Set WEAVATRIX_FETCH_HOME to move it. A repository under the temp directory uses <temp>/weavatrix-fetches. The fetch does not move the process pin and does not replace a checkout you already have.
weavatrix-rust report writes index.html, REPORT.md, and data.json into <repo>/.weavatrix/report/. --out= overrides the directory. It removes nothing. The weavatrix commands are mcp, analyze, tool, and list-tools. They do not write that report.
The tools read .weavatrix/architecture.json and do not write it. propose_architecture_exception returns PROPOSAL_ONLY and write NONE.
coverage_map reads the first existing report among lcov.info, coverage/lcov.info, .weavatrix/coverage/lcov.info, tarpaulin-report.json, target/tarpaulin/tarpaulin-report.json, target/llvm-cov/coverage.json, and coverage/coverage-final.json. It does not run tests and does not write the report. Weavatrix Quality writes .weavatrix/coverage/lcov.info.
trace_api_contract may read .weavatrix/transport-runtime.json or .weavatrix/reports/transport-runtime.json when that file is already present. It does not call the network.
Halve every answer on a client that reads structured output
An MCP result carries the payload twice: once as structuredContent, and once
mirrored into a text block for clients that read only content. The mirror is
the pretty-printed copy, so it is the larger of the two.
npx -y weavatrix mcp . --output-format=structured
Measured on run_audit over a real repository, the response falls from 8931 to
3589 bytes, 59.8% smaller. Whether a client reads structured output does
not change between calls, so it is chosen once at startup rather than restated
as an argument on every call; WEAVATRIX_OUTPUT_FORMAT=structured does the
same where a flag is awkward, and a call that names its own output_format
still wins.
json is the default and keeps the mirror, because a client that ignores
structuredContent would otherwise see an empty result. text returns only
the text block, but that block still contains serialized JSON; it is not a
summary mode. For an architecture question, call architecture_inventory
without arguments and summarize its bounded style hypotheses in prose.
What the new domains actually answer
| Ask |
Tool |
Honest limit |
| Will this MCP schema still accept yesterday’s request? |
agent_change_impact |
string → integer is incompatible. A missing tool in a partial catalog is unconfirmed, not removed. |
| Who calls this ABI after an event layout change? |
web3_impact |
Comment/string “calls” are not consumers. ABI equality is not a live deployment. |
| Who reads this field in an exported n8n workflow? |
n8n_trace |
Secrets stay off the graph. |
Which Dify nodes consume start_node.query? |
dify_trace |
Conversation variables are directed edges, not string presence. |
| Does this Mermaid arrow prove a code call? |
diagram_* |
Arrows are declared_architecture, never Calls. |
Does .weavatrix/architecture.json still hold? |
verify_architecture |
Unknown rules fail closed. |
What an agent can ask
What breaks if I change src/auth/middleware.ts?
Trace POST /api/orders through this backend and its clients.
Which production symbols are dead, and what evidence proves it?
Show duplicate implementations but suppress router boilerplate.
Which dependency violates .weavatrix/architecture.json?
Find every GraphQL, gRPC, Kafka, RabbitMQ, NATS, JMS, SQS, or SNS
contract affected by this branch.
Build the smallest source bundle needed to edit this symbol safely.
Show me this file as it was two commits ago, without a checkout.
Rank symbols for a phrase. The rank is the local token hash, not an embedding.
If I change the email recipient in this exported n8n workflow, who reads it?
If I change start_node.query in this Dify YAML, which nodes consume it?
Did this MCP catalog make `id` an integer so old string requests fail?
Which viem `decodeEventLog` sites still assume the old Deposit layout?
Is this Mermaid arrow a real call, or only declared architecture?
The graph is built once per revision. Impact, API traces, health findings,
architecture checks, clone families, and context bundles therefore agree about
repository identity instead of recomputing incompatible partial views.
See it answer
Real answers from Weavatrix analyzing its own repository at commit
ec8bf30, abridged (…) and with the local root shortened. Reproduce any of
them with weavatrix tool <name> . '<arguments>'.
Orient in one call — and know exactly which repository and revision
answered:
{"name": "graph_stats", "arguments": {}}