For agents
Onboard an agent
Give a coding agent a StaySecure MCP key so it can connect projects, start scans, and help you close findings from the editor.
Fast path
From a project directory, many setups use:
npx staysecure@latest init
That helper wires StaySecure into your agent when available. If you prefer to configure by hand, follow the steps below.
1. Create an MCP key
In the app, open Settings → MCP integration and create a key. Keys use the ss_mcp_ prefix. Choose read_write if the agent should create projects and start scans. Details: Keys & access.
2. Point the agent at StaySecure MCP
Endpoint: https://staysecure.sh/mcp
Authenticate every request with:
Authorization: Bearer ss_mcp_…
Cursor example
Add a StaySecure MCP server in Cursor’s MCP settings with the URL above and the Bearer header (or the equivalent auth field your Cursor build expects). Restart or reload MCP after saving.
Claude Code / other MCP clients
Register a remote MCP server pointing at https://staysecure.sh/mcp with the same Bearer token. Exact JSON shape varies by client; the required pieces are always the URL and the ss_mcp_ secret.
3. Suggested first prompt
Help me connect this project to StaySecure using MCP, configure security scanning, and run my first scan. Ask for approval before making changes.
What the agent should do
get_workspace— confirm which workspace the key belongs to.list_vcs_installations/list_repositories— if empty, open anycontinue_urlto connect GitHub (or other VCS) in the browser, then retry.create_project— connect the repo; opencontinue_urlwhen StaySecure still needs VCS access.start_scan/get_scan— run and wait for completion.list_findings/get_finding— fix in the local tree, thenupdate_finding_status.
Ask the agent to confirm before create, delete, scan start, or status changes unless you explicitly want unattended write access.
Dashboard vs agent
Use the dashboard for billing, member invites, and browsing UI. Use the agent when you want security work inside the same loop as coding. Full tool list: MCP. For CI without an agent, use the REST API.