<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: SecVet</title>
    <description>The latest articles on DEV Community by SecVet (@secvet_com).</description>
    <link>https://dev.to/secvet_com</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4281599%2Fad1f923f-5077-4eb8-98a6-8de505b55af6.png</url>
      <title>DEV Community: SecVet</title>
      <link>https://dev.to/secvet_com</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/secvet_com"/>
    <language>en</language>
    <item>
      <title>I Built a Remote MCP Server So Cursor &amp; Claude Code Can Fix Real Pentest Findings (with cURL PoCs)</title>
      <dc:creator>SecVet</dc:creator>
      <pubDate>Fri, 04 Dec 2026 03:05:14 +0000</pubDate>
      <link>https://dev.to/secvet_com/i-built-a-remote-mcp-server-so-cursor-claude-code-can-fix-real-pentest-findings-with-curl-pocs-3i60</link>
      <guid>https://dev.to/secvet_com/i-built-a-remote-mcp-server-so-cursor-claude-code-can-fix-real-pentest-findings-with-curl-pocs-3i60</guid>
      <description>&lt;p&gt;Traditional web security testing has a broken developer experience.&lt;/p&gt;

&lt;p&gt;On one side, legacy DAST scanners rely heavily on static signatures and flood engineering teams with hundreds of noisy, unverified alerts ("missing header", "possible SQLi heuristic") that nobody trusts. On the other side, manual penetration tests cost $10,000–$25,000, take 2–4 weeks, and hand you a static PDF right before your next release.&lt;/p&gt;

&lt;p&gt;Even when a real vulnerability &lt;em&gt;is&lt;/em&gt; found, the remediation loop is still painfully manual: read a ticket, reproduce it locally, hunt down the route handler in your repo, write a patch, deploy to staging, and ask someone to re-verify.&lt;/p&gt;

