skilltotal 0.72.0 → 0.73.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 +5 -3
- package/bin/skilltotal.js +6 -1
- package/lib/runner.js +19 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -3,14 +3,16 @@
|
|
|
3
3
|
Run the SkillTotal scanner with npx. It checks MCP servers, agent skills and npm/PyPI packages for tool poisoning, malicious install scripts, credential exfiltration and hidden Unicode. Every finding cites the file and line it came from. The analysis is static: the scanner never runs the code it reads and never calls an LLM.
|
|
4
4
|
|
|
5
5
|
```bash
|
|
6
|
-
npx -y skilltotal scan https://github.com/owner/repo
|
|
7
|
-
npx -y skilltotal scan npm:some-package --fail-on-high
|
|
6
|
+
npx -y --package=skilltotal@0.73.0 -- skilltotal scan https://github.com/owner/repo
|
|
7
|
+
npx -y --package=skilltotal@0.73.0 -- skilltotal scan npm:some-package --fail-on-high
|
|
8
8
|
```
|
|
9
9
|
|
|
10
|
+
Name the release with `--package`: a plain `npx skilltotal` run inside a repository first runs any `skilltotal` program in that repository's `node_modules/.bin`, and a repository you are about to scan can ship one.
|
|
11
|
+
|
|
10
12
|
To use it as a local MCP server in Claude Code, Claude Desktop, Cursor or any other MCP client:
|
|
11
13
|
|
|
12
14
|
```json
|
|
13
|
-
{ "mcpServers": { "skilltotal": { "command": "npx", "args": ["-y", "skilltotal", "mcp"] } } }
|
|
15
|
+
{ "mcpServers": { "skilltotal": { "command": "npx", "args": ["-y", "--package=skilltotal@0.73.0", "--", "skilltotal", "mcp"] } } }
|
|
14
16
|
```
|
|
15
17
|
|
|
16
18
|
## How it runs
|
package/bin/skilltotal.js
CHANGED
|
@@ -26,7 +26,12 @@ process.stderr.write(versionWarning(version, runner));
|
|
|
26
26
|
|
|
27
27
|
// stdio is inherited untouched, so `npx -y skilltotal mcp` speaks MCP over this process's
|
|
28
28
|
// stdin/stdout and the exit code (e.g. --fail-on-high in CI) passes through.
|
|
29
|
-
|
|
29
|
+
// Never the bare name: the shell would look it up itself, current directory included.
|
|
30
|
+
const program = resolveCommand(runner.cmd);
|
|
31
|
+
if (!program) {
|
|
32
|
+
process.stderr.write(helpText(version));
|
|
33
|
+
process.exit(127);
|
|
34
|
+
}
|
|
30
35
|
const child = spawn(program, [...runner.args, ...process.argv.slice(2)], {
|
|
31
36
|
stdio: "inherit",
|
|
32
37
|
windowsHide: true,
|
package/lib/runner.js
CHANGED
|
@@ -24,11 +24,27 @@ function noCurrentDirectoryLookup(env = process.env, platform = process.platform
|
|
|
24
24
|
/**
|
|
25
25
|
* The file a bare command name runs: on Windows, the first `.com` or `.exe` in PATH's absolute
|
|
26
26
|
* directories (as libuv looks), never the current directory, which the libuv of Node before 22
|
|
27
|
-
* searches whatever the variable says. Null when there is none. Elsewhere the
|
|
28
|
-
*
|
|
27
|
+
* searches whatever the variable says. Null when there is none. Elsewhere, the first executable
|
|
28
|
+
* file of that name in PATH's absolute directories: a PATH holding `.` or an empty entry (which
|
|
29
|
+
* means the current directory) would otherwise run a `uvx` committed to the scanned repository
|
|
30
|
+
* (security review, 2026-10-15).
|
|
29
31
|
*/
|
|
30
32
|
function resolveCommand(cmd, env = process.env, platform = process.platform) {
|
|
31
|
-
if (platform !== "win32")
|
|
33
|
+
if (platform !== "win32") {
|
|
34
|
+
for (const dir of String(env.PATH ?? "").split(":")) {
|
|
35
|
+
if (!dir.startsWith("/")) continue; // empty or relative: the current directory
|
|
36
|
+
const file = path.posix.join(dir, cmd);
|
|
37
|
+
try {
|
|
38
|
+
if (fs.statSync(file).isFile()) {
|
|
39
|
+
fs.accessSync(file, fs.constants.X_OK);
|
|
40
|
+
return file;
|
|
41
|
+
}
|
|
42
|
+
} catch {
|
|
43
|
+
// not there, or not executable
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
32
48
|
for (const entry of String(env.PATH ?? env.Path ?? "").split(";")) {
|
|
33
49
|
const dir = entry.trim().replace(/^"(.*)"$/, "$1");
|
|
34
50
|
if (!/^(?:[A-Za-z]:[\\/]|[\\/]{2})/.test(dir)) continue; // not absolute: relative to the cwd
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "skilltotal",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.73.0",
|
|
4
4
|
"description": "Static security scanner for MCP servers, agent skills and npm/PyPI packages. Runs the skilltotal Python engine through uvx, pipx or an installed Python.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mcp",
|