agent-preflight
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@agent-preflight scan this README for prompt injection and hidden unicode before I trust it"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
agent-preflight
Zero-dependency local security guardrail CLI & MCP server for AI coding agents. Run three fast pre-flight checks locally with zero API keys before trusting a repo, pasting logs into an LLM, or installing AI-suggested packages:
Secrets & PII Redaction — detects and masks GitHub/AWS/OpenAI/Anthropic/Stripe keys, private keys, and emails (
[REDACTED:...]).Prompt Injection & Trojan-Source Unicode — flags hidden bidi/zero-width control characters, system-prompt exfiltration instructions, and raw-IP fetches in untrusted READMEs, issues, and diffs.
Slopsquatting Dependency Check — verifies
requirements.txt,pyproject.toml, andpackage.jsonentries against PyPI and npm to catch hallucinated or newly registered typosquat packages.
Quickstart
Requires Python 3.11+ (zero external runtime dependencies).
# Scan current repository (exits 1 on high-severity findings)
uvx --from git+https://github.com/dev-shiki/agent-preflight agent-preflight scan .
# Check Python/Node manifests for slopsquatted or <14-day-old packages
uvx --from git+https://github.com/dev-shiki/agent-preflight agent-preflight check-deps .
# Redact PII/secrets from a log file before sharing
uvx --from git+https://github.com/dev-shiki/agent-preflight agent-preflight redact debug.logRelated MCP server: llmsecurity-mcp
MCP Server Configuration
Add to Claude Code, Cursor, Windsurf, or Antigravity mcp_config.json:
{
"mcpServers": {
"agent-preflight": {
"command": "uvx",
"args": ["--from", "git+https://github.com/dev-shiki/agent-preflight", "agent-preflight-mcp"]
}
}
}Exposed MCP Tools
preflight_scan_text— inspect untrusted text for secrets, bidi Unicode, and prompt injection.preflight_scan_path— recursively scan a file or workspace directory.preflight_redact— scrub secrets and emails from text.preflight_check_deps— verify PyPI/npm packages in a project directory.
Development
uv run --with pytest pytest -vAvailable Tools
4 toolspreflight_check_depsB
Verify PyPI and npm dependencies in a directory to catch slopsquatted or brand-new typosquat packages.
Inputs: path.
preflight_redactB
Redact API keys, tokens, private keys, and email addresses before sharing logs or prompts.
Inputs: text (required).
preflight_scan_pathB
Recursively scan a local file or directory for secrets, Trojan-Source bidi characters, and prompt injection.
Inputs: path.
preflight_scan_textA
Scan untrusted text (issue body, README, prompt) for leaked secrets, hidden bidi Unicode, and prompt injection.
Inputs: text (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool targets a distinct operation: scanning text, scanning a filesystem path, redacting sensitive data, and checking dependencies. The only mild overlap is between preflight_scan_text and preflight_scan_path, but the descriptions clearly differentiate string input from filesystem input.
All four tools use a consistent preflight_ prefix followed by a verb_noun or verb form (scan_text, scan_path, redact, check_deps). The pattern is predictable and immediately readable.
Four focused tools map cleanly to the server's stated preflight-safety purpose, with no filler or redundant entries. Each tool earns its place.
The surface covers the core safety workflows: text scanning, path scanning, redaction, and dependency verification. Minor gaps exist, such as scanning remote URLs/repos or configuring rules, but the main use cases are handled.
Maintenance
Related MCP Connectors
Checks AI-written code for leaked keys and made-up packages, on your machine. Never uploads code.
The WAF for agents. Pattern-based + heuristic firewall scans prompts, RAG documents, tool argume...
Deterministic runtime safety for AI agents: scan PII, gate tool actions, verify LLM output.
Protects AI coding agents from installing malicious open source packages. Every npm and PyPI package is checked against SafeDep’s real-time threat intelligence before installation.
Related MCP Servers
AlicenseAqualityBmaintenanceEnables AI agents to scan text for leaked secrets and prompt injection markers, and redact them before reaching an LLM.21MIT- AlicenseBqualityDmaintenanceProvides local, dependency-free security scanning tools for LLM configurations, prompts, RAG sources, and more, enabling AI coding agents to detect prompt injections and other vulnerabilities without external network access.8MIT
- AlicenseNot gradedqualityCmaintenanceProvides security checks for AI agents, including secret scanning, CVE lookup, and dependency vulnerability scanning, all running locally except for CVE lookups.MIT
- AlicenseNot gradedqualityBmaintenanceEnables users to scan untrusted text, files, and directory trees for prompt-injection patterns and receive severity-ranked, explainable verdicts before content reaches an agent. It runs locally and returns clean, review, or blocked verdicts for safer agent input.1MIT