Skip to content
This repository was archived by the owner on Oct 28, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/semgrep_mcp/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,8 @@ def get_semgrep_scan_args(temp_dir: str, config: str | None = None) -> list[str]
# if no config is provided to allow for either the default "auto"
# or whatever the logged in config is
args = ["scan", "--json", "--experimental"] # avoid the extra exec
if os.environ.get("SEMGREP_API_TOKEN"):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SEMGREP_APP_TOKEN

args.extend(["--pro"]) # TODO don't download the pro engine binaries
if config:
args.extend(["--config", config])
args.append(temp_dir)
Expand Down
Loading