Skip to content

Prompts and tools

To understand when the rules, the checklists and the standards apply, and how to write the AGENTS.md file of a project, see How a review works.

Prompts

Prompt Use Arguments
security-review General review of Python, Java, Go, C#, Rust, PHP, Ruby, Kotlin, TypeScript/Node.js or Angular code (language: one or more languages, for example python, angular) language, code, context, focus, report_language, fix_min_severity
api-security-review REST API (OWASP API Top 10) framework, code, context, focus, report_language, fix_min_severity
configuration-review Dockerfile, CI/CD, Spring, YAML, properties config_type, content, context, focus, report_language, fix_min_severity
codebase-review Review of the whole repository (not only a diff); how it works and its cost languages, scan_results, context, focus, report_language, fix_min_severity
dependency-review Manifests and lockfiles (supply chain) ecosystem, files, context, report_language, fix_min_severity
triage-report Re-qualify the findings of a stored report report_id, context, report_language
development-standards Gives the assistant the development standards of its stack before it writes code technologies, files, task, context

If code is empty, the prompt asks the agent to read the files of its workspace. Every review prompt starts by calling request_project (the agent stops when the project is only requested) and ends with the instruction to call save_security_report once. Saving the report is required: the review is not done until the tool has returned a report id, even when nothing was found, and the agent passes branch and commit_sha when it knows them, so your AGENTS.md does not need to repeat it. development-standards saves nothing.

Each review prompt embeds the checklists of its domain (by language for security-review and codebase-review, aliases such as py or ts accepted), the * (every language) and company checklists, then names the other available checklists, internal domains included, for the agent to fetch with get_review_checklist when they apply (details).

When the code, diff or workspace includes dependency files (manifests, lockfiles, SBOMs), security-review, api-security-review and configuration-review also have the agent call scan_dependencies on each complete file and walk through the dependencies checklist, embedded when the code names such a file. For a review of the dependencies alone, use dependency-review.

Report language

report_language sets the language of the agent's reply and of the written fields of the stored report (summary, scope, titles, descriptions, recommendations), for example French, fr or pt-BR. Without this argument, the prompt uses SECREVIEW_REPORT_LANGUAGE when it is set, else the language chosen by an administrator on the General page of the web interface; if none is set, the agent chooses (usually the language of the conversation).

An agent that reviews without a prompt, with the tools only (a common case: an MCP prompt is a command started by the user, the agent cannot call it itself), gets the same configured language (variable, else General page) in the results of get_review_checklist ("Report language" section) and of scan_code (report_language field, null if the agent chooses).

Code, excerpts, paths, rule ids, CWE / OWASP references and the fixed values expected by the tools (severity, category, status) stay unchanged: the gate, the SARIF export and the trends work whatever the language.

The value only accepts letters, spaces, -, _ and parentheses (40 characters at most), so that it cannot carry instructions; otherwise the prompt is refused.

Findings to fix

fix_min_severity tells the agent which findings to fix in the code once the report is saved: every confirmed finding of that severity or above (critical, high, medium, low or info; high means critical and high), most severe first, with a test when the project has tests, then a propose_finding_status with status fixed for each one (a person still approves it). The less severe findings stay in the report without a code change, unless the user asks. Without this argument, the prompt uses SECREVIEW_FIX_MIN_SEVERITY when it is set, else the severity chosen by an administrator on the General page; if none is set, the prompt gives no instruction and the agent fixes only what the user asks. This replaces a rule such as "fix the critical and high findings" written in the AGENTS.md of each repository.

As for the language, an agent that reviews without a prompt gets the configured severity in the results of get_review_checklist ("Findings to fix" section) and of scan_code (fix_min_severity field, null without instruction). Any other value is refused. These tools always give the configured severity: during a review started with a prompt, the "Findings to fix" section of the prompt takes precedence, including a severity given with the fix_min_severity argument.

When the configured severity is set, request_project, called before every review, also tells the agent about the open findings of the project that reach it (findings_to_fix: counts by severity, findings already proposed as fixed apart, and fixed next_steps): the agent tells the developer and offers to fix them once the current task is done, never without their agreement.