&lt;p&gt;Over the past few months, I built &lt;strong&gt;&lt;a href="https://secvet.com" rel="noopener noreferrer"&gt;SecVet&lt;/a&gt;&lt;/strong&gt;—an autonomous AI web &amp;amp; API penetration testing platform—and exposed it as a zero-install &lt;strong&gt;Streamable HTTP Remote MCP Server (&lt;code&gt;https://api.secvet.com/mcp&lt;/code&gt;)&lt;/strong&gt; so &lt;strong&gt;Cursor&lt;/strong&gt;, &lt;strong&gt;Claude Code&lt;/strong&gt;, and &lt;strong&gt;Antigravity&lt;/strong&gt; can close the entire &lt;code&gt;Scan → Reproduce → Patch → Re-Test&lt;/code&gt; loop directly inside the IDE.&lt;/p&gt;

&lt;p&gt;Here is how the architecture works under the hood, the security guardrails we had to build so AI agents don't shoot themselves in the foot, and a real 39-finding benchmark against OWASP Juice Shop.&lt;/p&gt;




&lt;h2&gt;
  
  
  1. Why Proof-Based Evidence Matters Before Hooking Up an AI Agent
&lt;/h2&gt;

&lt;p&gt;If you feed 200 false-positive scanner alerts into Cursor or Claude Code, your coding agent will happily refactor working code to fix bugs that don't exist.&lt;/p&gt;

&lt;p&gt;To make AI-assisted remediation safe and useful, &lt;strong&gt;every finding surfaced by SecVet must pass a 4-part proof chain&lt;/strong&gt;:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Discovery Path&lt;/strong&gt; — how the autonomous agent reached the endpoint or state.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Exact Affected Location&lt;/strong&gt; — concrete URL, HTTP method, and parameter.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reproducible &lt;code&gt;cURL&lt;/code&gt; PoC&lt;/strong&gt; — a copyable, non-destructive proof-of-concept command.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Raw HTTP Response Excerpt&lt;/strong&gt; — captured response evidence proving exploitability.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Instead of running blind regexes, isolated ephemeral scanner workers reason across &lt;strong&gt;6 core security testing directions&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Attack Surface &amp;amp; Asset Exposure&lt;/strong&gt; (&lt;code&gt;SURFACE&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Transport TLS &amp;amp; Security Config&lt;/strong&gt; (&lt;code&gt;CONFIG&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Authentication &amp;amp; Session Security&lt;/strong&gt; (&lt;code&gt;AUTH&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Input Validation &amp;amp; Injection&lt;/strong&gt; (&lt;code&gt;INPUT&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;API &amp;amp; Access Control / BOLA &amp;amp; IDOR&lt;/strong&gt; (&lt;code&gt;API&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Business Logic &amp;amp; Client Security&lt;/strong&gt; (&lt;code&gt;LOGIC&lt;/code&gt;)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For example, during a &lt;strong&gt;7m 21s Deep Scan&lt;/strong&gt; against an authorized OWASP Juice Shop instance (&lt;a href="https://secvet.com/sample-report" rel="noopener noreferrer"&gt;live public 39-finding report here, no login required&lt;/a&gt;), the agent confirmed &lt;strong&gt;4 Critical&lt;/strong&gt; and &lt;strong&gt;13 High&lt;/strong&gt; findings—including unauthenticated user hash disclosure and mass-assignment privilege escalation:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Example verified finding: Mass Assignment allows self-assigned admin role&lt;/span&gt;
curl -i -X POST -H &lt;span class="s2"&gt;"Content-Type: application/json"&lt;/span&gt; \
  -d &lt;span class="s1"&gt;'{"email":"attacker@test.local","password":"Password123!","role":"admin"}'&lt;/span&gt; \
  &lt;span class="s2"&gt;"https://juice-shop.demo.secvet.dev/api/Users"&lt;/span&gt;

&lt;span class="c"&gt;# Captured response excerpt:&lt;/span&gt;
&lt;span class="c"&gt;# HTTP/1.1 201 Created · {"status":"success","data":{"id":24,"email":"attacker@test.local","role":"admin"}}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;When a coding agent receives &lt;em&gt;that&lt;/em&gt; exact &lt;code&gt;cURL&lt;/code&gt; PoC plus the HTTP response, it doesn't have to guess what's broken—it immediately finds the registration handler, whitelists allowed fields via an explicit DTO, and verifies the fix locally.&lt;/p&gt;




&lt;h2&gt;
  
  
  2. Why We Built a Streamable HTTP Remote MCP Server (Zero Local Install)
&lt;/h2&gt;

&lt;p&gt;Many early MCP integrations require developers to clone a repo, install Node/Python dependencies, or run a local &lt;code&gt;stdio&lt;/code&gt; wrapper. For a cloud AppSec platform, that's unnecessary friction.&lt;/p&gt;

&lt;p&gt;We implemented a hosted &lt;strong&gt;Streamable HTTP JSON-RPC 2.0 MCP endpoint&lt;/strong&gt; at &lt;code&gt;https://api.secvet.com/mcp&lt;/code&gt; exposing &lt;strong&gt;4 focused tools&lt;/strong&gt;:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tool&lt;/th&gt;
&lt;th&gt;Required Scope&lt;/th&gt;
&lt;th&gt;Purpose&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;secvet_list_targets&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;scans:read&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;List verified target domains and their latest scan IDs &amp;amp; scores&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;secvet_get_findings&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;scans:read&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Fetch proof-verified findings with &lt;code&gt;cURL&lt;/code&gt; PoCs, raw HTTP excerpts, and fix guidance&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;secvet_trigger_scan&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;scans:write&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Trigger a Quick or Deep cloud re-scan after deploying a patch&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;secvet_get_scan_status&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;scans:read&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Poll live scan progress, Security Posture Score, Grade, and CI gate status&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  Connecting Cursor / Antigravity (&lt;code&gt;mcp.json&lt;/code&gt;)
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"secvet"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;"url"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://api.secvet.com/mcp"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"headers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nl"&gt;"Authorization"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Bearer sv_live_YOUR_API_KEY"&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Connecting Claude Code CLI
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;claude mcp add --transport http secvet https://api.secvet.com/mcp \
  --header &lt;span class="s2"&gt;"Authorization: Bearer sv_live_YOUR_API_KEY"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Once connected, you simply prompt your IDE:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;"Use the &lt;code&gt;secvet&lt;/code&gt; MCP server to fetch open Critical and High findings from my latest scan. Inspect the reproducible cURL PoC for each finding, locate the root cause in this repository, propose a minimal patch for my review, and explain how to verify it with tests."&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  3. Five Security Guardrails We Built for Agent-Driven AppSec
&lt;/h2&gt;

&lt;p&gt;Building a security tool that connects directly to autonomous coding agents introduces its own threat model. Here are the five engineering boundaries we enforced from day one:&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Mandatory Target Ownership Verification
&lt;/h3&gt;

&lt;p&gt;No scan can ever be dispatched against an unverified host. Every target must pass &lt;strong&gt;DNS TXT (&lt;code&gt;_secvet-verify.&amp;lt;domain&amp;gt;&lt;/code&gt;)&lt;/strong&gt;, &lt;strong&gt;&lt;code&gt;.well-known/secvet-verify.txt&lt;/code&gt;&lt;/strong&gt;, or &lt;strong&gt;HTML &lt;code&gt;&amp;lt;meta&amp;gt;&lt;/code&gt; tag&lt;/strong&gt; verification before scanning begins.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Fail-Closed Auth + Public Protocol Discovery
&lt;/h3&gt;

&lt;p&gt;MCP directories and inspectors expect &lt;code&gt;initialize&lt;/code&gt; and &lt;code&gt;tools/list&lt;/code&gt; to answer cleanly for tool discovery, while tenant data must be locked down tightly. We split the endpoint with a strict static allowlist:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Only 4 zero-DB discovery methods (&lt;code&gt;initialize&lt;/code&gt;, &lt;code&gt;notifications/initialized&lt;/code&gt;, &lt;code&gt;ping&lt;/code&gt;, &lt;code&gt;tools/list&lt;/code&gt;) are allowed without credentials (rate-limited per IP).&lt;/li&gt;
&lt;li&gt;Any &lt;code&gt;tools/call&lt;/code&gt;, unknown method, JSON-RPC batch array, or invalid Bearer token fails closed with &lt;code&gt;HTTP 401&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Authenticated requests bind a dedicated PostgreSQL connection with &lt;strong&gt;&lt;code&gt;SET ROLE secvet_app&lt;/code&gt;&lt;/strong&gt; and &lt;strong&gt;&lt;code&gt;FORCE RLS&lt;/code&gt; (&lt;code&gt;app.current_org&lt;/code&gt;)&lt;/strong&gt;, so cross-tenant queries are blocked at the database layer.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  3. Least-Privilege API Key Scopes
&lt;/h3&gt;

&lt;p&gt;Developers can issue &lt;strong&gt;Read-Only MCP keys (&lt;code&gt;scans:read&lt;/code&gt;)&lt;/strong&gt;—available even on the Free tier—so their IDE can pull findings and draft patches without being able to spend credits or trigger scans. Only keys explicitly granted &lt;code&gt;scans:write&lt;/code&gt; can call &lt;code&gt;secvet_trigger_scan&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Anti-Loop Scan Throttling
&lt;/h3&gt;

&lt;p&gt;Coding agents love retrying things in loops. To prevent an agent from burning credits or hammering a staging server, &lt;code&gt;secvet_trigger_scan&lt;/code&gt; enforces:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Duplicate active-scan blocking (if a scan is already running for that target, it returns the active &lt;code&gt;scan_id&lt;/code&gt; and instructs the agent to poll &lt;code&gt;secvet_get_scan_status&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;A hard cap of &lt;strong&gt;6 scans per target per hour&lt;/strong&gt; plus a 60 req/min per-org sliding window.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  5. Prompt Injection Boundaries &amp;amp; Human-in-the-Loop Diffs
&lt;/h3&gt;

&lt;p&gt;HTTP response excerpts captured from scanned targets are untrusted external data. We bound and truncate excerpts (&lt;code&gt;≤ 700 chars&lt;/code&gt;) inside structured JSON fields and treat every AI-generated security patch as a &lt;strong&gt;human-reviewed PR&lt;/strong&gt;, never an unattended auto-merge.&lt;/p&gt;




&lt;h2&gt;
  
  
  4. Mapping Findings to Compliance &amp;amp; CI/CD Gates
&lt;/h2&gt;

&lt;p&gt;Once teams fix the Critical/High vulnerabilities in their IDE, they usually still need two things to ship enterprise deals:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Audit-ready compliance documentation&lt;/strong&gt; — SecVet automatically maps verified findings to &lt;strong&gt;OWASP Top 10:2021&lt;/strong&gt;, &lt;strong&gt;OWASP API Top 10:2023&lt;/strong&gt;, &lt;strong&gt;PCI-DSS v4.0&lt;/strong&gt;, &lt;strong&gt;SOC 2 (CC6/CC7)&lt;/strong&gt;, &lt;strong&gt;ISO/IEC 27001:2022&lt;/strong&gt;, &lt;strong&gt;GDPR&lt;/strong&gt;, and &lt;strong&gt;HIPAA&lt;/strong&gt; with PDF &amp;amp; DOCX exports.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Regression prevention&lt;/strong&gt; — a lightweight GitHub Actions gate that runs a Quick Scan on staging deploys and fails the build if any Critical or High finding reappears.&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  Try It Yourself (Free Tier + Open MCP Repo)
&lt;/h2&gt;

&lt;p&gt;If you want to inspect the exact output format or test the Remote MCP workflow in Cursor / Claude Code:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Live 39-Finding Interactive Sample Report (no login):&lt;/strong&gt; &lt;a href="https://secvet.com/sample-report" rel="noopener noreferrer"&gt;secvet.com/sample-report&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Remote MCP Docs &amp;amp; Examples Repo:&lt;/strong&gt; &lt;a href="https://github.com/secvetcom/secvet-mcp" rel="noopener noreferrer"&gt;github.com/secvetcom/secvet-mcp&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Try Free (2 scan credits + read-only MCP key, no card required):&lt;/strong&gt; &lt;a href="https://secvet.com" rel="noopener noreferrer"&gt;secvet.com&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I'd love to hear from other developers building MCP workflows around security, testing, or DevOps—especially how you handle prompt-injection boundaries and human review gates when letting coding agents touch security-sensitive code!&lt;/p&gt;

</description>
      <category>mcp</category>
      <category>security</category>
      <category>ai</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
