← 全部文档 docsen/quickstart.md

AIShield — Quick Start (English)

English mirror of README.md. See also README_EN.md at repo root for the short version.

What is AIShield

AIShield is a local-first, zero-dependency security scanner and trust authority for the MCP / Agentic AI economy. It scans MCP servers, AI skills, and AI agent configurations for tool poisoning, prompt injection, secret leakage, sandbox misconfiguration, and supply-chain risk — aligned with OWASP MCP Top 10 and all 10 risk categories of the OWASP Agentic AI Top 10 (2026).

Install

git clone https://github.com/lm203688/aishield.git && cd aishield
python -m venv .venv && source .venv/bin/activate
pip install -e .

cryptography and pyyaml are required, not optional. tests/run_all.py pre-checks both and aborts cleanly (exit 2) rather than silently skipping tests that would otherwise look green.

Run the test suite

python tests/run_all.py

Verify the isolation invariant

The scanner never spawns commands from the configuration it inspects. Self-proof:

python scripts/prove_isolation.py

Scan something

# Single file
python -m scanner --file path/to/config.json

# Whole workspace
python scripts/scan_workspace.py .

Wire up the MCP server

Claude Desktop / Cursor / Windsurf (stdio)

{
  "mcpServers": {
    "aishield": {
      "command": "npx",
      "args": ["-y", "aishield-mcp-server"],
      "env": { "AISHIELD_API_KEY": "your-key" }
    }
  }
}

Remote (StreamableHTTP)

{
  "mcpServers": {
    "aishield": {
      "url": "https://aishield.tools/api/v1/mcp"
    }
  }
}

Health check

curl https://aishield.tools/api/v1/health

Response includes version, rules_count, rules_breakdown, commit, deployed_at, signing_backend, identity_ready.

Further reading


来源:docs/en/quickstart.md · 由 aishield.tools 直接渲染,零外链依赖