Skip to content
StaySecure

For agents

MCP

Model Context Protocol access for coding agents. Prefer MCP when the caller is Cursor, Claude Code, or another agent that should create projects and drive scans.

Auth and endpoint

Create a dedicated MCP key in Settings → MCP integration. Authenticate every request with:

Authorization: Bearer ss_mcp_…

Endpoint: https://staysecure.sh/mcp

Do not reuse REST ss_live_ keys here. See Keys & access.

Read vs write

  • read — all tools marked read-only below.
  • read_write — also create_project, update_project, delete_project, start_scan, and update_finding_status.

Tools

Tool Ability Purpose
get_workspace read Get the workspace bound to the current MCP key.
list_projects read List projects in the workspace.
get_project read Get details for a project by id.
update_project read_write Update branch, scan-on-push, schedule, and related settings.
delete_project read_write Remove a project from the workspace.
list_vcs_installations read List connected VCS installs (GitHub, GitLab, Bitbucket).
list_repositories read List repositories available through a VCS installation.
list_branches read List branches for a repository.
create_project read_write Create or connect a project from a VCS repository. MCP-only; the REST API cannot create projects.
start_scan read_write Queue a manual security scan for a project.
list_scans read List recent scans for a project.
get_scan read Get status and details for a scan.
list_findings read List findings (defaults to non false-positive, ordered by severity).
get_finding read Get full finding details, including remediation guidance.
update_finding_status read_write Set status to open, resolved, needs_review, or false_positive.
list_reports read List scan reports for a project.
get_report read Get a scan report including markdown body.

continue_url

Several tools return a continue_url when the agent cannot finish in-band:

  • No VCS installation yet — open the URL to connect GitHub / GitLab / Bitbucket, then retry.
  • create_project without repo access — install or grant access, then call create_project again.
  • After a successful create — open the project in the dashboard if you want the UI.

Recommended agent workflow

  1. get_workspace
  2. list_vcs_installations → connect via continue_url if needed
  3. list_repositories / list_branches
  4. create_project
  5. start_scan → poll get_scan
  6. list_findings → fix locally → update_finding_status
  7. Optional: list_reports / get_report

Setup walkthrough: Onboard an agent. For HTTP without MCP: REST API.