Tools

Tool Role
list_checklists / get_review_checklist Checklists by domain: python, java, angular, node, go, csharp, rust, php, ruby, kotlin, terraform, api, config, cicd, dependencies and internal domains
scan_code Quick line-by-line pattern scan (leads to check, not a full SAST; data flows are followed by OpenGrep during a scan of the codebase, or by scan_code when it is delegated to the Controller server). Masked excerpts, invisible characters shown as <U+XXXX>
start_codebase_scan Gives the agent the commands that have the Controller server scan the whole repository (security-review-ci run with uvx, single-use ticket), without the agent reading the files nor the developer creating a ci token; scope deps only gives the dependency scan (dependency-review prompt); its review_group links the reports of the scans and of the review; HTTP MCP server with the delegation of scan_code only (scan started by the agent)
save_security_report Stores the report and its findings in the database; also returns codebase_review, as request_project does, while a full codebase review is still due
get_security_report Reads a report back (Markdown by default, or JSON)
list_security_reports List filtered by project / risk level / review type, with pagination
propose_finding_status Proposes fixed, accepted or false_positive with a reason; never changes the status (status of a finding)
decide_finding_status Local mode (stdio) only: applies a triage decision the developer stated in the conversation, once they confirm it in the host (decision of the developer in local mode)
propose_opengrep_rule Proposes an OpenGrep rule for a vulnerable pattern the scan missed; installed only once a person approves it
get_project_security_posture Open findings by severity, info observations counted apart (useful as a CI safeguard)
check_project_gate CI gate: passed is false while an open finding reaches the fail_on threshold
export_sarif SARIF 2.1.0 export of a report or a project
export_findings_report Current findings of a project as one Markdown document (detail: compact by default, one line per finding, or full), shown to the developer or written by the agent to SECURITY_REPORT.md (findings report)
get_trend_report Trend of a project: new / fixed, backlog, risk score, MTTR
scan_dependencies Analysis of a manifest, lockfile or CycloneDX SBOM: vulnerable versions + hygiene
get_advisory_status Size and age of the vulnerability database
request_project Called before a review with project: accessible when the token may save reports on it, created for a new project when the user holds projects.create (the user becomes its member), joined for an existing project the user does not read yet when the user holds projects.autojoin (the user reads and writes it), else requested with next_steps (an administrator approves the project, which gives the user access to it); never a token (enrollment); with a project the token reaches, findings_to_fix (min_severity, total, by_severity, proposed, next_steps) when open findings reach the severity to fix, and codebase_review (reasons, last_review_at, next_steps) when a full codebase review is due
list_development_standards / get_development_standards Development standards: catalog, then the standards to apply for technologies or file names
list_rules / reload_rules Active rules (default and custom, stored in the database), loading errors, immediate reload

On the HTTP transport, a restricted token can only use the report tools on its allowed projects; reload_rules is refused to it (see tokens restricted to a project). A token tied to several projects can use the report tools on each of them. A personal MCP token reaches the projects of its user, and save_security_report, propose_finding_status and propose_opengrep_rule only those where the user holds reports.write: for another project, request_project creates it or requests it.

Enrollment server

On the HTTP transport, a client that connects without a token reaches a restricted server, with the same name, without any tool, that only exposes (a token that is unknown, revoked or expired gets a 401 instead, see rejected token):

Item Role
Prompts security-review, api-security-review, configuration-review, codebase-review, dependency-review No argument; tell the user to sign in to the web interface (SECREVIEW_PUBLIC_URL + /ui), to create a personal MCP token and to add it to the host configuration, instead of running the review

The instructions it sends at connection, shown by the host, give the same steps and the address of the web interface, from the URL stored by the Controller server (its SECREVIEW_PUBLIC_URL, or the General page); without it, no link is given.

See enrollment.

Resources

  • report://{report_id}: a stored report;
  • checklist://{domain}: the checklist of a domain;
  • standards://catalog: the catalog of the development standards;
  • standard://{slug}: a development standard.

Stored report

