Skip to main content
Glama

Adversary MCP Server

by brettbergin

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
ADVERSARY_LLM_MODELNoLLM model to use
ADVERSARY_LOG_LEVELNoLog level for the applicationINFO
ADVERSARY_LLM_PROVIDERNoLLM provider (e.g., openai, anthropic)
ADVERSARY_CACHE_SIZE_MBNoCache size in megabytes200
ADVERSARY_WORKSPACE_ROOTNoPath to the project workspace root
ADVERSARY_MAX_CONCURRENT_SCANSNoMaximum number of concurrent scans8

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
adv_scan_code

Scan source code for security vulnerabilities. Results are saved as .adversary.json or .adversary.md in the specified directory.

adv_scan_file

Scan a file for security vulnerabilities. Results are saved in the same directory as the target file.

adv_scan_folder

Scan a directory for security vulnerabilities. Results are saved in the target directory.

adv_diff_scan

Scan security vulnerabilities in git diff changes between branches. Results are saved in the repository root.

adv_get_status

Get server status and configuration

adv_get_version

Get version information

adv_clear_cache

Clear all local cache and data storage

adv_mark_false_positive

Mark a finding as a false positive in the .adversary.json file

adv_unmark_false_positive

Remove false positive marking from a finding in the .adversary.json file

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