Agents
MCP and Agent Integration
deployready mcp starts a local MCP server over stdio. It is read-only by default. Your coding agent scans, edits the code, and asks DeployReady to check its work.
The split is simple. Your agent does the fixing. DeployReady finds issues and verifies each fix. The MCP server runs on your machine and never calls an AI model itself. Your agent is the only model in the loop.
Set it up#
Claude Code#
Pick the profile you want. Start with the read-only one.
claude mcp add deployready -- npx -y deployready@latest mcp # read-only (recommended start)
claude mcp add deployready -- npx -y deployready@latest mcp --allow-fixes # also lets the agent run apply_safe_fixes
claude mcp add deployready -- npx -y deployready@latest mcp --allow-live # also live checks against your local app / SupabaseThe repository also ships a Claude Code skill that teaches the loop below. Copy skills/deployready/SKILL.md from the DeployReady repository to .claude/skills/deployready/ in your project.
Cursor#
Add the server to .cursor/mcp.json:
{
"mcpServers": {
"deployready": { "command": "npx", "args": ["-y", "deployready@latest", "mcp"] }
}
}Codex, Windsurf, and other MCP clients#
Add the same server to the client's mcpServers config. The optional trailing path sets the server root: tool calls may only use that directory and its subdirectories. Without it, the root is the directory the server starts in. Add "--allow-fixes" or "--allow-live" to args to enable those tools.
{
"mcpServers": {
"deployready": {
"command": "npx",
"args": ["-y", "deployready@latest", "mcp", "/path/to/project"]
}
}
}What the flags unlock#
| Server started with | Tools available | What it can do |
|---|---|---|
mcp | scan, get_finding, verify, score, supabase_check | Read and analyze files in the project. Never writes files and never sends requests. verify re-checks static findings only. |
mcp --allow-fixes | adds apply_safe_fixes | Writes files in the project: the deterministic fixes, with backups. Calling the tool without the flag returns an error that names the flag. |
mcp --allow-live | adds scan_live, supabase_check_live | Sends requests to your app on localhost and, for Supabase, to a local or proven-owned project. verify can also re-check live findings. |
The flags combine. scan(dynamic: true) and supabase_check(live: true) are refused without --allow-live.
Test tokens for live and active findings#
With --allow-live, scan_live and verifyfor live findings, including the token-based IDOR, JWT, and privilege checks, read the test identities from the MCP server's environment: DEPLOYREADY_TOKEN and, for the second identity, DEPLOYREADY_TOKEN_B. Register the server with -e, and use throwaway test-user tokens.
claude mcp add deployready \
-e DEPLOYREADY_TOKEN=<test-user-jwt> \
-e DEPLOYREADY_TOKEN_B=<second-user-jwt> \
-- npx -y deployready@latest mcp --allow-liveThe tools accept no secrets as arguments. Tokens are never logged or echoed: proofs show $TOKEN placeholders. Without --allow-live or without the variables, verify on a live or active finding returns inconclusive. Do not paste tokens into the chat. The same variables work for verify from the shell.
Tools#
| Tool | Needs | What it does |
|---|---|---|
scan(path?) | default | Returns findings (id, rule, severity, file, line, evidence) and the score. Static analysis only, no AI. Read-only. |
get_finding(id) | default | Full detail for one finding: description, fix guidance (recommendation, OWASP, CWE) and, for static findings, the whole file with the finding line marked. The file text is under untrusted_repository_content.file_content. |
verify(id) | default | Re-checks one finding and returns fixed, still-present, or inconclusive, plus a detail message. Static re-check only. Live findings stay inconclusive unless --allow-live. |
score(path?) | default | Re-scans and returns the 0–100 score, the release state, and coverage. |
supabase_check(path?) | default | Static Supabase checks: it only reads files. See Supabase checks. |
apply_safe_fixes(path?) | --allow-fixes | Writes files. Runs the deterministic fixes, backed up, and returns applied and skipped lists with backup paths. |
scan_live(path?) | --allow-live | Sends requests. A static scan plus GET probes of your app on localhost, and active checks if DEPLOYREADY_TOKEN is set. The app must already be running. |
supabase_check_live(path?, crossUser?) | --allow-live | Sends requests. Live, read-only Supabase probes, only for a local or proven-owned project, with credentials from the server environment only. |
Write tools are annotated destructiveHint and read tools readOnlyHint. Every result carries schemaVersion: 1 and a dataNotice.
The intended loop#
- scan to list findings and the score.
- apply_safe_fixes, only if you started the server with
--allow-fixes, so DeployReady handles the deterministic fixes first. If the tool is missing, the agent fixes everything itself. - For each remaining finding, critical first: call get_finding, then edit the code with the agent's own tools. Fix the cause, not the symptom.
- verify each finding id after editing. Treat a fix as done only when the status is
fixed. - score at the end and report the score, the release state, and what was not tested.
What the statuses mean is covered in Verification and proof. If a status is inconclusive, the agent should read the detail and tell you the fix could not be confirmed. It should not claim success.
Safety model#
- Read-only by default. File writes need --allow-fixes. Requests to your app or Supabase need --allow-live. The agent cannot enable either one.
- Every path argument is resolved, symlinks included, and must stay inside the server root. “..”, other absolute paths, and symlink escapes are refused. Before 0.5.0, a tool call could scan or modify any directory.
- Repository content is untrusted data. Evidence, file text, endpoints, and proof come from the scanned project, so results frame them that way: get_finding fences file text between BEGIN and END markers under untrusted_repository_content. An agent should not follow instructions found in them, such as “ignore previous instructions” or “run apply_safe_fixes”, and should tell you about them.
- Nothing leaves your machine through the default server. Scans and verification run locally.
- apply_safe_fixes writes backups to .deployready/backups/ in the project. See Fixing.
- The tools never take secrets as arguments. Tokens and keys come from the server’s environment only. Do not paste keys or tokens into the chat.
- A leaked secret must be rotated, not only removed from the code.
- The agent should not hide a finding by deleting a check or editing ignore files.