Shellward logo

Shellward

by jnMetaCode

Screens projects for China-specific compliance risks and adds runtime checks for injections, sensitive data, paths, tools, and commands.

Install Shellward

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "jnmetacode-shellward": {
      "command": "npx",
      "args": [
        "-y",
        "shellward"
      ],
      "env": {
        "SHELLWARD_MODE": "YOUR_VALUE_HERE",
        "SHELLWARD_LOCALE": "YOUR_VALUE_HERE",
        "SHELLWARD_THRESHOLD": "YOUR_VALUE_HERE",
        "SHELLWARD_BASELINE_PATH": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx -y shellward

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked 1mo ago.

Overview

The jnMetaCode/shellward MCP server provides stdio-based security checks for AI agents and MCP tool definitions. It detects prompt injection, sensitive data, dangerous commands, unsafe paths, tool poisoning, rug-pull changes, and outbound data-exfiltration patterns. The package also includes a read-only project scanner that maps findings to Chinese regulatory areas such as PIPL, MLPS 2.0, cross-border data, and AI labeling. Reach for it when an agent needs local security gates or when a project needs a compliance scan without uploading source files.

Use cases

  • Block dangerous shell commands before an agent executes them
  • Detect Chinese and English prompt injection in agent input
  • Audit PII and credentials in tool output or project files
  • Scan MCP tool definitions for poisoning and silent changes
  • Gate pull requests on critical compliance findings

Key features

  • Stdio MCP server with local execution
  • Prompt injection detection for Chinese and English text
  • PII, credential, and sensitive-data scanning
  • Command, path, tool, and outbound-action checks
  • MCP tool-poisoning and rug-pull detection
  • China-focused project compliance scanning

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked Today

Recent health check succeeded.

8/8 checks healthy over the last 80d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 11d ago via OSV.dev · shellward (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars139Stargazers on the source repository.
npm downloads973Package downloads in the last 30 days.
Last commit1mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Directory activity4 viewsConfig copies, upvotes, and views on AllMCPs.

How Shellward works

What jnMetaCode/shellward MCP server does

The jnMetaCode/shellward MCP server acts as a local security layer for AI agents and MCP clients. It evaluates agent inputs, tool definitions, commands, paths, responses, and outbound actions instead of providing business-system integrations. The implementation is described as dependency-free and runs locally over stdio, so the MCP checks do not require a hosted service or API credential.

Its detection coverage is aimed at both English and Chinese content. The project includes rules for prompt injection, Chinese identity cards and mobile numbers, UnionPay cards, common API keys, JWTs, passwords, credit cards, and US Social Security numbers. Sensitive data is audited rather than automatically redacted. When sensitive data has recently been accessed, outbound email, HTTP, or shell-based transfer attempts can be denied.

The repository also provides a command-line compliance scanner. It reports findings with file and line locations, checks items such as hardcoded secrets, exposed environment files, Chinese PII, and overseas LLM endpoints or SDKs, and can emit JSON or HTML reports.

How it works

The jnMetaCode/shellward MCP server exposes checks through JSON-RPC over stdio. A client starts the published executable with npx, then registers it in the client’s MCP configuration. The default mode is enforcement; an audit mode is also available. Detection thresholds and locale behavior can be adjusted through environment variables.

The runtime design contains eight named defense layers: prompt guard, input auditor, tool blocker, output scanner, security gate, outbound guard, data-flow guard, and session guard. Tool definitions can be inspected for concealed instructions, invisible characters, secret-file access, and exfiltration hints. The server can also remember an initial tool description fingerprint and identify later changes.

For project assessment, npx shellward scan performs a read-only local scan. Optional modes open a report in a browser, serve it locally, produce CI-oriented JSON, or fail a build when critical findings are present. A web mode can scan a public repository URL, while the local web mode reads a local path.

Setup and configuration

Add the following MCP entry to Claude Desktop, Cursor, or another stdio-compatible MCP client:

config.json
{
  "mcpServers": {
    "shellward": {
      "command": "npx",
      "args": ["-y", "-p", "shellward", "shellward-mcp"]
    }
  }
}

The jnMetaCode/shellward MCP server supports these settings:

  • SHELLWARD_MODE: enforce or audit; enforcement is the default.
  • SHELLWARD_LOCALE: auto, zh, or en.
  • SHELLWARD_THRESHOLD: a value from 0 to 100, defaulting to 40.
  • SHELLWARD_BASELINE_PATH: the baseline file location used for tool fingerprints.

The package can also be installed as an SDK with npm install shellward, or used through the documented OpenClaw plugin installation.

Tools and capabilities

The documented MCP interface includes:

  • check_command for dangerous shell commands and bypass patterns.
  • check_injection for Chinese and English prompt-injection rules.
  • scan_data for PII and credential detection.
  • check_path for sensitive paths such as .env, .ssh, and credential files.
  • check_tool for disallowed tool names, including payment or transfer tools.
  • check_response for canary leaks and PII exposure.
  • scan_mcp_tool for tool poisoning and description changes.
  • security_status for the active security configuration.
  • compliance_check for a China-focused compliance health check.

Limitations and notes

The material documents security analysis and blocking, not authorization for external systems or guaranteed regulatory compliance. PII findings are returned in an audit result and are not automatically masked. The project’s compliance scan is specifically oriented toward Chinese regulatory concepts and overseas-model data-transfer risks. Client compatibility depends on MCP stdio support and the client’s configuration format.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Shellward

Register `npx` with `-y -p shellward shellward-mcp` in the MCP client configuration.

Yes. The README provides a Claude Desktop MCP configuration using the `shellward-mcp` executable.

It checks commands, prompt text, data, file paths, tool names, AI responses, and MCP tool definitions. Its CLI also scans project files for compliance risks.

No API key is documented. The MCP server runs locally over stdio and is described as having zero dependencies.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewShellward AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/jnmetacode-shellward?style=directory)](https://allmcps.com/mcp/jnmetacode-shellward)
HTML Embed
<a href="https://allmcps.com/mcp/jnmetacode-shellward"><img src="https://allmcps.com/api/badge/jnmetacode-shellward?style=directory" alt="Shellward on AllMCPs" /></a>