Skip to main content
Glama

Semgrep MCP Server

Official
by semgrep

start_scan_from_content

Initiate a Semgrep scan using directly provided code content to identify security vulnerabilities. Input code files and configuration to generate detailed scan results.

Instructions

Starts a Semgrep scan with code content provided directly

Args: ctx: MCP context for sending notifications code_files: List of dictionaries with 'filename' and 'content' keys config: Semgrep configuration (e.g. "auto" or absolute path to rule file)

Returns: Dictionary with scan information

Input Schema

NameRequiredDescriptionDefault
code_filesYes
configNoauto

Input Schema (JSON Schema)

{ "properties": { "code_files": { "items": { "additionalProperties": { "type": "string" }, "type": "object" }, "title": "Code Files", "type": "array" }, "config": { "default": "auto", "title": "Config", "type": "string" } }, "required": [ "code_files" ], "title": "start_scan_from_contentArguments", "type": "object" }
Install Server

Other Tools from Semgrep 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/semgrep/mcp'

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