cd /news/ai-agents/make-your-ai-coding-agent-check-secu… · home › topics › ai-agents › article
[ARTICLE · art-173775] src=dev.to ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

Make your AI coding agent check security headers and SSL expiry before it says "deployed"

A developer who runs SiteDoctor released an MCP server that lets coding and ops agents run a pre-deploy check on HTTPS, SSL certificate expiry and standard security headers before declaring a deployment done. The scan_website tool reports missing headers such as CSP, HSTS and X-Frame-Options with weighted score deductions, and flags certificates expiring within 14 days; the author's own homepage scored 91 (grade A) but was flagged for a missing CSP header. The server is available at a Streamable HTTP endpoint with a free tier of 25 credits, enough for about eight full scans at 3 credits each, with paid packs from $9 to $99.

key takeaway

Adding a post-deploy MCP check that scores HTTPS, SSL expiry and six security headers catches failures like a missing CSP header or a certificate under 14 days from expiry that a passing build does not.

by read2 min views1 publishedNov 21, 2026

Coding and ops agents are happy to call a deploy "done" once the build passes. A quick last check catches the boring failures that bite later: the site isn't on HTTPS, the certificate expires next week, or the standard security headers are missing.

Disclosure: I run SiteDoctor, the MCP server used below. It has a free tier (25 credits, no signup), and this post shows exactly what it checks and what it doesn't.

Check How it's reported Score impact (security, max 25)
HTTPS Critical issue if the URL isn't https -10
SSL certificate https_valid andssl_days_remaining ; high-severity issue under 14 days -6 when < 14 days
Strict-Transport-Security "Missing header" when absent -4
Content-Security-Policy same -4
X-Frame-Options same -3
X-Content-Type-Options same -2
Referrer-Policy same -2
Permissions-Policy same -1
Server header with a version "Server version exposed" -1

The same scan_website call also scores SEO, performance, mobile readiness and broken links.

scan_website({"url": "https://manhourplan.com/"}), captured from the live server on 2026-11-21. My own homepage was missing a CSP header, and the scan said so (trimmed):

{
 "url": "https://manhourplan.com/",
 "score": 91,
 "grade": "A",
 "categories": {"seo": 28, "performance": 22, "security": 21, "mobile": 10, "content_links": 10},
 "metrics": {"https": true, "https_valid": true, "ssl_days_remaining": 57, "response_ms": 132},
 "issues": [
  {"cat": "security", "sev": "medium", "msg": "Missing header: CSP"},
  {"cat": "seo", "sev": "low", "msg": "Title length 77 chars (ideal 30-60)"},
  {"cat": "performance", "sev": "low", "msg": "No Cache-Control header on HTML"}
 ]
}

Endpoint: https://manhourplan.com/doctor/mcp (Streamable HTTP, official registry name com.manhourplan/sitedoctor).

Claude Code:

claude mcp add --transport http sitedoctor https://manhourplan.com/doctor/mcp

Cursor (~/.cursor/mcp.json) or any client that takes a remote URL:

{ "mcpServers": { "sitedoctor": { "url": "https://manhourplan.com/doctor/mcp" } } }

Then ask the agent to call register_free_key and pass the returned key as api_key. A full scan costs 3 credits, so the free key covers about 8 scans.

If you need more than the free credits, packs are $9 (1,000), $29 (10,000) and $99 (100,000), paid by card on the SiteDoctor page. Full guide: original post.

── more in #ai-agents 4 stories · sorted by recency
── more on @sitedoctor 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/make-your-ai-coding-…] indexed:0 read:2min 2026-11-21 · —