check_tripwires
Preview which tripwires would fire for a given file path, without reading the file.
Record the corrections you have already made as tripwires bound to file paths, and have the relevant ones injected automatically the next time that file is read.
LABSCO SUMMARY
read_file is the whole mechanism: the context is injected before the code is seen, which is earlier than a review and earlier than a test. What keeps it auditable rather than opaque is explain, which renders exactly what would be injected for a path including the dependencies and the entries that were suppressed, and check_tripwires, which answers the same question without opening the file at all. Retiring a rule is a soft disable that sets active: false and leaves the YAML in place, so the reason it existed outlives the decision to stop firing it.
A project-local safety-note system: tripwires stored as YAML and matched to paths, injected into file reads, with tools to preview what would fire and why.
Nothing to supply — no account, no key. A project root, since paths and glob searches are resolved relative to it, and the YAML files the tripwires live in.
One command — npx -y @tripwire-mcp/tripwire serve --project .
USE CASES
Reading through this tool injects the matching tripwires with the content, so the warning arrives before the edit rather than in review. The same match can be previewed without reading the file at all.
A tripwire records its triggers, a severity, tags, the context to inject and what it was learned from, so the next person gets the reasoning rather than only the rule.
The explanation renders exactly what would be injected for the path, including which tripwires matched, what they depend on, and which entries were suppressed and therefore never shown.
Deactivating sets active: false in the YAML instead of deleting it, so the reason the rule existed survives the decision to stop firing it.
Glob search and directory listing resolve relative to the project root, so the set of files a trigger matches can be enumerated and each one checked before the rule is written.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
check_tripwiresPreview which tripwires would fire for a given file path, without reading the file.
create_tripwireCreate a new tripwire to prevent future mistakes. Use when corrected on a pattern that should be remembered.
deactivate_tripwireSoft-disable a tripwire without deleting the file. Sets active: false in the YAML.
explainShow exactly what would be injected for a file path and why. Returns matched tripwires, dependencies, suppressed entries, and the rendered injection.
file_statGet file or directory metadata (type, size, modified, created).
list_directoryList files and directories at a path relative to the project root.
list_tripwiresList all active tripwires, optionally filtered by path, tag, or severity.
read_fileRead a file with tripwire context auto-injected. Use instead of raw file reads to get safety-critical context before modifying code.
search_filesSearch for files matching a glob pattern relative to the project root.
BEFORE YOU INSTALL
9 tools when we connected.
Node.js >= 18
Both documented clients run the server on your machine.
CONTEXT COST
Rated by the size of the 9 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
npx -y @tripwire-mcp/tripwire serve --project .{
"mcpServers": {
"tripwire": {
"command": "npx",
"args": [
"-y",
"@tripwire-mcp/tripwire",
"serve",
"--project",
"."
]
}
}
}