save_security_report receives:

  • project (normalized, see project name), summary;
  • a list of findings: title, severity, description, and optionally cwe, owasp, file_path, line_start, line_end, evidence, recommendation, category;
  • repository, branch, commit_sha, reviewer, scope;
  • review_type: the kind of review, given by each review prompt (see below);
  • author: not needed, the server takes the user of a personal token (see author of a report);
  • checklist_results and scan_rules: the coverage of the review (see review coverage);
  • review_group: the one returned by start_codebase_scan, which links the report to the reports of its scans (see scan started by the agent);
  • files_reviewed: the files the agent read (see review coverage).

Each field is bounded: repository (500 characters), branch (200), commit_sha (64), reviewer (200), and each text (summary, scope, and the description, evidence and recommendation of a finding) to SECREVIEW_MAX_CONTENT_CHARS; a longer value refuses the report.

The risk level of the report is computed (highest severity of the findings). The risk_level parameter can only raise it, never lower it.

A finding already raised by a previous report of the project replaces it and keeps the decision taken on it; reported with a lower severity, it keeps the severity of the previous report. The result gives recurring_findings, carried_decisions and kept_severities (see finding reported again).

Project name

Reports, tokens, roles and gates are grouped by project name. The server normalizes every project name it receives (MCP tools, REST API, pipeline client, CLI), so that the members of a team who name the same repository differently reach the same project:

  • the name is lowercased (after Unicode NFKC normalization);
  • a git remote URL or a path keeps its last segment, without .git;
  • every run of characters other than letters and digits (spaces, dots, underscores, dashes, punctuation) becomes a single -, removed at both ends.
Given name Stored project
security-review-mcp, Security Review MCP, security_review_mcp security-review-mcp
cyr-ius/security-review-mcp, https://github.com/cyr-ius/security-review-mcp.git security-review-mcp
git@github.com:cyr-ius/Security_Review_MCP.git security-review-mcp

A name with no letter or digit, or longer than 200 characters once normalized, is refused. Since only the repository name is kept, two repositories with the same name in different organizations or groups share one project: give one of them a distinct name.

Review type

Each review prompt tells the model which review_type to pass, so the reports and their findings can be told apart and filtered in the web interface and in list_security_reports:

review_type Set by
security-review prompt security-review
api-security-review prompt api-security-review
configuration-review prompt configuration-review
dependency-review prompt dependency-review
codebase-review prompt codebase-review
code-scan security-review-ci scan-code --save
dependency-scan security-review-ci scan-deps --save, security-review-mcp scan-deps --save
other any other review (manual, without a prompt)

The field is optional: a report saved without it has no type. Any other value is refused. The type is declared by the client: it labels and filters reports, it never grants a right nor changes a gate.

Author of a report

The author of a report is the user of the token that saved it: the agent and the CLI do not need to name it. Each report carries two fields:

Field Filled by Value
author the server Username of the web user who owns the personal token (mcp or ci) that saved the report, whatever the client passes. Only for a token without a user (token created by an administrator) is it the value declared by the client (author of save_security_report, --author of the CLI scans), if any; the review prompts ask the agent not to pass it.
submitted_by the server Label of the bearer token that saved the report (empty with stdio and the CLI). The client cannot change it.

author is at most 200 characters: letters, digits, spaces and . @ _ + - ' , only (no Markdown nor HTML, as it is copied into the Markdown export); a blank value is not stored. With a personal token, it is authenticated; declared by the client of a token without a user, it is not, and only says who to talk to. Use it to filter the reports in the web interface; submitted_by says which token actually sent the report. Only a holder of users.manage or tokens.manage sees the author, in the web interface and the REST API; the others see the token label. Once stored, the MCP tools, resources and prompts never return it (author is null in list_security_reports and get_security_report, and absent from the Markdown), and the author argument of list_security_reports is ignored.

Review coverage

The review prompts ask the agent to declare what it actually checked, so that a person can tell a clean review from one that skipped the checklist:

