{"slug": "make-your-ai-coding-agent-check-security-headers-and-ssl-expiry-before-it-says", "title": "Make your AI coding agent check security headers and SSL expiry before it says \"deployed\"", "summary": "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.", "body_md": "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.\n\nDisclosure: 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.\n\n| Check | How it's reported | Score impact (security, max 25) | \n|---|---|---|\n| HTTPS | Critical issue if the URL isn't https | -10 | \n| SSL certificate | `https_valid` and`ssl_days_remaining` ; high-severity issue under 14 days | -6 when < 14 days | \n| Strict-Transport-Security | \"Missing header\" when absent | -4 | \n| Content-Security-Policy | same | -4 | \n| X-Frame-Options | same | -3 | \n| X-Content-Type-Options | same | -2 | \n| Referrer-Policy | same | -2 | \n| Permissions-Policy | same | -1 | \n| Server header with a version | \"Server version exposed\" | -1 | \n\nThe same `scan_website` call also scores SEO, performance, mobile readiness and broken links.\n\n`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):\n\n```\n{\n \"url\": \"https://manhourplan.com/\",\n \"score\": 91,\n \"grade\": \"A\",\n \"categories\": {\"seo\": 28, \"performance\": 22, \"security\": 21, \"mobile\": 10, \"content_links\": 10},\n \"metrics\": {\"https\": true, \"https_valid\": true, \"ssl_days_remaining\": 57, \"response_ms\": 132},\n \"issues\": [\n  {\"cat\": \"security\", \"sev\": \"medium\", \"msg\": \"Missing header: CSP\"},\n  {\"cat\": \"seo\", \"sev\": \"low\", \"msg\": \"Title length 77 chars (ideal 30-60)\"},\n  {\"cat\": \"performance\", \"sev\": \"low\", \"msg\": \"No Cache-Control header on HTML\"}\n ]\n}\n```\n\nEndpoint: `https://manhourplan.com/doctor/mcp` (Streamable HTTP, official registry name `com.manhourplan/sitedoctor`).\n\nClaude Code:\n\n```\nclaude mcp add --transport http sitedoctor https://manhourplan.com/doctor/mcp\n```\n\nCursor (`~/.cursor/mcp.json`) or any client that takes a remote URL:\n\n```\n{ \"mcpServers\": { \"sitedoctor\": { \"url\": \"https://manhourplan.com/doctor/mcp\" } } }\n```\n\nThen 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.\n\nIf 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](https://manhourplan.com/sitedoctor/?ref=devto_d). Full guide: [original post](https://manhourplan.com/tools/security-headers-ssl-check-mcp/?ref=devto_d).", "url": "https://wpnews.pro/news/make-your-ai-coding-agent-check-security-headers-and-ssl-expiry-before-it-says", "canonical_source": "https://dev.to/manhourplan/make-your-ai-coding-agent-check-security-headers-and-ssl-expiry-before-it-says-deployed-417a", "published_at": "2026-11-21 13:03:41+00:00", "updated_at": "2026-11-21 13:11:56.318150+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "agent-protocols", "developer-tools", "mlops"], "entities": ["SiteDoctor", "Claude Code", "Cursor", "manhourplan.com"], "also_reported_by": [], "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.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/make-your-ai-coding-agent-check-security-headers-and-ssl-expiry-before-it-says", "markdown": "https://wpnews.pro/news/make-your-ai-coding-agent-check-security-headers-and-ssl-expiry-before-it-says.md", "text": "https://wpnews.pro/news/make-your-ai-coding-agent-check-security-headers-and-ssl-expiry-before-it-says.txt", "jsonld": "https://wpnews.pro/news/make-your-ai-coding-agent-check-security-headers-and-ssl-expiry-before-it-says.jsonld"}}