feat: MCP 서버 추가 — AI 에이전트용 웹 검사 도구
Node.js + TypeScript MCP 서버 구현: - 5개 도구: inspect_page, inspect_site, get_inspection, get_issues, get_history - 듀얼 트랜스포트: stdio (Claude Desktop) + Streamable HTTP (Docker/원격) - i18n 지원 (영어/한국어) - Docker 통합 (port 3100) + Nginx /mcp 프록시 - Smithery 레지스트리 배포 설정 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
13
mcp/dist/tools/inspect-site.js
vendored
Normal file
13
mcp/dist/tools/inspect-site.js
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
import { t } from "../i18n/index.js";
|
||||
export async function inspectSite(client, url, lang, maxPages, maxDepth, standard) {
|
||||
const result = await client.startSiteInspection(url, maxPages, maxDepth, standard);
|
||||
const lines = [];
|
||||
lines.push(`# ${t("inspect_site.started", lang)}`);
|
||||
lines.push(`**URL**: ${url}`);
|
||||
lines.push(`**Site Inspection ID**: ${result.site_inspection_id}`);
|
||||
lines.push(`**Status**: ${result.status}`);
|
||||
lines.push("");
|
||||
lines.push(`> ${t("inspect_site.follow_up_hint", lang, { id: result.site_inspection_id })}`);
|
||||
return lines.join("\n");
|
||||
}
|
||||
//# sourceMappingURL=inspect-site.js.map
|
||||
Reference in New Issue
Block a user