Skip to main content
Glama

Adversary MCP Server

by brettbergin

adv_scan_file

Analyze files for vulnerabilities by setting severity thresholds, including exploit examples, and using Semgrep or LLM analysis. Generate results in text or JSON format.

Instructions

Scan a file for security vulnerabilities

Input Schema

NameRequiredDescriptionDefault
file_pathYesPath to the file to scan
include_exploitsNoWhether to include exploit examples
outputNoPath to output file for JSON results (optional, defaults to .adversary.json in project root)
output_formatNoOutput format for resultstext
severity_thresholdNoMinimum severity thresholdmedium
use_llmNoWhether to include LLM analysis prompts (for use with your client's LLM)
use_semgrepNoWhether to include Semgrep analysis

Input Schema (JSON Schema)

{ "properties": { "file_path": { "description": "Path to the file to scan", "type": "string" }, "include_exploits": { "default": true, "description": "Whether to include exploit examples", "type": "boolean" }, "output": { "description": "Path to output file for JSON results (optional, defaults to .adversary.json in project root)", "type": "string" }, "output_format": { "default": "text", "description": "Output format for results", "enum": [ "text", "json" ], "type": "string" }, "severity_threshold": { "default": "medium", "description": "Minimum severity threshold", "enum": [ "low", "medium", "high", "critical" ], "type": "string" }, "use_llm": { "default": false, "description": "Whether to include LLM analysis prompts (for use with your client's LLM)", "type": "boolean" }, "use_semgrep": { "default": true, "description": "Whether to include Semgrep analysis", "type": "boolean" } }, "required": [ "file_path" ], "type": "object" }
Install Server

Other Tools from Adversary MCP Server

Related Tools

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/brettbergin/adversary-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server