Listed from the MCP registry; nobody on Odel publishes it.
Upgrade intelligence for AI agents: what an upgrade changes, where it touches your code, CVE scans.
Runs on your machine from its package; the steps are below.
At most: creates or changes data: records, files, settings.
Odel charges nothing per call. The publisher may charge for its own service.
Runs locally over stdio
This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).
Run
npx -y @4da/mcp-server
MCP client config
{
"mcpServers": {
"4da": {
"command": "npx",
"args": [
"-y",
"@4da/mcp-server"
]
}
}
}Upgrade intelligence for AI coding agents. Before your agent bumps a dependency it learns what changes between the version you run and the one you want, which of your files that touches, and which vulnerabilities the move fixes, from your own lockfiles, on your machine. Plus vulnerability scanning at osv-scanner parity on the lockfiles it reads (what that covers, and how it is measured), ranked upgrade plans and decision memory. Zero config, no account.
You: "Upgrade axum to 0.8"
Agent → upgrade_impact { package: "axum", to_version: "0.8.4" }
axum 0.7.9 -> 0.8.4: 5 releases (0.8.2 yanked), changelog from the 0.8.4 crate.
12 breaking entries, 8 touch your code (Path, Query, Router, extract, serve):
breaking Remove OptionalFromRequestParts impl for `Query` (you use Query)
breaking Require `Sync` for all handlers added to `Router` (you use Router)
...
Your code: 10 files import axum.
(Output of version 6.0.0, abridged, from 2026-10-02 on the 4DA desktop app's repository, where this server lived until 2026-10-04. Later releases word the same answer a little differently (6.3.0 counts 11 breaking entries for this upgrade), and the files and symbols an answer names are your project's.)
One command to install. No API keys. No accounts. Your code never leaves your machine.
Requires Node.js 22 or later. CI runs the suite on Node 22 (the newest 22.x on Linux, Windows and macOS, and 22.12, where the server falls back to better-sqlite3) and on Node 24 (Linux); other versions are not tested.
The server uses Node's built-in node:sqlite (Node 22.13 and later), so it needs no install script and works with npm 12's default of blocking them. On Node 22.0-22.12 it uses the optional better-sqlite3, whose native module npm 10 and 11 build on install. npx @4da/mcp-server@6.5.1 --doctor shows which one is in use.
claude mcp add --scope user 4da -- npx -y --prefer-offline @4da/mcp-server@6.5.1
Every command and config on this page pins the version, and so do the plugin, the Gemini extension and the entry --setup writes, so what runs changes only when you change it. Each configuration starts the server with npx -y --prefer-offline: with --prefer-offline a cached copy of the pinned version starts without asking the registry first, which matters behind a slow or dead proxy. npx's own options go before the package name; written after it they are passed to the server, which exits with unknown argument. Without a version, npx runs whatever it has cached or the newest release, which you did not review.
To update, replace the version with the newest one on npm (npm view @4da/mcp-server version, or run --setup --update from the newer version); the changelog says what changed. A pinned install never updates itself, so the server says when a newer release is published: get_context carries update_notice (both versions and the command that moves the pin) and --doctor prints it as a "Server version" warning. The server reads the newest version from the npm registry only after a tool call of the session has already contacted a package registry, never at start-up and never with FOURDA_OFFLINE, at most once a day per data folder.
As a Claude Code plugin (the MCP server plus a hook):
claude plugin marketplace add 4DA-Systems/4da-mcp-server
claude plugin install 4da@4da
The hook runs before the edit or command (PreToolUse on Edit, MultiEdit, Write, Bash and PowerShell), so it can stop a dependency version from being written or installed before it was checked. Every dependency_check verdict is recorded in a local ledger in the server's data folder (check-ledger.jsonl, never sent anywhere), and the server finishes writing it before it exits, so a host that closes the session straight after the answer still leaves the verdict the hook reads. For each version the call would introduce (in package.json, Cargo.toml, pyproject.toml, any *requirements*.txt (requirements-dev.txt, dev-requirements.txt) or requirements/*.txt, go.mod or pnpm-workspace.yaml, or in an install command: npm install (and every alias, typo and abbreviation npm itself accepts for install and install-test: i, add, inst, isntall, it ...), pnpm add, yarn add (also yarn workspace <name> add and yarn workspaces foreach ... add), bun add or bun install with a package, pnpm up or yarn up with a version, cargo add, cargo update -p x --precise 1.0.1, uv add, uv pip install, uv lock / uv sync / uv pip compile / pip-compile with --upgrade-package x==1, pip install, poetry add, go get, go mod edit -replace=a=b@v1 or -require=a@v1, npm pkg set "overrides.x=1" (any dependency section), an npm alias with a version as the package it installs (npm i y@npm:x@1), also when run through bash -c, sh -c, fish -c, eval, pwsh -Command or -CommandWithArgs, Invoke-Expression, npx, bunx, pnpx, npm exec, pnpm dlx, pnpm -c exec, yarn dlx or corepack, up to three such wrappers deep, after a prefix (sudo, env, timeout, nice, nohup, time, command, exec, xargs, busybox, wsl) or a shell keyword (!, if ...; then, do), or inside a subshell ( ... ), a group { ...; } or a PowerShell script block & { ... }) it reads the verdicts of the last 24 hours: proceed or review goes ahead silently; avoid or wait is denied with that verdict's reason; no verdict, or only unknown, is denied with the exact dependency_check call to make, and the call goes through once it answers proceed. A denial quotes every name and version it repeats (they come from the edit or command, which may be a third party's, and are data, never instructions) and says what the call sends: a name goes to its public registry and OSV.dev unless the project's private rules cover it, and a name that is not published comes back unknown and stays blocked. A range or constraint goes ahead on a proceed or review answered for that same constraint, or, without one, on a proceed or review for exactly the release its inclusive ceiling names (<=1.2.3, 1.0.0 - 1.2.3, with only lower bounds beside it and no !=: the release a fresh resolve picks from it; a lockfile that already holds a release in the range keeps that one, so check the locked release too); an avoid or wait for either holds it, and any other range is denied with the call for that constraint ("latest" in package.json included). A package a private-registry rule covers (FOURDA_PRIVATE_PACKAGES, an .npmrc scope or registry, .yarnrc.yml npmScopes / npmRegistryServer, bunfig.toml scopes or registry, GOPRIVATE / GONOPROXY / GONOSUMDB, GOPROXY, a Cargo source replacement, a pip, uv or Poetry index, a requirements --index-url, a Pipfile source), which the server never looks up, goes ahead at any version, in any project, for 24 hours after the server has said so, as in 6.5.0, unless there is an avoid or wait for that exact version or constraint, older or newer. A name a project takes from git, a path, its workspace, an alias, a catalog or another registry is not looked up either, and is held when a command or an edit would install it from the public registry: that release was not checked. To install the registry release, first remove the non-registry spec from the manifest that declares it (that edit goes ahead; one that puts a registry version in its place is held like the command), or repair the catalog when the reason says it could not be read; dependency_check then looks the name up, and the install is judged on its verdict. An edit that keeps such a name's non-registry spec installs nothing from the registry and goes ahead. A name the server withheld because a lockfile could not be read is held, with the file to repair. A bare install, npm ci (and npm install-ci-test, which installs the lockfile), a registry or index other than the public one (the public one named explicitly is read: a --registry naming registry.npmjs.org, pip's or uv's -i / --index-url https://pypi.org/simple, cargo add --registry crates-io), a git or path source (in a command or in a manifest: Cargo path, git or registry, [tool.uv.sources], Poetry path, git, url or a named source, a PEP 508 direct reference, a go.mod replace to a directory; a replace to a module version is held as that module's version), or a command line with variables, substitutions or heredocs goes ahead without comment, as does a global tool install that names no version the hook reads (cargo install, yarn global add, go install, npx some-tool@1.2.3), which is no dependency of the project. A global install through npm i -g, pnpm add -g or bun add -g names its version as a project install does, and is checked like one. What the hook does not read is listed in the CHANGELOG's known limits. FOURDA_GUARD=advise never denies and advises after a manifest edit instead (the behaviour before 6.5.0); FOURDA_GUARD=off turns the hook off. The hook denies only where that ledger exists: a server from 6.5.0 on starts it, empty, when it starts serving. Beside an older server, which records no verdict, a denied edit could never pass, so there the hook denies nothing and advises after a manifest edit as it did before 6.5.0. The hook is plain Node and contacts nothing. It lets the call through when it cannot tell what the call is: a payload under 8 MB that is not JSON, a missing data folder, an error of its own on a call that neither writes a manifest nor names an install, or a payload still arriving after 8 s (the hook then ends without a word). A manifest write or edit (by file name), or a command that names an install in plain sight (not inside a quoted argument such as bash -c "...", nor behind a prefix the hook's quick look does not read: the changelog's Known limits), that it cannot read whole is held instead, and the denial names the part: a requirement or manifest line over 64 KB once its comment is dropped, a single version over 80 characters, a range or constraint over 1,000, an npm pkg set key over 600, TOML nested more than 100 levels (a package.json that parses is read at any depth; one read as a fragment, because it does not parse or the edit does not apply to the file on disk, is held past 100 levels), a manifest on disk over 8 MB, an edit whose result would be over 8 MB (its replace_all matches are counted before it is applied), a MultiEdit whose edit count times the file's size passes a fixed bound (decided before any edit is applied), a command over 64 KB, a payload over 8 MB, a check-ledger file over 4 MB or with more than 5,000 entries for one package, an error of its own, or reading that runs past 2 s from the hook's start (the readers check it as they go). For a command over 64 KB, "names an install" is checked over the whole text: some simple command starts with a package manager's name (after VAR=value words or a prefix word such as sudo, env, npx, corepack, with that prefix's dash options and numbers skipped but not an option's own argument: sudo -u root npm i is not seen; its last path part, quote characters and a version after @ dropped) and goes on, in that same simple command, to one of that tool's install, add or update words; quoted text, comments, heredoc bodies and PowerShell here-strings are skipped, so an install inside a quoted argument (bash -c "npm i x@1") is not seen at this size. A payload over 8 MB and up to 64 MB is parsed and judged by its tool_name, file_path and command (a command whose pre-check is not done about 2.5 s after the hook's start is held); one that does not parse, or is over 64 MB, is judged from its first 64 KB of text. Claude Code stops a hook after 10 s and then lets the call through. In a replay of the review corpus (2,649 calls) the slowest answer was 1.3 s, a denial of a 7.6 MB pnpm-workspace.yaml Write, and no call reached the 10 s limit; past 2 s of reading the hook stops and holds the call (measured on payloads of 40 to 62 MB of very short commands: held after 3 to 4 s). Any other call goes ahead at once, whatever its size.
Add to ~/.cursor/mcp.json (Cursor), ~/.codeium/windsurf/mcp_config.json (Windsurf), or ~/.config/devin/mcp_config.json (Devin Desktop and Devin CLI; %APPDATA%\devin\mcp_config.json on Windows):
{
"mcpServers": {
"4da": {
"command": "npx",
"args": ["-y", "--prefer-offline", "@4da/mcp-server@6.5.1"]
}
}
}
Run MCP: Open User Configuration and add the entry, or edit the file directly: %APPDATA%\Code\User\mcp.json (Windows), ~/Library/Application Support/Code/User/mcp.json (macOS), ~/.config/Code/User/mcp.json (Linux). VS Code uses servers, not mcpServers:
{
"servers": {
"4da": {
"type": "stdio",
"command": "npx",
"args": ["-y", "--prefer-offline", "@4da/mcp-server@6.5.1"]
}
}
}
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"4da": {
"command": "npx",
"args": ["-y", "--prefer-offline", "@4da/mcp-server@6.5.1"]
}
}
}
npx @4da/mcp-server@6.5.1 --setup --dry-run # show each file and entry, write nothing
npx @4da/mcp-server@6.5.1 --setup
npx @4da/mcp-server@6.5.1 --setup --update # also replace a 4da entry that is already there
Writes the entry, pinned to the version you ran it from, into the Cursor, VS Code (and Insiders), Windsurf, Devin Desktop and Claude Desktop configs it finds, merging into what is there: other servers, settings and comments are kept, and a backup (.bak) is written first. A 4da entry that is already there and differs (another version, a local build, a wrapper command) is kept and reported; --update replaces its command and keeps its env and other fields. A file it cannot read exactly (invalid JSON, not UTF-8, the same key twice) is left untouched with the entry to add by hand, and the exit code is then 1. For Claude Code it prints the claude mcp add command instead of editing ~/.claude.json.
Then ask your AI: "What changes if I upgrade X to Y?", "Scan for vulnerabilities" or "What should I upgrade first?"
The server reads every lockfile of the project it is started in, including independently-locked projects below the root (a repo with src-tauri/Cargo.lock beside a root pnpm-lock.yaml is scanned whole): package-lock.json / npm-shrinkwrap.json, pnpm-lock.yaml (v5–v9), yarn.lock (v1 and berry), bun.lock, Cargo.lock (Cargo workspaces included), poetry.lock, uv.lock, pdm.lock, Pipfile.lock, requirements pins (*requirements*.txt, requirements/*.txt, with -r and -c), go.mod / go.sum (Go's build list), Gemfile.lock (RubyGems; git and path gems are local code, not releases) and composer.lock (Packagist). Every Python source in a folder is read, not only the first. Every installed copy is scanned, not one version per name, with the lockfile's own dev flags. It re-reads them whenever a lockfile changes, and for npm it also checks what node_modules actually holds. A lockfile is what is installed, so it is read whether or not .gitignore lists it, and a dot-directory (.github/actions/*) is a directory like any other; so are build/, dist/, out/, coverage/, .vscode/ and .idea/, which are read unless the repository ignores them. What is not scanned is said, lockfile by lockfile, under coverage.not_scanned.lockfiles with a reason: a directory .gitignore excludes is left out (it is as often a scratch clone as the project's own code: gitignored_directory); installed code, a tool's build output or cache, and editor or agent state (node_modules, target, .venv, .next, .claude ...) are never scanned, and when the repository does not ignore such a directory the lockfiles in it are listed (excluded_directory; it is searched within 2,000 directories, and the answer says when that bound stopped it); a lockfile sitting directly in an ignored vendor/, target/ or venv/ is listed too (output_directory); version-control data is never entered. A junction or symbolic link whose real path is inside the project is followed, each directory walked once; one that leads outside it is not, and the lockfiles behind it are listed (symlink_outside_root); a directory the walk cannot list is named (unreadable, its path ending in /). A lockfile or manifest holding git merge-conflict markers is not read at all, neither side of it: it is listed with reason merge_conflict, coverage.complete is false and every tool says NOT CHECKED (merge conflict) for it. The walk goes 4 levels down and up to 256 projects; whatever it leaves out is listed the same way (depth, project_limit). So is every manifest with no lockfile: its declared ranges are not installs and are not scanned, its exact pins are checked but the packages they pull in are resolved nowhere (coverage.unresolved_manifests, and coverage.manifests_without_lockfile for a manifest in a subdirectory that no lockfile above holds as a workspace member). vulnerability_scan always returns a coverage block: a scan that left nothing out says complete: true with lockfiles_read (and lockfiles_not_scanned: 0), one that left something out says complete: false and lists it; nothing is dropped silently. So are manifests of ecosystems it does not read (Maven pom.xml, Gradle, .NET *.csproj / packages.lock.json, Pub, Hex, SwiftPM, CocoaPods: coverage.not_covered), lockfiles that exist but cannot be read (invalid JSON, Bun's binary bun.lockb: coverage.unreadable_lockfiles), lockfiles that are truncated or damaged and were read only up to the damage, or are older than their manifest (a dependency package.json or Cargo.toml declares has no entry; npm, pnpm, Yarn and Bun lockfiles alike) (coverage.partial_lockfiles), a second lockfile in a directory that disagrees with the one that was read (coverage.conflicting_lockfiles), requirements with no pinned version such as pydantic>=2.0.0 (coverage.unpinned_requirements: there is no installed version to check), dependencies installed from git or a URL (coverage.not_checkable: they are not the registry package of that name, so they are never matched against it), files of a supported ecosystem in a form that is not read (environment.yml, setup.py, pylock.toml), and lockfiles under test-fixture directories (tests/, test/, fixtures/, testdata/, __fixtures__/, conformance/ ...), which are not scanned as the project's own unless you pass include_test_fixtures: true (coverage.not_scanned). Every lockfile problem listed here (unreadable, partial, conflicting, a refused include, a merge conflict, a conflicted go.sum included) also makes upgrade_planner say vulnerabilityDataAvailable: false: the plan and the scan read the same list.
Started in a workspace member that has no lockfile of its own, whose manifest an ancestor's lockfile holds as a member (npm, pnpm, Yarn and Bun workspaces, a Cargo workspace, a uv, Poetry or PDM workspace, a go.work), the server reads that workspace root and says so (project_root is the root; vulnerability_scan's workspace_note and dependency_health's summary name the member it was started in). The search stays inside the enclosing git repository, or at most 6 levels up with none, never at or above your home directory; an ancestor lockfile that cannot be confirmed to hold the directory is named in the coverage note, not read. When no lockfile was read for the project at all, no tool scores or clears it: dependency_health gives healthScore: null with withheldReason: "no_lockfile" and a NOT CHECKED summary (never "0 vulnerable"), a dependency known only by its declared range shows currentVersion: null beside declaredRange, upgrade_planner sets vulnerabilityDataAvailable: false, what_should_i_know never says safe_to_delegate on that basis, and vulnerability_scan starts its answer with NOT CHECKED and gives null totals (what it found among a manifest's exact pins is a lower bound, under found_in_checked_dependencies). A folder that holds nothing the server reads, an empty one or the wrong one, is answered the same way, never as a complete scan with zero findings.
An incomplete answer is never a clean one. When OSV.dev cannot answer for some dependencies (outage, HTTP error, timeout, the query budget), vulnerability_scan starts with summary: "NOT CHECKED: ... N of M dependencies have no vulnerability answer", counts them in coverage.unchecked_dependencies, and sets total_vulnerable_packages and by_severity to null (what the checked part found is under found_in_checked_dependencies); dependency_health withholds its score and vulnerable count, and upgrade_planner sets vulnerabilityDataAvailable: false. Large trees are queried in batches of 1,000 as OSV's budget allows, so a tree past 10,000 dependencies is answered in full, and a long answer is read to its last page. An advisory OSV matched whose record it then failed to return is listed as details: "NOT CHECKED": its severity is unknown, not low, no severity_filter drops it, and it is asked for again on the next scan instead of being cached. The scan the other tools reuse is at most one hour old; past that it is taken again.
Two grades for one advisory. severity and by_severity are the grade the 4DA app presents, adjusted for scope (a transitive copy caps critical at high, a dev-only copy drops a level); the advisory's own grade is always visible beside it: advisory_severity on a package row whose own grade differs, and by_advisory_severity beside by_severity (the detailed answer also keeps it as advisory_by_severity). When any advisory is critical by its own grade, the summary says so first (after any NOT CHECKED headline): how many, on which package versions, and how many are presented lower because they are transitive or dev-only. Every recommendation names the own grade where it differs ("3 high (2 critical by the advisory)").
What "osv-scanner parity" covers, and how it is measured. Two things: reading the same installed packages out of a lockfile (inventory), and matching them to the same advisories (findings). It is not feature parity: osv-scanner reads ecosystems this server does not (Maven and Gradle among them). The measurement is the conformance corpus in the 4DA repository, fetched at a pinned commit: 36 cases (32 public repositories at pinned commits, 4 synthetic), scored for npm, crates.io, PyPI, Go, RubyGems and Packagist, with 3,929 OSV records pinned as OSV.dev served them (and 6 synthetic rule records). The expected inventory comes from osv-scanner 2.6.0 and the expected findings from OSV.dev's own evaluation of each installed version, with every correction recorded in the corpus; the corpus is kept by the same maintainers as this server. Against it this engine reads 20,458 inventory entries with none missing and none extra, and reports 4,785 findings with 0 false positives and 0 false negatives. That run is offline, on the pinned records, with this server's own range matcher: it measures the readers and the matching, not the live requests to OSV.dev, and not a lockfile damaged in a way the corpus does not hold. CI runs it on every change (conformance (pinned)) and a release requires it; to run it yourself: node scripts/fetch-conformance.mjs && pnpm exec vitest run src/__tests__/conformance.test.ts --reporter=verbose, which prints the table per ecosystem (see conformance/README.md).
Measured with a coding agent on the 6.2.5, 6.2.6, 6.2.7 and 6.5.1 release candidates (pre-registered, 49 dependency tasks x 3 trials, one model, claude-sonnet-5-5, tasks written by the authors, shell and web off in both arms): it wrote a vulnerable version in 82 of 138 well-posed runs without the server and 0 of 138 with it. The four runs share one recorded no-server arm and one truth pinned on 2026-10-24; the latest run came a month after that pin, and with the one task that has since become ill-posed set aside it reads 0 of 135 against 79 of 135. No result for the releases in between is published here. Harness, tasks, pinned truth and results: bench/g7.
dependency_health's weekly-downloads figure (upgrade_planner and what_should_i_know make the same request when they read registry data for npm packages), and for dependency_check when a new dependency's name is a near-miss of a popular package (that name and the popular one, nothing else)upgrade_impact reads; GitHub only if you opt in with FOURDA_GITHUB_CHANGELOG=true (below)dependency_check (publish times, yanks and retractions; on npm and crates.io also publishers, install scripts, per-version dependencies). These requests carry the package name only. Besides them, dependency_check requests per-release documents of the releases it is judging (to, a constraint's candidates, the safe releases it names): the Go proxy's .info and .mod (its list has no dates; the same requests go get makes, and .mod lists what the release requires), and on PyPI the release's own document (pypi.org/pypi/<name>/<version>/json, the only place a release that is not the latest lists its requirements); and it looks up, by name, the release lists of the packages those releases require (crates.io, PyPI) and their advisories at OSV.dev. The version you have installed (from) is named only to the Go proxy (its .info) and, on PyPI, only when it is also to. upgrade_planner names a version to a registry in two cases: on PyPI, a parent that uv.lock or a compiled requirements file names without its requirement is asked for by its own release (pypi.org/pypi/<name>/<version>/json, the installed version); and on npm, PyPI and Go a fix version is asked for by name. OSV.dev's advisory list for the package lets dependency_check name the safe releases in a constraint. Packuments are cached on disk and revalidated with If-None-Match; crates.io API reads are spaced one per second.ecosystem_pulseFOURDA_GITHUB_CHANGELOG=trueThose are all the hosts the server contacts.
Results are cached (24h for registry data, 1h for vulnerabilities, 30min for news) and rate-limited per source.
What's sent over the network, and when: nothing when your editor starts the server and lists its tools; the project is read locally, and the first request goes out when a tool that needs it is called (vulnerability_scan, what_should_i_know, dependency_check ...). Then: package names and versions (the same data visible in your lockfile), and, only for ecosystem_pulse, the names of a few of your dependencies as search terms. Never a private package's name (below). No source code, no file paths, no personal data. The call-site scan of upgrade_impact runs locally. Set FOURDA_OFFLINE=true to disable all network calls.
Private packages are never sent. A package is private, with nothing to configure, when your machine already says so:
.npmrc (or a parent directory's, or any member directory's the project walk finds, lockfile or not), your user .npmrc (or npm_config_userconfig in any case), the global npmrc (npm_config_globalconfig, else <prefix>/etc/npmrc with the prefix from npm_config_prefix / PREFIX, %APPDATA%\npm or node's own), a quoted key ("@acme:registry"=...), the environment (npm_config_@acme:registry, any case), .yarnrc.yml npmScopes at any indentation or in flow style (@acme:registry=https://npm.acme.dev/; the project's and those above it, ~/.yarnrc.yml, under the name YARN_RC_FILENAME gives, and YARN_NPM_SCOPES), or bunfig.toml [install.scopes] (a URL, { url = ... }, or an [install.scopes.<scope>] table; the project's, ~/.bunfig.toml or $XDG_CONFIG_HOME/.bunfig.toml); or your lockfile installs it from another host: the resolved location in package-lock.json / npm-shrinkwrap.json and yarn v1 yarn.lock, a yarn berry resolution URL (or __archiveUrl), the tarball in pnpm-lock.yaml (GitHub Packages included), the registry URL of a bun.lock entry. A default registry that is not public (registry= in any of those .npmrc files, npm_config_registry, yarn's npmRegistryServer or YARN_NPM_REGISTRY_SERVER, bun's [install] registry) makes every npm package of the project private (see "Mirrors" below); registry.npmjs.org, registry.yarnpkg.com and registry.npmmirror.com are public.GOPRIVATE, GONOPROXY or GONOSUMDB, from the environment or from go env -w (the GOENV file; as go does, an empty variable falls back to it), whatever spelling a tool is given (https://github.com/acme/mod.git, git+ssh://git@github.com/acme/mod, git@github.com:acme/mod.git, ...#v1.2.3, .../tree/main); or GOPROXY names a proxy that is not public (see "Mirrors" below).Cargo.lock installs it from a registry other than crates.io, or from git (path dependencies are local code and were never sent); or Cargo.toml (the root's and every workspace member's, members globs and exclude respected) takes it from another registry (registry = "acme" other than crates-io, or registry-index) or from git, in any dependency table or [patch], with or without a lockfile; or a .cargo/config.toml (in the project, any directory above it, or CARGO_HOME) patches it from git or another registry, or replaces crates.io with a registry that is not crates.io (see "Mirrors" below; a vendored directory is crates.io's own crates).uv.lock, poetry.lock or Pipfile.lock installs it from an index other than pypi.org; or a requirements file pins it under --index-url / -i naming another index (set in the file or in any file it includes with -r or -c, nested); or pyproject.toml takes it from another index (uv [tool.uv.sources] name = { index = "acme" } naming a [[tool.uv.index]] that is not pypi.org; Poetry name = { version = ..., source = "acme" } naming a [[tool.poetry.source]] that is not pypi.org), with or without a lockfile; or a direct reference installs it from a location that is not public (name @ https://pkgs.acme.dev/..., name @ git+https://git.acme.dev/..., name @ file:..., uv or Poetry git / url / path sources; pypi.org's files, the public wheel indexes and GitHub, GitLab and Bitbucket are public); or, with no lockfile, uv, Poetry or PDM consults an index that is not pypi.org for any name (a [[tool.uv.index]] that is the default or not explicit, [tool.uv] index-url / extra-index-url, uv.toml in the project or above it, the user's or the system's, UV_DEFAULT_INDEX, UV_INDEX_URL, UV_INDEX, UV_EXTRA_INDEX_URL, a Poetry source that is not priority = "explicit", a PDM source): then every package the project declares is private; or pip is configured with another index (PIP_INDEX_URL, or index-url in any pip config file pip reads: site-wide %ProgramData%\pip\pip.ini, /etc/pip.conf, $XDG_CONFIG_DIRS/pip/pip.conf, /Library/Application Support/pip/pip.conf; per-user %USERPROFILE%\pip\pip.ini, %APPDATA%\pip\pip.ini, ~/.pip/pip.conf, ~/.config/pip/pip.conf, ~/Library/Application Support/pip/pip.conf; the virtualenv's $VIRTUAL_ENV/pip.ini or pip.conf; PIP_CONFIG_FILE) and a requirements file installs it. A company mirror of PyPI named there counts as private too: list nothing, and its packages are reported as not checked. An --extra-index-url (in a requirements file, PIP_EXTRA_INDEX_URL or pip config) that is not pypi.org counts the same way: pip takes each package from whichever index has the newest release, so any name it installs may come from that index, and the packages a requirements file installs are private (not sent, reported as not checked); the answer names the index (registry_notice). A lockfile that records each package's index (uv.lock, poetry.lock, Pipfile.lock) lets the public ones be checked.Gemfile.lock lists it under a GEM section whose remote: is not rubygems.org.composer.lock installs it from a host other than Packagist and the public code hosts (a Satis or Private Packagist server), or from a repository composer.json declares that is not Packagist (vcs, even on GitHub; composer; path; artifact).Mirrors: one policy for every ecosystem. A registry, index or proxy that is not the public one, and that the package manager consults for any name (an .npmrc registry=, a pip --index-url or extra index, a uv or Poetry default index, GOPROXY, a Cargo source replacement), can serve packages published nowhere else, so every package of that ecosystem the project installs is private: never sent, reported as not checked, with the reason and the setting named (registry_notice for npm and pip). If such a server only mirrors the public registry (Artifactory, Nexus, devpi, Athens as a pure proxy), say so with FOURDA_PUBLIC_MIRRORS=artifactory.acme.dev,athens.acme.dev (hosts, comma- or space-separated) and its packages are checked again; its lockfile hosts count as public too. Until 6.3.0 an npm registry= host and GOPROXY were read as mirrors and unscoped names were sent. Go needs no proxy for a module on your own host: one that neither GOPRIVATE (or GONOPROXY / GONOSUMDB) names nor a private GOPROXY covers is fetched by go through the public proxy too, and is looked up here the same way; name it in GOPRIVATE.
A dependency taken from a path, git or a URL is not the registry package of its name, and is never looked up by that name, in the manifests and lockfiles the scan reads. npm specs are read as npm reads them: file:, link:, workspace:, a bare path (../libs/x, ./x, ~/x, /opt/x, C:\x), a tarball file (vendor/x-1.0.0.tgz), GitHub shorthand (org/repo#ref) or any git spelling, a URL other than the public registry's own tarball of that package, another protocol, an alias npm refuses, and a protocol spelling with whitespace around it; so is a dependency an override forces to one of those (overrides, resolutions, pnpm.overrides), a name the lockfile installs only as a link (a workspace member), from git, a URL or a local archive, and a workspace member's own name, read from the enclosing workspace root whether or not a lockfile exists. A catalog: dependency is what its pnpm or Bun catalog entry says, judged by the same rules; one whose entry cannot be found or read is withheld. Cargo: path and git crates, a crate a member inherits with { workspace = true } (or name.workspace = true) from such an entry, the dotted forms (name.path = ..., name.git = ..., "name".path = ...), and both the key and the package of a package = rename. Python: a requirement installed from a local path, editable or archive, a git checkout anywhere (GitHub included), an archive URL on a host other than PyPI's own file host, a uv { workspace = true } source, and the project's own [project] or Poetry name. A requirement given as a URL on PyPI's own file host (six @ https://files.pythonhosted.org/...) is not withheld: dependency_check checks it by name, while the scan lists it under not_checkable (no version is read from the URL). npm workspace members linked by a symlink or junction count as members, and a server started in a folder with no manifest below a project, below a folder that holds .git (a .git file counts; GIT_DIR is not read) (src/lib, src/bin; at most three levels, never above that folder) reads that project, so the first call there does that project's scan; with no .git above it, nothing above the start folder is read. Such a dependency gets no registry row in dependency_health or upgrade_planner, dependency_check answers it unknown with not_checked: "private", upgrade_impact refuses it, and neither the briefing nor ecosystem_pulse sends it; what it installs is listed under coverage.not_checkable. Such a name is also withheld when you ask about it for another project, while a scanned project still declares it so, unless the project you ask about itself declares it as a registry dependency; an alias key is withheld only inside the project that aliases it. The answer says NOT CHECKED (not a registry release) and where the name comes from. 6.5.0 and earlier sent many of these names by themselves: dependency_health and upgrade_planner asked the registry about them, ecosystem_pulse sent them to Hacker News, and dependency_check, upgrade_impact and the briefing looked them up when asked. Versions, ranges, dist-tags (latest, next), a catalog entry that is a range and an npm: alias's target are registry releases and are checked; inside the project whose package.json declares an alias, its own key is never sent, with any lockfile, and asked about directly it is answered with its target named; in another project the same word is an ordinary package name and is looked up as one (a key such as lodash or @types/react is also a real public package). Not covered: a manifest the scan does not read (a project in a subdirectory with no lockfile, which the scan lists under manifests_without_lockfile), so a name declared only there is looked up if you ask about it directly; the project's own root package name in npm, pnpm, Yarn v1 and Bun, when you ask about it directly; a crate in a folder the Cargo workspace excludes that nothing depends on, asked about directly; a Go module replaced by a GOPRIVATE fork, asked about directly, is looked up by its original path; and the repository path of an npm git dependency, asked about as a Go module, is looked up as one; an alias only the lockfile records (a package-lock.json root that still lists "x": "npm:y@1" after package.json dropped it, a lockfile out of step with its manifest) has its key sent when that package is found vulnerable, as in 6.5.0; for npm:npm:x@1 and npm:x-1.0.0.tgz, x is looked up if asked about directly; and an alias whose range npm cannot read (npm:x@=~7, npm:x@1.0.0 junk) is read as an alias to x, and x is sent like any alias target. A package a workspaces pattern excludes (!packages/legacy) is not a member, so npm installs it from the registry, and it is checked as a registry dependency.
Names are compared the way each registry compares them: a crate is the same whatever its case and whether it is written with _ or - (acme_core, Acme-Core), PyPI names are PEP 503-normalised, npm, RubyGems and Packagist names are case-insensitive. Look-alike spellings are folded first (NFKC, so fullwidth @acme/ui is @acme/ui; every Unicode dash or hyphen is -), and acme/ui or github:acme/ui is read as a form of @acme/ui.
Add your own with FOURDA_PRIVATE_PACKAGES: comma- or space-separated globs, * matching anything (/ included), each optionally prefixed with its ecosystem: FOURDA_PRIVATE_PACKAGES="npm:@acme/*, crates.io:acme-*, PyPI:acme-*, Go:github.com/acme/*". A bare scope (@acme) covers the whole scope; PyPI names are compared PEP 503-normalised (Acme_Auth is acme-auth). The rules are read again whenever one of those files or variables changes. A name your project also installs from the public registry is public (asking about it reveals nothing). A private package is still read from your lockfiles, and is never looked up anywhere, as itself or as the parent of a public one: vulnerability_scan, dependency_health, upgrade_planner and what_should_i_know lead with NOT CHECKED (private) (the briefing also for a private package the task only names, installed or not, and never calls such a task safe_to_delegate) and list each one with the file or setting that made it private (coverage.private_dependency_list), so the answer is never a clean one for it; dependency_check answers it unknown with not_checked: "private" (a name withheld only because a lockfile or manifest of the project could not be read is said as that, NOT CHECKED (unreadable lockfile) with unreadable_file, and the remedy is to repair the file); upgrade_impact refuses it; upgrade_planner never looks up a private parent's releases, and a step that arrives through one leads with NOT CHECKED (private) and names it in privateParents (never an inferred refresh); ecosystem_pulse never uses its name as a search term (its terms come only from the project the server runs for, never from other projects in the same data folder, and a name another of those projects installs privately is never one). As a second line of defence, every OSV.dev, registry and search request passes one check that refuses it when its URL or body names a private package; a refused request reads as not checked, never clean. Registry URLs are shown without credentials.
GitHub release notes (opt-in, off by default). Many packages ship no changelog in their registry archive (vite, zod, cobra, most Go modules). With FOURDA_GITHUB_CHANGELOG=true in the server's environment, upgrade_impact reads the repository's GitHub releases when the archive has no changelog for the range (for PyPI, first a changelog file the project links on GitHub from its project_urls). GitHub then receives the repository name and the versions, nothing else. It uses the unauthenticated REST API (60 requests an hour) or GITHUB_TOKEN when set (5,000); a rate limit is reported with its reset time, never retried in a loop, and results are cached. With it off, an answer without a changelog says so and names the setting; nothing is guessed.
What's written to disk, and where: only files the server owns, in its folder in your user data directory (%LOCALAPPDATA%\4da-mcp, ~/Library/Application Support/4da-mcp or ~/.local/share/4da-mcp; FOURDA_MCP_HOME moves it): cache.db (registry, OSV and changelog responses, in every mode; safe to delete, it costs refetches only), standalone.db (without the desktop app: your project scan and the decisions, agent memory and feedback you record; no cache) and check-ledger.jsonl (each dependency_check verdict, for the plugin hook; started empty when the server starts serving; moved to check-ledger.1.jsonl past 512 KB, so the two hold about 1 MB at most). Nothing is written inside your repository. standalone.db is known by its path: a file there that a killed first start left empty or half-made is completed in place, and a table that exists is never touched. (Until 6.3.0 standalone mode kept the cache inside standalone.db; that table is dropped the first time 6.3.0 opens it.)
When the 4DA desktop app is installed, the server reads the app's database (4da.db) through a read-only connection and never creates or alters anything in it: no tables, no columns, no cache. It is never the dependency inventory either, and a scan never writes to it: the dependency tools read every lockfile under the project root from disk, exactly as without the app, with the same coverage (see "Standalone vs. Full Mode"). The only writes are rows in the four app-owned tables the tools exist to fill, so the app sees them: decisions (decision_memory -> developer_decisions), agent memory (agent_memory), and feedback (record_feedback -> interactions and feedback, which the app's calibration reads). Those go through a separate write connection that waits briefly for the app's lock. If your app version lacks the table or a column a record needs, the record goes to standalone.db instead and the response says so in _meta. (Before 6.1 the server also created a live_cache table inside the app's database; it now keeps that cache in cache.db.)
Where configuration and the database come from: FOURDA_DB_PATH if set, else the desktop app's database in its data directory, else the server's own standalone.db. FOURDA_DB_PATH must name an existing file (a relative path resolves against the server's working directory); one that names no file is refused and nothing is created there, except when it names the server's own standalone.db. A file with no tables is not taken for the app's database either. Then the tools that answer from the project's files (vulnerability_scan, dependency_health, dependency_check, upgrade_impact, upgrade_planner, what_should_i_know, ecosystem_pulse) still answer, each answer carrying _meta.database_note with the reason (the briefing has no stored decisions, memories or feed rows, and says so in stored_data_note); every other tool returns the error, which names the path. A fresh clone whose committed .mcp.json names ./data/4da.db therefore still gets dependency answers. Embedding settings come from FOURDA_SETTINGS_PATH, else the settings.json beside FOURDA_DB_PATH, else the desktop app's data directory. Nothing is picked up from the directory the server is started in: until 6.2.5 a data/settings.json or data/4da.db inside (or beside) the working directory was adopted, so a cloned repository could redirect semantic recall to a host of its choosing or plant "decisions".
The one exception: if you explicitly configure an OpenAI embedding provider (
FOURDA_EMBED_PROVIDER=openai) for semantic recall, OpenAI receives exactly this, to be embedded: the text of the decisions and memories you stored (subject, decision or content, rationale, rejected alternatives), and the text being searched for: awhat_should_i_knowtask, anagent_memoryrecall query, or acheck_decision_alignmenttechnology and pattern. Never the file paths you pass infiles(they rank results locally), never source code. The default — no embedding provider, or a local Ollama one — keeps everything on your machine, andFOURDA_OFFLINE=trueoverrides it regardless.
Ecosystems supported: npm, crates.io (Rust), PyPI (Python), Go; vulnerability_scan also reads RubyGems (Gemfile.lock) and Packagist (composer.lock). Maven, Gradle and .NET are not read, and are listed as not covered. upgrade_impact reads npm, crates.io, PyPI and Go. PyPI: versions and dates from the PyPI JSON API, the changelog from the release's sdist, and import sites matched on the module the distribution installs: read from your virtualenv's metadata (.venv, venv, env: top_level.txt or RECORD), else a table of well-known differences (PyYAML -> yaml, Pillow -> PIL), else the distribution name, which the answer then labels an assumption. Go: versions and dates from proxy.golang.org, the changelog from the module zip, and a major version 2+ reported as the module path change it is (github.com/jackc/pgx/v4 -> /v5), with the files that import the old path. dependency_check reads all four too; on PyPI and Go, where the registry exposes no publisher identity or install hooks, those signals say "not applicable".
Known limits, stated plainly: a requirements.txt without a lockfile names only your direct pins, so their transitive dependencies are not scanned (use uv lock, poetry lock or pip-compile). Many packages ship no changelog in their registry archive (fastembed, vite, zod among them); upgrade_impact then says so and gives the release-notes URL instead of guessing. Breaking entries are flagged from the changelog's headings and wording, and every entry carries the heading it sits under (under). Measured on a panel of 40 real upgrades across npm, crates.io, PyPI and Go (1,618 entries; gold is the majority of three blind raters, each a model instance working to a written rubric, with a verbatim quote for every label; the panel and the measurement are in the test suite): on the 20 upgrades held out from rule-making, 95% of entries flagged breaking were breaking (95% CI 89-98%) and about 72% of breaking entries were flagged; Go release notes written as prose are the weakest (about 54% recall). Treat the flags as a pre-sort: read every entry of a major upgrade. Each answer says this in _meta.classification.
The plan has limits of its own. run_order is the part of the plan that is safe to run as commands. Rows that need a hand edit (an override that crosses a major of what its parents declare, Yarn classic lockfile entries with copies on several release lines, a requirement edit the manager has no command for) are counted and named in run_order_note; running the script alone does not finish them. Measured on 14 public projects (bench/plan-exec: each project's plan run top to bottom on a copy, then rescanned), the script ran 0 failing steps where 6.4.0's plan had 10, and on Yarn classic projects it leaves most of the work as named hand steps. A target is checked for vulnerable dependencies it holds one level down and, on npm, for the exact pins of those dependencies two levels down (@hey-api/openapi-ts 0.97.3 pins @hey-api/json-schema-ref-parser 1.4.2, which pins an affected js-yaml 4.1.1: the plan says so and gives no command for it, and dependency_check names the copy); a range two levels down, anything deeper, and a copy bundled inside the target's tarball (tap bundling its own copies) are not detected. A first plan or check of many crates can need a second call: crates.io allows one request a second, so a cold batch of 25 crates may not finish within one call's time, and what it did not reach is answered NOT CHECKED, never clean (the lookups run on, and the next call answers from them). With project_path: "*", the app's plan has one step per package, which can still cover copies whose routes differ between projects; upgrade_planner for one project gives each copy its own row.
"What changes if I upgrade axum to 0.8?" -> upgrade_impact
"Check my dependency health" -> dependency_health
"Scan for vulnerabilities" -> vulnerability_scan
"Which deps should I upgrade first?" -> upgrade_planner
"Is it safe to bump axios to 1.14.1?" -> dependency_check
"Pin ws to a 7.x version" -> dependency_check (to: "7.x")
"I'm about to bump fastembed 5 -> 7" -> what_should_i_know
"What's happening in the ecosystem?" -> ecosystem_pulse
"What's my tech stack?" -> get_context
"Record a decision: we chose Postgres" -> decision_memory
"Does switching to MySQL align?" -> check_decision_alignment
"Remember: never use ORM for batch inserts" -> agent_memory
| Tool | What it does |
|---|---|
upgrade_impact | What changes between the installed and a target version of one dependency (npm, crates.io, PyPI, Go): releases in between, changelog entries classified breaking / deprecation / security, the breaking ones that touch your code (symbols you import, and route or pattern syntax in your string literals, e.g. axum 0.8's /:id -> /{id}), the files that import it, advisories fixed. |
vulnerability_scan | Every installed copy in every lockfile matched against OSV.dev. Scope-adjusted severity with the advisory's own grade beside it (advisory_severity, by_advisory_severity; see "Two grades for one advisory"), an upgrade target checked against every advisory of the package (the highest per-advisory fix can itself be affected by another), where each version is pinned, and a coverage block on every answer (complete: true with lockfiles_read when nothing was left out, complete: false with what was left out otherwise). Rows come in one fixed order, so detailed pages never lose or repeat a row. Concise by default (one row per vulnerable package version, the 40 most severe; about 10k tokens on a project with about 290 advisories); package for one dependency; response_format: "detailed" for every advisory. |
dependency_health | Version freshness, deprecation (of the version you run) and vulnerability counts per dependency. With no lockfile read it withholds the score (healthScore: null, withheldReason: "no_lockfile"). |
upgrade_planner | The smallest version no advisory affects for each vulnerable package, majors flagged (a 0.x minor counts as a major). Direct steps (upgrade_direct) carry upgradeCommands, the command per declaring project directory, keeping how the dependency is declared (npm install x@v --save-exact for an exact pin, npm install "x@^v", pnpm up, yarn upgrade / yarn up, cargo add with --dev / --build / --target / --rename, go get; none for a >= / ` |
dependency_check | Call before writing any dependency version into a manifest: adding, pinning, upgrading, bumping, downgrading. to is the exact version, or the constraint you were given ("7.x", "^1.20", "~=3.1", "v1"): then safe names the smallest and newest release in it that no known advisory affects, and the verdict is for the one it picks. The answer is concise by default (verdict, a reason carrying the evidence of every avoid / review / unknown / wait finding, safe, advisory ids and any registry quotes: about 10 KB for 25 items); response_format: "detailed" adds every signal with its evidence, to_read_as and the full range_check. An exact version an advisory affects gets the safe releases on its line. Verdict per item (proceed / wait / review / avoid / unknown) with evidence: advisories on the target, release age (holds releases under 3 days unless they fix an advisory you have), publish-trust drop, new install scripts, brand-new transitive dependencies, yanked or deprecated, and a breaking version range (a major, or a 0.x minor) is review with a pointer to upgrade_impact. A name that is malware itself is avoid; a new npm dependency one or two edits from a popular package (expres) is review with "did you mean" unless its downloads and age show it is established, and a new PyPI name one or two edits from a popular project is review with "did you mean" too (avoid when under 30 days old with at most 3 releases; PyPI publishes no download counts). A release is also judged by what it requires: an npm release's exact pins and ranges, a crate's dependencies and a PyPI release's requires_dist (an environment marker is judged against the Python versions the project declares): one whose newest admitted release, or pin, has an advisory counts against the release; a Go release's go.mod minimums with advisories are a caveat naming the go get that raises them. On PyPI, python_support says whether the release supports every Python the project declares (requires-python, Poetry, uv.lock, Pipfile, .python-version, runtime.txt): a release whose lower bound excludes one is review and never a safe pick; an upper cap is a note. to_read_as (in every answer to a constraint or "latest", and in the detailed form) says how to was read: a bare PyPI "3.1" is the release 3.1.0, as pip reads ==3.1, never the series. A prerelease is never named as the safe release unless you ask for one. A registry's own words (a deprecation message) are quoted in quoted_from_registry, capped, never inside reason. A private package is unknown and never looked up (see "Private packages are never sent"). npm, crates.io, PyPI and Go (publisher trust, install scripts and new transitive dependencies are npm/crates.io signals and say "not applicable" elsewhere). One item refused as written (an npm dist-tag other than latest, a Poetry caret, an unknown ecosystem, an npm scope written without its @) is unknown with not_checked: "input" and its reason, and the rest of the batch is answered. Go: a release is judged against the module's retractions, and when the list of retractions could not be read the item is unknown, never proceed, and nothing is cached for it; an item this server's own Go request limit held back says so (the proxy was not asked) and carries retry_after_seconds. |
| Tool | What it does |
|---|---|
what_should_i_know | Pre-task briefing built from the task: the dependencies it names (and the families it names: "all tauri plugins" adds the project's tauri-, tauri-plugin- and @tauri-apps/* packages; for "latest", whether each is already on the newest major), their versions and confirmed vulnerabilities, majors crossed, your recorded decisions, and a delegation verdict only confirmed evidence can raise. A version the task names (lodash@4.17.20, Django==3.2, "pin axios to 0.21.1", "add lodash 4.17.20", "bump X from A to B") is judged by dependency_check at exactly that version or constraint (requested_versions); one that is not proceed means the task is not safe_to_delegate. A package the task adds ("add the X package", npm install X) is run through dependency_check: a name that is malware is human_only, a near-miss of a popular package or a name the registry does not have is review_needed. |
ecosystem_pulse | Hacker News headlines that name your dependencies, then your languages (labelled as such). Fetched only when called; the search terms are the frameworks and direct depe |