Overview
Aguara provides a public Go API for security scanning of AI agent skills and MCP server configurations. You can integrate Aguara directly into your Go applications for programmatic scanning without using the CLI.Installation
Import Path
Key Features
- File & Directory Scanning: Scan files or entire directories on disk
- Inline Content Scanning: Scan content strings without writing to disk
- MCP Discovery: Find all MCP client configurations on the local machine
- Rule Management: List and query detection rules programmatically
- Fully Offline: No network calls, deterministic results
- Concurrent: Built-in worker pool for parallel file scanning
Quick Start
Core Functions
| Function | Purpose |
|---|---|
Scan() | Scan a file or directory on disk |
ScanContent() | Scan inline content without disk I/O |
Discover() | Find MCP client configurations |
ListRules() | Get all available detection rules |
ExplainRule() | Get detailed information about a specific rule |
Functional Options
All scanning functions accept functional options for configuration:Type Exports
Aguara re-exports core types so you don’t need to import internal packages:Error Handling
All functions that can fail return anerror as the second return value:
Context Support
Scanning functions accept acontext.Context for cancellation and timeout:
