Metadata-Version: 2.5
Name: agent-perimeter-scan
Version: 1.2.1
Summary: Security posture scanner for MCP servers and tool-using agents, with SARIF output and a drift gate
Project-URL: Homepage, https://github.com/Berakhah/agent-perimeter
Project-URL: Documentation, https://github.com/Berakhah/agent-perimeter#readme
Project-URL: Changelog, https://github.com/Berakhah/agent-perimeter/blob/main/CHANGELOG.md
Project-URL: Issues, https://github.com/Berakhah/agent-perimeter/issues
Project-URL: Security, https://github.com/Berakhah/agent-perimeter/security/policy
Author: Bereket Tilahun
License-Expression: Apache-2.0
License-File: LICENSE
License-File: NOTICE
Keywords: agents,mcp,model-context-protocol,sarif,scanner,security
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Information Technology
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Security
Classifier: Topic :: Software Development :: Quality Assurance
Requires-Python: >=3.12
Requires-Dist: alembic>=1.13
Requires-Dist: fastapi>=0.115
Requires-Dist: httpx>=0.27
Requires-Dist: jinja2>=3.1
Requires-Dist: packaging>=24.0
Requires-Dist: psycopg[binary]>=3.1
Requires-Dist: pydantic>=2.7
Requires-Dist: pyyaml>=6.0
Requires-Dist: sqlalchemy>=2.0
Requires-Dist: typer>=0.12
Requires-Dist: uvicorn[standard]>=0.30
Description-Content-Type: text/markdown

# Agent Perimeter

Scan an MCP server or tool-using agent and get findings you can reproduce. Each finding carries
a CWE, a published taxonomy entry (OWASP LLM Top 10, OWASP MCP Top 10, CoSAI, NSA CSI or MITRE
ATLAS), and the exact command that shows it. Output is SARIF 2.1.0 for GitHub code scanning, an
HTML report, and a drift gate that fails CI when a tool's description changes after you approved
it.

![An Agent Perimeter HTML report: one finding with its CWE, evidence and reproduction command](https://raw.githubusercontent.com/Berakhah/agent-perimeter/main/docs/evidence/print-report.png)

## Install and scan

Needs Python 3.12+. Scan a server **you own or are authorised to test**:

```bash
uv tool install agent-perimeter-scan      # or: pipx install agent-perimeter-scan
agent-perimeter scan --target https://your-server.example/mcp --sarif perimeter.sarif --html perimeter.html
```

- Passive mode is the default: it lists tools, resources and prompts and never calls a tool.
- Active probes refuse to run without a
  [scope file](https://github.com/Berakhah/agent-perimeter#before-you-scan-anything-the-scope-file-requirement)
  naming the target, who authorised it, and when.
- Stdio targets run inside a locked-down container (non-root, read-only root filesystem, no
  network, seccomp, memory and CPU caps, hard timeout), so they need Docker.
- Exit codes: `0` clean, `2` refused or incomplete tool listing, `3` drift gate tripped.

In CI, use the [GitHub Action](https://github.com/Berakhah/agent-perimeter#use-as-a-github-action)
or copy the [example workflow](https://github.com/Berakhah/agent-perimeter/tree/main/examples).

## What it is not

It doesn't run an agent or call a model. Injection findings show that the path exists; whether
your agent follows it is measured only if you supply a transcript. Precision and recall are
measured on the project's own fixture corpus, not in the field
([methodology](https://github.com/Berakhah/agent-perimeter/blob/main/docs/methodology.md)).

Source, issues, the full README and the MCP Registry census:
https://github.com/Berakhah/agent-perimeter. Licence: Apache-2.0.
