semgrep_run_job tool to start a scan or workflow on a project and get a summary of the findings it produces.
Prerequisites
- A connection to the full MCP server URL. The
semgrep_run_jobtool isn’t available on the read-only URL. - An MCP client that supports the MCP tasks extension. The
semgrep_run_jobtool appears only if your client supports it. If you don’t see the tool, check your client’s documentation for tasks support. - To run
workflowanddeepjobs, the admin role.
Choose a job type
SetjobType to choose what runs:
To choose the branch, set
branch. Otherwise, the job runs on the branch that Managed Scans uses for full scans of the project, or on the project’s primary branch if no full-scan branch is set.
AI-powered detection scans and Agentic Workflows runs consume credits.
Only admins can run
workflow and deep jobs, because both run Agentic Workflows.How jobs run
Scans can take several minutes, sosemgrep_run_job uses the MCP tasks extension. Instead of waiting for the job to finish, the tool returns a task right away. Your MCP client checks the task until the job is completed, failed, or canceled, then reads the result. The result describes the job and summarizes the findings from each scan or workflow that ran. Tasks expire 24 hours after they’re created.
Cancel a job
You can cancel aworkflow job. You can’t stop a Managed Scans or AI-powered detection scan after it starts, so sms, aiDetection, and deep jobs keep running until they finish.