{
  "slug": "mcp-semgrep-findings-filters-by-branch-and-includes-findings-without-ai-verdicts-8e11fe1f320f",
  "title": "MCP semgrep_findings filters by branch and includes findings without AI verdicts",
  "tools": [
    "semgrep"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-05-07T16:03:28.000Z",
  "announced_at": "2026-05-07T16:03:28.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "To retrieve findings for a branch, call `semgrep_findings` with `refs` set to that branch. Omit `autotriage_verdict` to include findings without an AI verdict.",
    "examples": [
      "semgrep_findings(repos=[\"<owner>/<repository>\"], refs=[\"<branch>\"])"
    ],
    "gotchas": [
      "Version: v1.162.0",
      "Availability: MCP",
      "repos (required): Repository names to filter by, in `owner/repository` form; the tool returns an error if none are provided.",
      "refs: List of git refs (branch names) to filter findings by. If omitted, findings are filtered to the primary branch.",
      "autotriage_verdict: Verdict filter (`VERDICT_TRUE_POSITIVE` or `VERDICT_FALSE_POSITIVE`). Omit it to include findings with any verdict, including unrated findings.",
      "Prerequisite: Authenticate to Semgrep and have a deployment ID. API tokens must have the `webapi` role.",
      "The `refs` parameter defaults to the primary branch when unspecified.",
      "`autotriage_verdict` is optional."
    ]
  },
  "why_it_matters": "Retrieve Semgrep findings for a particular branch, including findings without an AI verdict.",
  "sources": [
    "https://github.com/semgrep/semgrep/releases/tag/v1.162.0",
    "https://github.com/semgrep/semgrep/blob/develop/cli/src/semgrep/mcp/server.py"
  ],
  "rank": 0.93041,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave2b-20261017",
    "verdict_id": "wave2b-20261017:wave2b-20261017-a0868004cf663dcc-4:gate",
    "evidence_hash": "113ce30b90c77324f5d7d50a18f02c36146ec43478bd344a35357ea7c3198756"
  },
  "review": {
    "draft_hash": "e9875fa086adfb4412ac8f1c0708f2a94752f02cf1d1306dba81d76f85692566",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave2b-20261017:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.93 >= 0.9; 2 needed) and Jev gave 0.75 (>= 0.6 needed)."
  }
}
