depsonar 4.0.1 → 4.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +313 -131
- package/bin/supervise.cjs +1 -1
- package/dashboard.html +606 -0
- package/dist/checker.js +7 -7
- package/dist/checker.js.map +1 -1
- package/dist/constants.d.ts +6 -1
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +16 -2
- package/dist/constants.js.map +1 -1
- package/dist/dashboard.d.ts +23 -1
- package/dist/dashboard.d.ts.map +1 -1
- package/dist/dashboard.js +243 -94
- package/dist/dashboard.js.map +1 -1
- package/dist/index.js +9 -11
- package/dist/index.js.map +1 -1
- package/dist/schemas/index.d.ts +75 -52
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +73 -57
- package/dist/schemas/index.js.map +1 -1
- package/dist/services/audit.d.ts +22 -2
- package/dist/services/audit.d.ts.map +1 -1
- package/dist/services/audit.js +264 -137
- package/dist/services/audit.js.map +1 -1
- package/dist/services/changelog.d.ts.map +1 -1
- package/dist/services/changelog.js +30 -3
- package/dist/services/changelog.js.map +1 -1
- package/dist/services/deprecated.d.ts.map +1 -1
- package/dist/services/deprecated.js +0 -14
- package/dist/services/deprecated.js.map +1 -1
- package/dist/services/envcheck.d.ts.map +1 -1
- package/dist/services/envcheck.js +9 -3
- package/dist/services/envcheck.js.map +1 -1
- package/dist/services/formatter.d.ts +2 -0
- package/dist/services/formatter.d.ts.map +1 -1
- package/dist/services/formatter.js +63 -28
- package/dist/services/formatter.js.map +1 -1
- package/dist/services/licenses.d.ts +2 -0
- package/dist/services/licenses.d.ts.map +1 -1
- package/dist/services/licenses.js +39 -34
- package/dist/services/licenses.js.map +1 -1
- package/dist/services/osv.d.ts +7 -0
- package/dist/services/osv.d.ts.map +1 -1
- package/dist/services/osv.js +109 -55
- package/dist/services/osv.js.map +1 -1
- package/dist/services/project.d.ts +58 -2
- package/dist/services/project.d.ts.map +1 -1
- package/dist/services/project.js +267 -113
- package/dist/services/project.js.map +1 -1
- package/dist/tools/index.d.ts +1 -0
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +157 -94
- package/dist/tools/index.js.map +1 -1
- package/dist/types.d.ts +6 -2
- package/dist/types.d.ts.map +1 -1
- package/package.json +8 -5
package/README.md
CHANGED
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
<img src="static/banner.png" alt="
|
|
2
|
+
<img src="static/banner.png" alt="Depsonar" width="900"/>
|
|
3
3
|
</p>
|
|
4
4
|
<p align="center">
|
|
5
|
-
<strong>
|
|
6
|
-
<sub>
|
|
5
|
+
<strong>An MCP server that checks, audits and updates the dependencies of the code projects on your computer.</strong><br>
|
|
6
|
+
<sub>Outdated packages, known vulnerabilities, licenses, secrets, runtimes, Docker images and GitHub Actions. Node.js has the deepest support; eight other ecosystems are covered in part.</sub>
|
|
7
7
|
</p>
|
|
8
8
|
<p align="center">
|
|
9
|
-
<img src="https://img.shields.io/npm/v/depsonar?color=60a5fa&label=npm"
|
|
10
|
-
<img src="https://img.shields.io/
|
|
11
|
-
<img src="https://img.shields.io/badge/
|
|
12
|
-
<img src="https://img.shields.io/badge/CVE_scanner-live-f59e0b"/>
|
|
13
|
-
<img src="https://img.shields.io/badge/license-MIT-blue"/>
|
|
9
|
+
<a href="https://www.npmjs.com/package/depsonar"><img src="https://img.shields.io/npm/v/depsonar?color=60a5fa&label=npm" alt="npm version"/></a>
|
|
10
|
+
<img src="https://img.shields.io/node/v/depsonar?color=34d399" alt="Node.js version"/>
|
|
11
|
+
<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue" alt="MIT license"/></a>
|
|
14
12
|
</p>
|
|
15
13
|
|
|
16
14
|
<p align="center">
|
|
@@ -19,55 +17,44 @@
|
|
|
19
17
|
<a href="https://soflutionltd.github.io/BrandCheck/install.html?name=depsonar&config=eyJ0eXBlIjoic3RkaW8iLCJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsImRlcHNvbmFyQGxhdGVzdCJdfQ=="><img src="https://img.shields.io/badge/Install_via-Web-60a5fa?style=for-the-badge&logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjIiPjxwYXRoIGQ9Ik0xMiAyYTEwIDEwIDAgMSAwIDAgMjAgMTAgMTAgMCAwIDAgMC0yMHoiLz48cGF0aCBkPSJNMiAxMmgyMCIvPjxwYXRoIGQ9Ik0xMiAyYTEwIDEwIDAgMCAxIDggOCAxMCAxMCAwIDAgMS04IDgiLz48cGF0aCBkPSJNMTIgMmExMCAxMCAwIDAgMC04IDggMTAgMTAgMCAwIDAgOCA4Ii8+PC9zdmc+" alt="Install via Web" /></a>
|
|
20
18
|
</p>
|
|
21
19
|
|
|
22
|
-
|
|
20
|
+
Depsonar is a local [MCP](https://modelcontextprotocol.io) server. Connected to an AI assistant (Cursor, Claude Code, the Claude desktop app or any other MCP client), it gives the assistant 25 tools to look at the dependencies of your local projects and, when you ask, to update them. It works by running the package managers already installed on your machine (`npm`, `pnpm`, `cargo`, `pip`, `composer`...) and by querying public sources (the npm registry, [osv.dev](https://osv.dev), GitHub). It does not build, deploy or publish anything.
|
|
23
21
|
|
|
24
|
-
|
|
22
|
+
It detects **Node.js**, **Python**, **Rust**, **Go**, **PHP**, **Ruby**, **Dart/Flutter**, **Swift** and **Kotlin/Java** projects. What it can do in each one differs a lot: see [Supported ecosystems](#supported-ecosystems).
|
|
25
23
|
|
|
26
24
|
---
|
|
27
25
|
|
|
28
|
-
## Why
|
|
26
|
+
## Why
|
|
29
27
|
|
|
30
|
-
|
|
28
|
+
Projects started quickly with an AI assistant often ship with dependencies that nobody looks at again. Depsonar gives the assistant the means to answer "what is outdated or vulnerable in this project?" from inside the conversation, across every project of a folder, and to run the update when you decide to.
|
|
31
29
|
|
|
32
|
-
|
|
30
|
+
## Is it for you?
|
|
33
31
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
- **
|
|
38
|
-
- **
|
|
39
|
-
- **Safe updates**: 3 levels (patch/minor/latest) with dry-run preview
|
|
40
|
-
- **Batch operations**: Update all projects at once
|
|
41
|
-
- **Ecosystem grouping**: Results grouped by Svelte, Supabase, Tailwind, Vite, etc.
|
|
42
|
-
|
|
43
|
-
### Security & Compliance
|
|
44
|
-
- **Live CVE scanning** via [osv.dev](https://osv.dev) API (npm, PyPI, crates.io, Go, PHP, Ruby)
|
|
45
|
-
- **Framework CVE database**: Curated advisories for Svelte, Next.js, Vite, Express, Axios
|
|
46
|
-
- **Native audit integration**: npm audit, cargo audit, pip-audit, composer audit, govulncheck
|
|
47
|
-
- **Secret scanner**: Detects AWS keys, GitHub tokens, Stripe keys, database URLs, and more
|
|
48
|
-
- **License compliance**: Flags GPL/AGPL copyleft, non-commercial, and unknown licenses
|
|
49
|
-
|
|
50
|
-
### Migration & Maintenance
|
|
51
|
-
- **Migration detector**: Identifies code patterns that need changing (Svelte 4→5 runes, Next.js Pages→App Router)
|
|
52
|
-
- **Changelog preview**: See breaking changes before updating
|
|
53
|
-
- **Deprecated detection**: Finds unmaintained packages and suggests replacements
|
|
54
|
-
- **Health scores**: 0-100 per project based on deps, security, lockfile, runtime
|
|
55
|
-
- **Background checker**: Scheduled scans via macOS launchd or Linux cron
|
|
56
|
-
|
|
57
|
-
### Infrastructure Audit
|
|
58
|
-
- **Runtime versions**: Node.js, Python, Rust, Go, PHP, Ruby, Dart, Swift (EOL detection)
|
|
59
|
-
- **Global toolchain**: npm, pnpm, yarn, bun, cargo, pip, git, docker, vercel, supabase, wrangler
|
|
60
|
-
- **Docker image audit**: Detects outdated/EOL base images
|
|
61
|
-
- **GitHub Actions audit**: Flags deprecated actions across all workflows
|
|
62
|
-
- **Environment check**: .env sync, lockfile freshness, config validation
|
|
32
|
+
- **Yes, if you work with an AI coding agent on several local projects** and want to ask it what is outdated, which known vulnerabilities apply, or whether a secret was left in a file, then let it run the update in your working tree while you watch.
|
|
33
|
+
- **Mostly if those projects are Node.js.** The built-in advisory list, the license check, the deprecated-package check, the changelog preview, the migration detector and the documentation tools only read npm projects. The other ecosystems get the outdated check, the update command and, for some, an audit ([table](#supported-ecosystems)).
|
|
34
|
+
- **Probably not, if Renovate or Dependabot already opens update pull requests on your repositories.** Those run unattended on the hosted repository, open a pull request per update and let your CI test it. Depsonar does none of that: it opens no pull request, runs no test, and has no rules or schedule for the changes it makes. What it adds next to them is an answer on demand, inside the conversation, for local folders (pushed or not), one view across all the projects of a folder, and a few checks that are not about packages (runtimes, Docker base images, GitHub Actions versions, `.env` keys).
|
|
35
|
+
- **Not as a replacement for a dedicated scanner in CI.** `depsonar_audit` runs `npm audit`, `pnpm audit`, `cargo audit`, `pip-audit`, `composer audit` or `govulncheck` and reformats their output: it finds what they find. `depsonar_live_cve` queries the same OSV database as [osv-scanner](https://github.com/google/osv-scanner) but reads far fewer lockfile formats. `depsonar_secrets` applies 16 regular expressions to the files of the working tree; [gitleaks](https://github.com/gitleaks/gitleaks) also scans the git history. See [Known limits](#known-limits).
|
|
36
|
+
- **It runs on your computer**, on macOS and Linux, with Node.js 18 or later. Windows is not supported in practice: commands go through `/bin/sh`. claude.ai in a web browser and the mobile apps cannot reach a program on your computer.
|
|
63
37
|
|
|
64
|
-
|
|
38
|
+
## Before you install
|
|
65
39
|
|
|
66
|
-
|
|
40
|
+
- **License.** MIT ([LICENSE](LICENSE)).
|
|
41
|
+
- **What gets installed.** One npm package, about 560 KB unpacked, with two direct dependencies (the MCP SDK and zod) and their own dependencies. No native binary. Depsonar does not install package managers or audit tools: it uses the ones it finds (`cargo-audit`, `pip-audit` and `govulncheck` are optional).
|
|
42
|
+
- **What an agent can do with it in your projects.** Depsonar has no confirmation step of its own: the only gate is the tool-permission prompt of your MCP client, so keep the tools below on "ask".
|
|
43
|
+
- `depsonar_update` and `depsonar_update_all` run the update command of the package manager inside the project. That rewrites manifests and lockfiles and installs packages, and installing packages runs their install scripts. On npm projects the update goes through `npx -y npm-check-updates`, a third-party tool downloaded from npm at that moment.
|
|
44
|
+
- `depsonar_update` applies the change as soon as it is called (`dry_run` defaults to `false`). `depsonar_update_all` defaults to a preview.
|
|
45
|
+
- `depsonar_install` runs the install command. With `clean: true` it first deletes what was installed in the project: `node_modules`, `vendor`, `.dart_tool` or the build output (`cargo clean`, `gradlew clean`). Go and Python have nothing of the project's own to delete: nothing is cleaned, and the answer says so. In versions up to 4.1.0, `clean` on a Go project ran `go clean -modcache`, which empties the module cache shared by every Go project of the computer.
|
|
46
|
+
- The read-only tools also run commands inside the project (`npm outdated`, `cargo update --dry-run`, `go list`, `composer outdated`...). On a Gradle project the outdated check runs `./gradlew dependencyUpdates`, which executes the project's own Gradle wrapper and build script.
|
|
47
|
+
- The `project` argument accepts any absolute path that holds a manifest, not only folders of the configured projects directory.
|
|
48
|
+
- `depsonar_setup_checker` adds a launchd agent (macOS) or a crontab line (Linux); `depsonar_config` writes `~/.depsonarrc.json`.
|
|
49
|
+
- **Commit before an update.** Depsonar keeps no backup and has no undo. `git` is the way back.
|
|
50
|
+
- **It updates itself** from npm, unless you start it with `NO_UPDATE_NOTIFIER=1` or `SOFLUTION_AUTO_UPDATE=0` ([Automatic updates](#automatic-updates)).
|
|
51
|
+
- **One maintainer, and no audit by an outside firm.** The automated tests cover the parsers and the argument handling, not every ecosystem. What Depsonar claims can be read in the source ([Security](SECURITY.md)).
|
|
67
52
|
|
|
68
|
-
|
|
53
|
+
## Install
|
|
69
54
|
|
|
70
|
-
|
|
55
|
+
### Cursor
|
|
56
|
+
|
|
57
|
+
Click **Install in Cursor** at the top of this page, or add this to `~/.cursor/mcp.json` and restart Cursor:
|
|
71
58
|
|
|
72
59
|
```json
|
|
73
60
|
{
|
|
@@ -80,13 +67,23 @@ Add to `~/.cursor/mcp.json`:
|
|
|
80
67
|
}
|
|
81
68
|
```
|
|
82
69
|
|
|
83
|
-
|
|
70
|
+
The **Install via Web** button opens a page that builds the same entry for other clients. That page is hosted in the GitHub Pages of [BrandCheck](https://github.com/Soflutionltd/BrandCheck), another repository of the same publisher.
|
|
84
71
|
|
|
85
|
-
|
|
72
|
+
### Claude Code
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
claude mcp add depsonar -- npx -y depsonar@latest
|
|
76
|
+
```
|
|
86
77
|
|
|
87
|
-
The
|
|
78
|
+
### The Claude desktop app
|
|
88
79
|
|
|
89
|
-
|
|
80
|
+
Download `depsonar.mcpb` from the [latest release](https://github.com/Soflutionltd/depsonar/releases/latest) and open it: the app installs it as an extension (Settings > Extensions). The same bundle is listed in the official [MCP Registry](https://registry.modelcontextprotocol.io) as `com.soflution/depsonar`.
|
|
81
|
+
|
|
82
|
+
### Any other MCP client
|
|
83
|
+
|
|
84
|
+
Use the same `npx` entry as for Cursor in the client's MCP settings file.
|
|
85
|
+
|
|
86
|
+
### Global install
|
|
90
87
|
|
|
91
88
|
```bash
|
|
92
89
|
npm install -g depsonar
|
|
@@ -102,7 +99,7 @@ npm install -g depsonar
|
|
|
102
99
|
}
|
|
103
100
|
```
|
|
104
101
|
|
|
105
|
-
###
|
|
102
|
+
### From a clone
|
|
106
103
|
|
|
107
104
|
```bash
|
|
108
105
|
git clone https://github.com/Soflutionltd/depsonar.git
|
|
@@ -120,85 +117,270 @@ cd depsonar && npm install && npm run build
|
|
|
120
117
|
}
|
|
121
118
|
```
|
|
122
119
|
|
|
123
|
-
Restart
|
|
120
|
+
Restart the client after editing its config.
|
|
124
121
|
|
|
125
|
-
|
|
122
|
+
### Automatic updates
|
|
123
|
+
|
|
124
|
+
Every install above keeps itself up to date without restarting the client. The MCP client talks to a small supervisor (`bin/supervise.cjs`) that stays connected while the server runs behind it. Ten seconds after start-up and then every 6 hours, the supervisor asks `registry.npmjs.org` for the latest `depsonar` version. When there is a newer one, it runs `npm install` for it in the background, into `~/.soflution/mcp/depsonar/<version>/`, and switches over as soon as no request is in flight (the client is told that the tool list may have changed). A version that fails to start is dropped, the previous one keeps running, and that version is never picked again on that machine.
|
|
126
125
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
| `depsonar_update` | Update a project's dependencies |
|
|
134
|
-
| `depsonar_update_all` | Batch update all projects |
|
|
135
|
-
| `depsonar_health` | Health score 0-100 for a project |
|
|
136
|
-
| `depsonar_install` | Fresh install with optional clean |
|
|
137
|
-
| `depsonar_audit` | Security scan (npm/pip/cargo audit) |
|
|
138
|
-
| `depsonar_cve` | Curated framework CVE advisory check |
|
|
139
|
-
| `depsonar_live_cve` | Real-time CVE scan via osv.dev API |
|
|
140
|
-
| `depsonar_changelog` | Changelogs & breaking changes before updating |
|
|
141
|
-
| `depsonar_migrate` | Framework migration detector |
|
|
142
|
-
| `depsonar_deprecated` | Deprecated & replaced package detection |
|
|
143
|
-
| `depsonar_secrets` | Secret & API key scanner |
|
|
144
|
-
| `depsonar_licenses` | License compliance (GPL/AGPL flags) |
|
|
145
|
-
| `depsonar_runtimes` | Runtime version check (EOL detection) |
|
|
146
|
-
| `depsonar_toolchain` | Global tool versions |
|
|
147
|
-
| `depsonar_docker` | Docker image audit |
|
|
148
|
-
| `depsonar_actions` | GitHub Actions audit |
|
|
149
|
-
| `depsonar_envcheck` | .env, lockfile, config validation |
|
|
150
|
-
| `depsonar_infra` | Full infrastructure report (everything) |
|
|
151
|
-
| `depsonar_alerts` | Instant alerts from background scans |
|
|
152
|
-
| `depsonar_setup_checker` | Setup automatic background scanning |
|
|
153
|
-
| `depsonar_config` | View/edit configuration |
|
|
126
|
+
- **What protects the download:** npm checks the integrity of each package against the registry. Versions 4.0.1 and later carry an npm provenance attestation, and since 4.1.0 they are published from GitHub Actions with npm Trusted Publishing, with no long-lived npm token. The supervisor itself does not verify a signature: it trusts the npm registry and the publisher's npm account.
|
|
127
|
+
- **What it needs:** `npm` on the machine. Without it, the installed version keeps running.
|
|
128
|
+
- **What it sends:** the request for the latest version, nothing about your machine or your projects.
|
|
129
|
+
- **How to turn it off:** start Depsonar with `NO_UPDATE_NOTIFIER=1` or `SOFLUTION_AUTO_UPDATE=0` (it is also off when `CI` is set). No check, no install, no switch.
|
|
130
|
+
|
|
131
|
+
Started directly with `node dist/index.js`, Depsonar does not update itself: it only mentions a newer version, once, in its first tool result.
|
|
154
132
|
|
|
155
133
|
---
|
|
156
134
|
|
|
157
|
-
##
|
|
135
|
+
## What it does
|
|
136
|
+
|
|
137
|
+
### Dependencies
|
|
138
|
+
- **Outdated check** for one project (`depsonar_check`) or for every project of a folder (`depsonar_scan`), with major updates flagged. A `0.x` version that changes its minor number counts as major.
|
|
139
|
+
- **Monorepos and mixed repositories**: `depsonar_check`, `depsonar_audit`, `depsonar_cve` and `depsonar_live_cve` also cover the sub-folders that hold their own project, down to 4 levels.
|
|
140
|
+
- **Updates** (`depsonar_update`, `depsonar_update_all`) with three levels, `patch`, `minor` (default) and `latest`, and a `dry_run` preview. `patch` currently behaves like `minor`, and the preview is the list of outdated packages, not the exact change ([Known limits](#known-limits)).
|
|
141
|
+
- **Ecosystem grouping** of the results for Node projects: Svelte, React, Vue, Supabase, Tailwind, Vite, TypeScript, ESLint, Stripe, testing.
|
|
142
|
+
- **Framework detection**, shown in reports and usable as a filter: SvelteKit, Svelte, Next.js, React, Nuxt, Vue, Astro, Remix, SolidStart, Solid.js, Express, Fastify, Hono, Django, Flask, Laravel, Xcode/Swift, Android/Kotlin.
|
|
143
|
+
- **Health score** from 0 to 100 (`depsonar_health`): 100, minus 3 per outdated package (40 at most), minus 10 per major update, minus 15 without a lockfile, minus 5 per critical, high or moderate audit finding (30 at most; npm and pnpm audits only).
|
|
144
|
+
|
|
145
|
+
### Security and compliance
|
|
146
|
+
- **Native audit** (`depsonar_audit`): runs `npm audit`, `pnpm audit`, `cargo audit`, `pip-audit`, `composer audit` or `govulncheck` and merges the results.
|
|
147
|
+
- **Live OSV scan** (`depsonar_live_cve`): sends the installed package names and versions to the [osv.dev](https://osv.dev) API and reads each advisory. npm, crates.io, PyPI and Go only.
|
|
148
|
+
- **Built-in advisory list** (`depsonar_cve`): 11 hand-picked advisories for `svelte`, `@sveltejs/kit`, `@sveltejs/adapter-node`, `devalue`, `next`, `vite`, `express` and `axios`. The newest is dated 2026-01-15, and the report says so when the list is more than 30 days old and nothing matched.
|
|
149
|
+
- **Secret scan** (`depsonar_secrets`): 16 patterns (AWS, GitHub, Stripe, Slack, OpenAI, Anthropic and Vercel keys, Supabase JWTs, private keys, database URLs, bearer tokens, generic assignments) over the text files of the working tree, plus a check that `.env` is in `.gitignore`. Findings are shown masked (first and last 4 characters).
|
|
150
|
+
- **License check** (`depsonar_licenses`): reads the `license` field of the packages installed at the top level of `node_modules` and flags GPL, AGPL, LGPL, MPL, EUPL, CC-BY-SA, non-commercial (CC-BY-NC) and unrecognised licenses.
|
|
151
|
+
|
|
152
|
+
### Migration and maintenance
|
|
153
|
+
- **Migration detector** (`depsonar_migrate`): looks for Svelte 4 patterns in a project on Svelte 4, and for Next.js patterns in a project on Next.js 13 or 14, with the file and line of each.
|
|
154
|
+
- **Changelog preview** (`depsonar_changelog`): for each outdated npm package, the update type and a link to where its changelog should be; for major updates, the description or deprecation notice of the latest version from the npm registry.
|
|
155
|
+
- **Deprecated packages** (`depsonar_deprecated`): a built-in list of 19 npm packages with a suggested replacement, plus the `deprecated` field of installed packages when present.
|
|
156
|
+
- **Documentation** (`depsonar_docs`, `depsonar_search_package`): the README, changelog and migration guide of an npm package, fetched from the npm registry and from its GitHub repository; a search of the npm registry.
|
|
157
|
+
- **Background checker**: scheduled scans through macOS launchd or Linux cron ([details](#background-checker)).
|
|
158
|
+
|
|
159
|
+
### Environment
|
|
160
|
+
- **Runtime versions** (`depsonar_runtimes`): Node.js, Python, Rust, Go, PHP, Ruby, Dart, Swift, with end-of-life flags and a comparison with `.nvmrc`, `.node-version`, `.python-version`, `rust-toolchain.toml` and `engines.node`.
|
|
161
|
+
- **Global tools** (`depsonar_toolchain`): npm, pnpm, yarn, bun, composer, cargo, pip, TypeScript, git, docker, Homebrew, vercel, supabase, wrangler.
|
|
162
|
+
- **Docker images** (`depsonar_docker`): the `FROM` lines of the project's `Dockerfile` and the `image:` lines of its Compose files, for node, python, ruby, php, golang, rust, nginx, postgres, redis, ubuntu and alpine.
|
|
163
|
+
- **GitHub Actions** (`depsonar_actions`): the `uses:` lines of `.github/workflows`, compared with a built-in table of 30 actions.
|
|
164
|
+
- **Environment check** (`depsonar_envcheck`): keys of `.env.example` missing from `.env` (names only, never values), missing or duplicate lockfiles, `tsconfig.json` and Svelte configuration hints.
|
|
165
|
+
|
|
166
|
+
---
|
|
158
167
|
|
|
159
|
-
|
|
168
|
+
## All 25 tools
|
|
169
|
+
|
|
170
|
+
"Writes" means the tool changes files other than Depsonar's own cache.
|
|
171
|
+
|
|
172
|
+
| Tool | What it does | Writes |
|
|
173
|
+
|------|--------------|--------|
|
|
174
|
+
| `depsonar_alerts` | Shows the result of the last background scan (reads the cache, no scan) | no |
|
|
175
|
+
| `depsonar_scan` | Outdated check for every project of the projects directory | no |
|
|
176
|
+
| `depsonar_check` | Outdated check for one project and its sub-projects | no |
|
|
177
|
+
| `depsonar_update` | Runs the update command in one project | **project files** |
|
|
178
|
+
| `depsonar_update_all` | Runs the update command in every project (preview by default) | **project files** |
|
|
179
|
+
| `depsonar_health` | Health score from 0 to 100 for a project | no |
|
|
180
|
+
| `depsonar_install` | Runs the install command, optionally after deleting the installed packages | **project files** |
|
|
181
|
+
| `depsonar_audit` | Native security audit (`npm audit`, `cargo audit`...) | no |
|
|
182
|
+
| `depsonar_cve` | Check against the built-in advisory list | no |
|
|
183
|
+
| `depsonar_live_cve` | Vulnerability scan through the osv.dev API | no |
|
|
184
|
+
| `depsonar_changelog` | Update types and changelog links before updating | no |
|
|
185
|
+
| `depsonar_migrate` | Framework migration detector | no |
|
|
186
|
+
| `depsonar_deprecated` | Deprecated and replaced packages | no |
|
|
187
|
+
| `depsonar_secrets` | Secret and API key scan | no |
|
|
188
|
+
| `depsonar_licenses` | License check | no |
|
|
189
|
+
| `depsonar_runtimes` | Runtime versions and end of life | no |
|
|
190
|
+
| `depsonar_toolchain` | Versions of global tools | no |
|
|
191
|
+
| `depsonar_docker` | Docker base image check | no |
|
|
192
|
+
| `depsonar_actions` | GitHub Actions version check | no |
|
|
193
|
+
| `depsonar_envcheck` | `.env`, lockfile and config check | no |
|
|
194
|
+
| `depsonar_infra` | Runs most of the checks above over every project, in one report | no |
|
|
195
|
+
| `depsonar_docs` | Documentation of an npm package | no |
|
|
196
|
+
| `depsonar_search_package` | Search of the npm registry | no |
|
|
197
|
+
| `depsonar_setup_checker` | Installs or removes the background checker | **launchd agent or crontab** |
|
|
198
|
+
| `depsonar_config` | Shows or sets the projects directory | **`~/.depsonarrc.json`** |
|
|
199
|
+
|
|
200
|
+
Ten tools can cover several projects: `audit`, `cve`, `live_cve`, `deprecated`, `secrets`, `licenses`, `migrate`, `docker`, `actions` and `envcheck`. Since 4.2.0 they need a scope (`project`, `directory`, or `all: true`), and an argument a tool does not declare is refused. In versions up to 4.1.0, a call without a scope covers every project.
|
|
160
201
|
|
|
161
|
-
|
|
162
|
-
2. Scans all projects, compares versions with registries
|
|
163
|
-
3. Writes results to `~/.depsonar-cache.json`, exits immediately
|
|
164
|
-
4. Zero RAM between runs, zero AI tokens, zero cost
|
|
202
|
+
---
|
|
165
203
|
|
|
166
|
-
|
|
204
|
+
## Supported ecosystems
|
|
205
|
+
|
|
206
|
+
A project is recognised by the first manifest found, in the order of this table. A folder with both `package.json` and `Cargo.toml` is treated as Node.js at its top level.
|
|
207
|
+
|
|
208
|
+
| Ecosystem | Detected by | Outdated check | Update command | Native audit | osv.dev scan |
|
|
209
|
+
|-----------|-------------|----------------|----------------|--------------|--------------|
|
|
210
|
+
| Node.js | `package.json` | `npm`, `pnpm`, `yarn` or `bun` `outdated --json` | npm: `npx -y npm-check-updates -u` then `npm install`; `pnpm update`; `yarn upgrade`; `bun update` | `npm audit`, `pnpm audit`. Not for yarn or bun | Every package of `package-lock.json` or `pnpm-lock.yaml`; with another lockfile, direct dependencies only |
|
|
211
|
+
| Python | `requirements.txt`, `pyproject.toml`, `Pipfile`, `setup.py` | `pip list --outdated`: the active Python environment, not the project's files | `pip install --upgrade -r requirements.txt`, into the active environment | `pip-audit -r requirements.txt`, when installed | Lines pinned with `==` in `requirements.txt` |
|
|
212
|
+
| Rust | `Cargo.toml` | `cargo outdated` when installed, otherwise `cargo update --dry-run` | `cargo update` | `cargo audit`, when installed | Every package of `Cargo.lock` |
|
|
213
|
+
| Go | `go.mod` | `go list -m -u -json all` | `go get -u ./...` | `govulncheck`, when installed | Modules of `go.sum` |
|
|
214
|
+
| PHP | `composer.json` | `composer outdated --direct` | `composer update` | `composer audit` | no |
|
|
215
|
+
| Ruby | `Gemfile` | `bundle outdated` | `bundle update` | no | no |
|
|
216
|
+
| Dart/Flutter | `pubspec.yaml` | `flutter pub outdated` or `dart pub outdated` | `dart pub upgrade` | no | no |
|
|
217
|
+
| Swift | `Package.swift` | no: the check answers that it is not implemented (Swift Package Manager has no outdated command) | `swift package update` | no | no |
|
|
218
|
+
| Kotlin/Java | `build.gradle.kts`, `build.gradle` | Only with the [Gradle Versions Plugin](https://github.com/ben-manes/gradle-versions-plugin) in the project | no: the command only produces the report | no | no |
|
|
219
|
+
|
|
220
|
+
The built-in advisory list, the license check, the deprecated-package check, the changelog preview, the migration detector and the documentation tools are for npm projects only.
|
|
221
|
+
|
|
222
|
+
With the `packages` argument, `depsonar_update` updates the named packages only: `pnpm update a b`, `yarn upgrade a b`, `bun update a b`, `npx -y npm-check-updates -u a b`, `pip install --upgrade a b`, `cargo update -p a -p b`, `go get -u a b`, `composer update a b`, `bundle update a b`, `dart pub upgrade a b`, `swift package update a b`. A version can follow the name where the command takes one (`name@version` for pnpm, yarn and go, `name==version` for pip). With cargo, `name@version` names the locked copy to update (useful when two versions of a crate are locked), not the version to reach. Kotlin/Java has no per-package update: the argument is refused there.
|
|
223
|
+
|
|
224
|
+
## Where the data comes from
|
|
225
|
+
|
|
226
|
+
| Data | Source | How fresh |
|
|
227
|
+
|------|--------|-----------|
|
|
228
|
+
| Latest versions | The package manager and the registry it is configured for | Live, at each call |
|
|
229
|
+
| `depsonar_audit` | The advisory database of each audit tool (the npm registry for `npm audit`, RustSec for `cargo audit`...) | As fresh as the tool; Depsonar adds nothing |
|
|
230
|
+
| `depsonar_live_cve` | `api.osv.dev` | Live, at each call |
|
|
231
|
+
| `depsonar_cve` | 11 advisories compiled into the package | Newest entry: 2026-01-15 |
|
|
232
|
+
| End-of-life versions, Docker image recommendations, latest versions of GitHub Actions, replaced packages | Tables compiled into the package | Fixed at release; the Docker and Actions tables are dated February 2026 in the source |
|
|
233
|
+
| Licenses | The `license` field of each installed `package.json` | What the package declares |
|
|
234
|
+
| Docs, changelogs | `registry.npmjs.org` and `raw.githubusercontent.com` | Live, at each call |
|
|
235
|
+
|
|
236
|
+
## Your data
|
|
237
|
+
|
|
238
|
+
- **What it reads.** Manifests, lockfiles, `node_modules/*/package.json`, Dockerfiles, Compose files, workflow files, `tsconfig.json`, `.env` and `.env.example` (key names for the environment check, full content for the secret scan), and for `depsonar_secrets` and `depsonar_migrate` the source files of the project. It reads the projects directory, the paths passed to a tool, and its own files.
|
|
239
|
+
- **What goes to the assistant.** Tool results go to your MCP client and so to the model behind it: package names and versions, file paths, masked previews of the secrets found (first and last 4 characters), and names of `.env` keys.
|
|
240
|
+
- **What leaves your computer, and to whom:**
|
|
241
|
+
- the package managers ask their registries (npmjs.org, PyPI, crates.io, the Go proxy, Packagist, RubyGems, pub.dev, or the registry you configured) about the packages of the project, as they do when you run them yourself;
|
|
242
|
+
- `depsonar_live_cve` sends the names and versions of the installed packages to `api.osv.dev`, a service run by Google;
|
|
243
|
+
- `depsonar_changelog`, `depsonar_toolchain`, `depsonar_docs` and `depsonar_search_package` send package names or your search text to `registry.npmjs.org`, and `depsonar_docs` fetches files from `raw.githubusercontent.com`;
|
|
244
|
+
- `depsonar_runtimes` runs `nvm ls-remote` and `rustup check` when those tools are installed;
|
|
245
|
+
- the update check asks `registry.npmjs.org` for the latest `depsonar` version.
|
|
246
|
+
- **What is never sent.** Depsonar sends no source code, no file content and no secret value to any service. There is no telemetry and no account.
|
|
247
|
+
- **What it stores**, all in your home folder:
|
|
248
|
+
- `~/.depsonarrc.json`: the projects directory;
|
|
249
|
+
- `~/.depsonar-cache.json`: the last background scan (project names and paths, counts, scores);
|
|
250
|
+
- `~/.depsonar-checker.log`: the log of the background checker;
|
|
251
|
+
- `~/.soflution/mcp/depsonar/`: the versions installed by the automatic update, and its state file;
|
|
252
|
+
- `~/Library/LaunchAgents/com.depsonar.checker.plist` (macOS) or one crontab line (Linux), only after `depsonar_setup_checker`.
|
|
167
253
|
|
|
168
254
|
---
|
|
169
255
|
|
|
256
|
+
## Background checker
|
|
257
|
+
|
|
258
|
+
The background checker scans your projects on a schedule and caches the result, so that `depsonar_alerts` answers at once.
|
|
259
|
+
|
|
260
|
+
1. A scheduled job runs `npx depsonar --check` every N hours (6 by default) through macOS launchd or Linux cron.
|
|
261
|
+
2. It runs the outdated check on every project of the projects directory (no security audit).
|
|
262
|
+
3. It writes the result to `~/.depsonar-cache.json` and exits. Nothing stays in memory between runs, and no AI model is called.
|
|
263
|
+
|
|
264
|
+
Ask the assistant to "set up background checking every 6 hours", which calls `depsonar_setup_checker`. The same tool with `uninstall: true` removes it. `depsonar_alerts` ignores a cache older than 6 hours.
|
|
265
|
+
|
|
266
|
+
## Dashboard and daemon
|
|
267
|
+
|
|
268
|
+
`depsonar --dashboard` starts a local web page on `http://127.0.0.1:24681` that lists the projects, shows the outdated packages of each and can run updates. `depsonar --daemon` runs the same scan every 12 hours without the page. Both are optional, and neither is started by the MCP server.
|
|
269
|
+
|
|
270
|
+
The dashboard's API can start scans and updates, so it only answers to its own page:
|
|
271
|
+
|
|
272
|
+
- it listens on `127.0.0.1` only;
|
|
273
|
+
- a request whose `Host` header is not `127.0.0.1:24681` or `localhost:24681` is refused (a website cannot reach it by pointing its own domain name at your computer), and so is a request sent by another origin; no cross-origin (CORS) header is ever sent;
|
|
274
|
+
- every `/api` route needs an access token: 32 random bytes drawn at each launch and printed in the address shown at startup (`http://127.0.0.1:24681/#token=...`). Open that address: the page keeps the token for the tab and takes it out of the address bar. Opened without it, the page loads but shows nothing;
|
|
275
|
+
- a request that changes something must be a `POST` with `Content-Type: application/json`.
|
|
276
|
+
|
|
277
|
+
What remains true: there is no user account, so anyone who can read the startup output (your terminal, or a log file you redirect it to) has the token until the process stops. Run the dashboard only while you use it.
|
|
278
|
+
|
|
279
|
+
Each project has an "Auto" switch. A project switched on receives the minor updates on its own, without a prompt: from the dashboard and from `--daemon` every 24 hours, and from the background checker at each of its runs. The list is the `autoUpdate` key of `~/.depsonarrc.json`.
|
|
280
|
+
|
|
281
|
+
In versions up to 4.1.0, the dashboard has none of these protections (any web page open in your browser can send it an update request while it runs), its page file is missing from the npm package, so it works from a git clone only, and the "Auto" switch has no effect ([Known limits](#known-limits)).
|
|
282
|
+
|
|
170
283
|
## Configuration
|
|
171
284
|
|
|
172
|
-
|
|
285
|
+
The projects directory is the folder whose direct sub-folders are your projects. Depsonar takes the first of: `projectsDir` in `~/.depsonarrc.json` (or `~/.config/depsonar/config.json`), the `DEPSONAR_PROJECTS_DIR` environment variable (`DEPUP_PROJECTS_DIR`, its former name, is still read), then the first existing folder among `~/Projects`, `~/Developer`, `~/Code` and `~/dev`. Versions up to 4.1.0 only read `DEPUP_PROJECTS_DIR`.
|
|
173
286
|
|
|
174
287
|
```json
|
|
175
|
-
// ~/.depsonarrc.json
|
|
176
288
|
{
|
|
177
|
-
"projectsDir": "/
|
|
289
|
+
"projectsDir": "/home/me/my-projects"
|
|
178
290
|
}
|
|
179
291
|
```
|
|
180
292
|
|
|
181
|
-
Or
|
|
293
|
+
Or ask the assistant: "Set my projects directory to ~/Code".
|
|
294
|
+
|
|
295
|
+
## CLI
|
|
296
|
+
|
|
297
|
+
```bash
|
|
298
|
+
depsonar # Start the MCP server (what an MCP client runs)
|
|
299
|
+
depsonar --check # Run one background scan and exit
|
|
300
|
+
depsonar --dashboard # Start the local dashboard
|
|
301
|
+
depsonar --daemon # Scan every 12 hours, without the dashboard
|
|
302
|
+
depsonar --version # Show the version
|
|
303
|
+
depsonar --help # List the options and the tools
|
|
304
|
+
```
|
|
182
305
|
|
|
183
306
|
---
|
|
184
307
|
|
|
185
|
-
##
|
|
308
|
+
## Uninstall
|
|
309
|
+
|
|
310
|
+
```bash
|
|
311
|
+
# 1. The background checker, if you set it up
|
|
312
|
+
# (or ask the assistant: depsonar_setup_checker with uninstall: true)
|
|
313
|
+
launchctl unload ~/Library/LaunchAgents/com.depsonar.checker.plist # macOS
|
|
314
|
+
rm ~/Library/LaunchAgents/com.depsonar.checker.plist # macOS
|
|
315
|
+
crontab -e # Linux: delete the line that contains "depsonar"
|
|
316
|
+
|
|
317
|
+
# 2. The MCP entry
|
|
318
|
+
claude mcp remove depsonar # Claude Code
|
|
319
|
+
|
|
320
|
+
# 3. The package and its files
|
|
321
|
+
npm uninstall -g depsonar # only if you installed it globally
|
|
322
|
+
rm -rf ~/.soflution/mcp/depsonar # versions installed by the automatic update
|
|
323
|
+
rm -f ~/.depsonarrc.json ~/.depsonar-cache.json ~/.depsonar-checker.log
|
|
324
|
+
```
|
|
325
|
+
|
|
326
|
+
Then, by hand:
|
|
327
|
+
|
|
328
|
+
- remove the `depsonar` entry from the MCP settings file of each other client (`~/.cursor/mcp.json` for Cursor);
|
|
329
|
+
- in the Claude desktop app, remove the extension in **Settings > Extensions**;
|
|
330
|
+
- stop a `depsonar --dashboard` or `depsonar --daemon` process you started yourself;
|
|
331
|
+
- delete the clone, if you installed from one.
|
|
332
|
+
|
|
333
|
+
A copy started with `npx` also stays in npm's cache (`~/.npm/_npx`); it does nothing once the MCP entry is gone. Uninstalling does not undo the updates Depsonar made in your projects: those are ordinary changes to your manifests and lockfiles.
|
|
186
334
|
|
|
187
|
-
|
|
188
|
-
|----------|------------|-----------------|
|
|
189
|
-
| Node.js | `package.json` | npm, pnpm, yarn, bun |
|
|
190
|
-
| Python | `requirements.txt`, `pyproject.toml`, `Pipfile` | pip, pipenv, poetry |
|
|
191
|
-
| Rust | `Cargo.toml` | cargo |
|
|
192
|
-
| Go | `go.mod` | go |
|
|
193
|
-
| PHP | `composer.json` | composer |
|
|
194
|
-
| Ruby | `Gemfile` | bundler |
|
|
195
|
-
| Dart/Flutter | `pubspec.yaml` | pub |
|
|
196
|
-
| Swift | `Package.swift` | swift |
|
|
197
|
-
| Kotlin/Java | `build.gradle.kts` | gradle |
|
|
335
|
+
## Known limits
|
|
198
336
|
|
|
199
|
-
|
|
337
|
+
**What a clean result means**
|
|
200
338
|
|
|
201
|
-
|
|
339
|
+
- **A clean audit is not "no vulnerability".** `depsonar_audit` reports what the underlying tool knows about the packages in the lockfile, on that day. It says nothing about your own code, about packages no advisory has been written for, or about ecosystems with no audit (Ruby, Dart, Swift, Kotlin/Java, and Node projects on yarn or bun, which are reported as not supported).
|
|
340
|
+
- **In the multi-project audit report, only projects with findings or errors are listed.** A project that does not appear was clean. An audit tool that is missing, fails or prints nothing is reported as an error ("NOT audited"), for every ecosystem. In versions up to 4.1.0, an empty output of `pip-audit`, `composer audit` or `govulncheck` is read as clean, and the output of current `govulncheck` versions is never understood: a Go audit always comes back clean.
|
|
341
|
+
- **The Python audit only reads `requirements.txt`**, with `pip-audit`. Without that file or that tool, the project is reported as not audited. Packages `pip-audit` could not look up are named in the report.
|
|
342
|
+
- **`depsonar_live_cve` skips what it cannot read.** PHP, Ruby, Dart, Swift and Kotlin/Java projects are not queried and come back with no finding. Python is checked only for lines pinned with `==` in `requirements.txt` (not `pyproject.toml`, `poetry.lock` or `uv.lock`). A Node project with only a `yarn.lock` or a bun lockfile is checked for its direct dependencies only.
|
|
343
|
+
- **`depsonar_cve` is a short, dated list**, not a vulnerability database: 11 advisories, none after January 2026.
|
|
344
|
+
- **Severities are those of the audit tool, never a guess.** `pip-audit` and `govulncheck` give none, and `cargo audit` gives a CVSS vector, not a level: those findings are labelled "unknown". A Composer advisory keeps its own severity when it has one. For Go, each finding says whether `govulncheck` found a call to the vulnerable code. In versions up to 4.1.0 these severities are made up ("high" for PHP and Go, "high" or "moderate" for Python, "low" for Rust).
|
|
345
|
+
|
|
346
|
+
**Secret scan**
|
|
347
|
+
|
|
348
|
+
- It finds only what its 16 patterns match. Not covered, among others: OpenAI keys that start with `sk-proj-`, GitHub tokens other than `ghp_`, `ghs_` and `github_pat_`, Stripe restricted and test keys, Google Cloud and Azure keys, npm tokens.
|
|
349
|
+
- It reads the working tree only: not the git history, not hidden files or folders other than `.env` and `.env.*`, not files over 500 KB, not folders more than 5 levels below the project root, and only a fixed list of text extensions.
|
|
350
|
+
- Lines that start with `#` are skipped outside `.env` files.
|
|
351
|
+
- The generic patterns (`password = "..."`, any 24 characters on a line that mentions "vercel", any 40 characters on a line that mentions "aws") produce false positives.
|
|
352
|
+
- The `.gitignore` check looks for the exact lines `.env`, `.env*`, `.env.*`, `*.env` or `.env.local`. It does not ask git whether the file is tracked.
|
|
353
|
+
- A secret that was committed once must be revoked, whatever a later scan says.
|
|
354
|
+
|
|
355
|
+
**License check**
|
|
356
|
+
|
|
357
|
+
- npm projects only, and only with `node_modules` installed. A project whose dependencies could not be read (not an npm project, no `node_modules`, nothing readable in it) is listed as "not checked", with the reason, and is never counted as clean. The report gives the number of packages read.
|
|
358
|
+
- It reads the packages at the top level of `node_modules`, symbolic links included. With pnpm's default layout those are the direct dependencies only: the indirect ones, under `node_modules/.pnpm`, are not read. With npm, packages nested inside another package's `node_modules` are not read.
|
|
359
|
+
- It trusts the `license` field and does not read license files. A license spelled in a way it does not know is reported as unknown, and listed.
|
|
360
|
+
- In versions up to 4.1.0, symbolic links are skipped, so a pnpm project has no package read, and a report with nothing read says "All dependencies use permissive licenses".
|
|
361
|
+
- It is a first filter, not legal advice.
|
|
362
|
+
|
|
363
|
+
**Updates**
|
|
364
|
+
|
|
365
|
+
- No backup, no undo, no test run. A failed update can leave the project half updated. A step that fails stops the update and is reported as an error.
|
|
366
|
+
- `patch` is not implemented as a separate level: it behaves like `minor`. For Python, Rust, Go, Ruby, Swift and bun projects, the level makes no difference.
|
|
367
|
+
- `dry_run` shows the list of outdated packages, not the command's exact effect.
|
|
368
|
+
- The `packages` argument is checked against the package-name grammar of the project's ecosystem, and each name is handed to the package manager as a separate argument, without a shell. Anything else (a space-separated command, `$(...)`, an option such as `--registry=...`, a name that starts with `-`) is refused before any command runs. It still chooses what gets installed: review it in your MCP client's approval prompt. In versions up to 4.1.0 this argument is pasted into a shell command as written, so it can run any command: update.
|
|
369
|
+
- With npm and bun, `packages` takes names only (`name@version` is refused).
|
|
370
|
+
- Python updates go to whichever environment `pip` points at. Activate the project's virtual environment before starting the client, or do not use the update tools on Python projects.
|
|
371
|
+
- Commands are synchronous and stop after 120 seconds at most. A large monorepo or a slow registry can hit that limit, and the server answers nothing else meanwhile.
|
|
372
|
+
|
|
373
|
+
**Coverage**
|
|
374
|
+
|
|
375
|
+
- Projects are found one level below the projects directory. Deeper ones are reached by passing their path.
|
|
376
|
+
- Swift has no outdated check: `depsonar_check`, `depsonar_scan` and `depsonar_health` say so instead of listing packages, and `depsonar_update` runs `swift package update` without being able to count what changed. Kotlin/Java has neither update nor audit ([table](#supported-ecosystems)). In versions up to 4.1.0, every pinned Swift package is counted as outdated.
|
|
377
|
+
- The migration detector knows Svelte 4 to 5 and Next.js 13 to 14 and 14 to 15, by pattern matching. It does not rewrite code.
|
|
378
|
+
- `depsonar_changelog` calls `npm outdated`, whatever the project's package manager, and the changelog link is a guess (`CHANGELOG.md` on the `main` branch of the package's GitHub repository).
|
|
379
|
+
- The built-in list of replaced packages includes widely used packages that are not deprecated (lodash, chalk, uuid, dotenv...): read it as suggestions.
|
|
380
|
+
- The tables for end-of-life runtimes, Docker images and GitHub Actions are compiled into the package; the Docker and Actions tables are dated February 2026 in the source. A version released since then is unknown to them: for example, the Actions table gives `actions/checkout@v4` as the latest.
|
|
381
|
+
- The per-project "Auto" switch runs minor updates unattended, with no test and no backup: switch it on only for projects under git. In version 4.1.0 it has no effect, and the dashboard page is not in the npm package.
|
|
382
|
+
- In version 4.1.0 the stale-lockfile check of `depsonar_envcheck` never runs, and the background checker is always scheduled through `npx depsonar --check` instead of the installed script.
|
|
383
|
+
- Windows is not supported.
|
|
202
384
|
|
|
203
385
|
---
|
|
204
386
|
|
|
@@ -206,57 +388,57 @@ SvelteKit · Next.js · Nuxt · Astro · Remix · SolidStart · Django · Flask
|
|
|
206
388
|
|
|
207
389
|
```
|
|
208
390
|
depsonar/
|
|
391
|
+
├── bin/
|
|
392
|
+
│ ├── supervise.cjs # Entry point: supervisor and automatic update
|
|
393
|
+
│ └── update.json # Supervisor settings
|
|
209
394
|
├── src/
|
|
210
|
-
│ ├── index.ts #
|
|
395
|
+
│ ├── index.ts # MCP server, or --check / --dashboard / --daemon
|
|
211
396
|
│ ├── checker.ts # Background scanner (cron/launchd)
|
|
212
397
|
│ ├── dashboard.ts # Web dashboard (http://127.0.0.1:24681)
|
|
213
|
-
│ ├──
|
|
398
|
+
│ ├── update-notice.ts # Update notice when started without the supervisor
|
|
399
|
+
│ ├── constants.ts # Language markers, commands, server instructions
|
|
214
400
|
│ ├── types.ts # TypeScript interfaces
|
|
215
401
|
│ ├── schemas/index.ts # Zod input validation
|
|
216
402
|
│ ├── services/
|
|
217
|
-
│ │ ├── project.ts #
|
|
403
|
+
│ │ ├── project.ts # Detection, outdated parsing, update commands, cache, config
|
|
218
404
|
│ │ ├── formatter.ts # Reports, tables, alerts formatting
|
|
219
|
-
│ │ ├── audit.ts # Native security audit (npm
|
|
220
|
-
│ │ ├── cve.ts #
|
|
221
|
-
│ │ ├── osv.ts #
|
|
222
|
-
│ │ ├── changelog.ts #
|
|
405
|
+
│ │ ├── audit.ts # Native security audit (npm, pnpm, cargo, pip, composer, go)
|
|
406
|
+
│ │ ├── cve.ts # Built-in advisory list
|
|
407
|
+
│ │ ├── osv.ts # Vulnerability scan through the osv.dev API
|
|
408
|
+
│ │ ├── changelog.ts # Update types and changelog links
|
|
223
409
|
│ │ ├── migrate.ts # Framework migration detector
|
|
224
410
|
│ │ ├── deprecated.ts # Deprecated package detection
|
|
225
|
-
│ │ ├── secrets.ts # Secret
|
|
226
|
-
│ │ ├── licenses.ts # License
|
|
411
|
+
│ │ ├── secrets.ts # Secret and token scanner
|
|
412
|
+
│ │ ├── licenses.ts # License checker
|
|
413
|
+
│ │ ├── docs.ts # npm package documentation and search
|
|
227
414
|
│ │ ├── runtimes.ts # Runtime version checker
|
|
228
415
|
│ │ ├── toolchain.ts # Global toolchain checker
|
|
229
|
-
│ │ ├── docker.ts # Docker image
|
|
230
|
-
│ │ ├── actions.ts # GitHub Actions
|
|
416
|
+
│ │ ├── docker.ts # Docker image check
|
|
417
|
+
│ │ ├── actions.ts # GitHub Actions check
|
|
231
418
|
│ │ └── envcheck.ts # Environment validator
|
|
232
|
-
│ └── tools/index.ts #
|
|
233
|
-
├──
|
|
234
|
-
|
|
235
|
-
|
|
419
|
+
│ └── tools/index.ts # The 25 MCP tools
|
|
420
|
+
├── tests/ # node --test suites
|
|
421
|
+
├── scripts/build-mcpb.mjs # Builds the .mcpb bundle
|
|
422
|
+
├── dashboard.html # Dashboard page
|
|
423
|
+
├── static/ # Logo, banner, social preview
|
|
424
|
+
├── .mcp/ # Manifests for the .mcpb bundle and the MCP Registry
|
|
236
425
|
├── package.json
|
|
237
426
|
├── tsconfig.json
|
|
238
427
|
└── LICENSE (MIT)
|
|
239
428
|
```
|
|
240
429
|
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
## CLI
|
|
430
|
+
Since 4.2.0, the server sends usage instructions to the MCP client when it connects (`SERVER_INSTRUCTIONS` in `src/constants.ts`).
|
|
244
431
|
|
|
245
|
-
|
|
246
|
-
depsonar # Start MCP server (for Cursor)
|
|
247
|
-
depsonar --check # Run background scan
|
|
248
|
-
depsonar --version # Show version
|
|
249
|
-
depsonar --help # List all 23 tools
|
|
250
|
-
```
|
|
432
|
+
What changed in each version: [CHANGELOG.md](CHANGELOG.md). Reporting a vulnerability: [SECURITY.md](SECURITY.md).
|
|
251
433
|
|
|
252
434
|
---
|
|
253
435
|
|
|
254
436
|
## Also by Soflution
|
|
255
437
|
|
|
256
|
-
- **[
|
|
438
|
+
- **[BrandCheck](https://github.com/Soflutionltd/BrandCheck)**: checks whether a brand name is available on domains, social networks, app stores and trademark registers.
|
|
257
439
|
|
|
258
440
|
---
|
|
259
441
|
|
|
260
442
|
## License
|
|
261
443
|
|
|
262
|
-
MIT
|
|
444
|
+
MIT. Published by [Soflution](https://soflution.com).
|
package/bin/supervise.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
// Soflution MCP supervisor: keeps the server up to date without restarting Claude or Cursor.
|
|
4
4
|
//
|
|
5
|
-
//
|
|
5
|
+
// The MCP client (Claude, Cursor...) talks to this small process, which
|
|
6
6
|
// stays connected; the real server runs behind it as a child process. In the background the
|
|
7
7
|
// supervisor asks npm for the latest version and installs it next to the current one, in
|
|
8
8
|
// ~/.soflution/mcp/<package>/<version> (npm checks the package integrity). As soon as no request
|