web_ssl_check
Check SSL certificate details for any domain to verify security status and expiration dates.
Instructions
Check SSL certificate details for a domain
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | Domain name (e.g. github.com) |
Implementation Reference
- src/modules/web.ts:43-52 (handler)The implementation of the 'web_ssl_check' tool handler using fetch to check HTTPS status and security headers.
server.tool("web_ssl_check", "Check SSL certificate details for a domain", { domain: z.string().describe("Domain name (e.g. github.com)") }, async ({ domain }) => { try { const res = await fetch(`https://${domain}`, { method: "HEAD" }); return { content: [{ type: "text", text: `**SSL Check:** ${domain}\nHTTPS: ${res.ok ? "VALID" : "ERROR"}\nStatus: ${res.status}\nHeaders: ${[...res.headers.entries()].filter(([k]) => k.includes("strict") || k.includes("security")).map(([k, v]) => `${k}: ${v}`).join("\n") || "No security headers"}` }] }; } catch (e: any) { return { content: [{ type: "text", text: `**SSL Check:** ${domain}\nError: ${e.message}` }] }; } });