Field Content
checklist_results Each checklist item walked through, with its outcome: ok (verified, nothing found), issue (reported as a finding), not_applicable, not_verifiable (the reviewed code was not enough to judge it)
scan_rules The rule id of every lead returned by scan_code, confirmed or dismissed: an internal rule (PY-004, case-insensitive) or an OpenGrep rule as scan_code returns it (OPENGREP:<id>, the id keeps its case)
files_reviewed The path of every file the agent actually read, relative to the root of the repository (codebase-review prompt)

The server checks them against the active rules and checklists when it stores the report:

  • an unknown checklist item or rule is not stored and is named in the warnings of the answer; the report is never refused for it;
  • the title and domain of each item are taken from the server, not from the agent;
  • every item of a checklist domain the review used but did not report is stored as not_covered, and listed in coverage.not_covered of the answer;
  • a finding rule_id that looks like a rule or checklist id (PY-004, ACME-CL-01) but matches neither gets a warning; advisory ids (GHSA-..., CVE-...) are not checked;
  • a report without any checklist result gets a warning: its coverage is unknown;
  • with a review_group whose code scan is saved, the files with leads of that scan that the agent neither declared in files_reviewed nor cited in a finding are stored as unread leads: the answer gives their number and the first ones (unreviewed_leads), with a warning. Paths are compared without a leading ./ and with / as separator.

At most 500 checklist results, 500 rules and 5,000 files read per report. For a codebase review, the report page also shows the counts of the linked scans (files scanned, with leads, not scanned), the files read and the unread leads, in collapsible lists; get_security_report leaves these lists out of its JSON and the Markdown gives their counts. The coverage is declared by the agent: it shows what the agent says it did, not a proof; a rule of scan_rules cited by no finding is a lead the agent dismissed. The CLI scans declare no coverage. The report page of the web interface and the Markdown export show it.

Status of a finding

A finding is open when it is saved. An agent never closes it: the reviewed code is untrusted input, and a prompt injection in a comment could otherwise lead the agent to dismiss its own findings and unblock the gate. The server also makes hidden text visible in what it hands back to the agent and reports injected instructions (prompt injection).

  • propose_finding_status stores a proposal (fixed, accepted or false_positive) with the agent's reason (10 to 1000 characters, secrets masked) and the label of its token. The status, the posture and the gate do not change. A new proposal replaces the previous one. It is written to the audit log, like the decision that follows. An info finding is an observation, not a risk: accepted is refused for it (an error, like with decide_finding_status). Only a person marks it acknowledged (read): an agent cannot propose it.
  • A person with the findings.triage permission on the project applies or rejects it in the web interface. accepted and false_positive need a reason, an approver (the logged-in user) and an expiry date; from that date the finding counts as open again.

This holds for every token role, admin included: over HTTP, the MCP server has no tool that changes a status.

Decision of the developer in local mode

In local mode (stdio) there is no web interface, but the developer sits at the host. When they state a decision in the conversation ("line 12 of app/db.py is a false positive, the query is bound"), the agent calls decide_finding_status with the findings, the status (fixed, accepted, false_positive, or acknowledged for an info finding), the reason and, to accept a risk, the expiry date the developer gave (at most 50 findings at once). The status does not change yet: the server asks the developer to confirm through the host (MCP elicitation), with a message that lists the findings, the status, the reason and the expiry date.

  • The answer comes from the developer through the host, not from the model: a prompt injection can make the agent call the tool, not confirm the decision.
  • Declined or cancelled: nothing changes (applied: false). A host without elicitation gets an error and nothing changes: use propose_finding_status.
  • Confirmed: the decision follows the same rules as in the web interface (reason and expiry date of an acceptance), the approver is local:<user of the workstation> and the decision is written to the audit log.

The tool is only registered by security-review-mcp local (and serve --transport stdio): over HTTP it does not exist and decisions stay in the web interface.

Secret masking

Secrets found in summary, description, evidence and recommendation (passwords, tokens, SECRET_KEY, AWS keys, GitHub, GitLab, Slack, Google, Stripe and npm tokens, JWT, private keys, credentials in URLs) are masked before storage. Permission levels (read, write, none, as in the GitHub Actions id-token: write) are not secrets and are kept. It is a safety net: the agent must also avoid copying them.