feat: MCP 서버에 SVG 아이콘 엔드포인트 추가

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
jungwoo choi
2026-02-15 09:55:35 +09:00
parent c8f3d3a6ea
commit 3227091c58

View File

@ -151,6 +151,18 @@ async function startHttp(server: ReturnType<typeof createServer>, port: number)
}); });
}); });
// Server icon
app.get("/icon.svg", (_req, res) => {
res.type("image/svg+xml").send(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" fill="none">
<rect width="64" height="64" rx="14" fill="#1a1a2e"/>
<circle cx="32" cy="28" r="14" stroke="#00d2ff" stroke-width="2.5" fill="none"/>
<path d="M26 28l4 4 8-8" stroke="#00d2ff" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/>
<rect x="14" y="48" width="36" height="3" rx="1.5" fill="#00d2ff" opacity="0.3"/>
<rect x="14" y="44" width="28" height="3" rx="1.5" fill="#00d2ff" opacity="0.5"/>
<rect x="14" y="52" width="20" height="3" rx="1.5" fill="#00d2ff" opacity="0.2"/>
</svg>`);
});
// Health check // Health check
app.get("/health", (_req, res) => { app.get("/health", (_req, res) => {
res.json({ status: "ok", transport: "http", api_url: API_URL }); res.json({ status: "ok", transport: "http", api_url: API_URL });