HrefGate
Lint hreflang: codes, x-default, self-reference, canonical, return links. Never fetches URLs.
사용해야 할까요
품질 및 안전성
도구 정의와 프로토콜 준수에 대한 자동 분석을 기반으로 합니다.
컨텍스트 비용
이는 서버의 도구가 모델의 컨텍스트에 로드될 때마다 소비되는 대략적인 토큰 수입니다. 수치가 높을수록 다른 작업에 사용할 수 있는 주의가 줄어듭니다.
설치
원클릭 설치
`claude_desktop_config.json` 파일에 다음을 추가하세요:
{
"mcpServers": {
"hrefgate": {
"url": "https://hrefgate.mike-tusa.workers.dev/mcp"
}
}
}원격 엔드포인트
https://hrefgate.mike-tusa.workers.dev/mcpstreamable-http할 수 있는 일
도구 목록
도구 (1)
🟢lint_hreflang(input, page_url, include_raw)
Lint hreflang annotations for international SEO. Accepts pasted text (not a URL; this tool never fetches anything): page HTML with <link rel="alternate" hreflang> tags, an XML sitemap with xhtml:link alternates, or a JSON set {"pages":[{"url","canonical","alternates":[{"hreflang","href"}]}]}. Checks language/script/region codes, x-default, self-reference, canonical conflicts, duplicates and reciprocal return links. Returns valid true/false, counts, the codes found, and up to 25 issues with paths, messages and suggested fixes. Read-only. Same engine as the HrefGate JSON API (POST /api/lint).
입력 스키마
{
"type": "object",
"properties": {
"input": {
"type": "string",
"minLength": 1,
"maxLength": 60000,
"description": "Page HTML, sitemap XML, or JSON {\"pages\":[{\"url\":\"https://example.com/en/\",\"alternates\":[{\"hreflang\":\"en\",\"href\":\"https://example.com/en/\"}]}]}."
},
"page_url": {
"type": "string",
"maxLength": 2048,
"description": "Absolute URL of the pasted HTML page (HTML input only). Enables self-reference and canonical checks."
},
"include_raw": {
"type": "boolean",
"default": false,
"description": "Also return the full /api/lint JSON (all issues) in structuredContent.raw."
}
},
"required": [
"input"
],
"additionalProperties": false
}출력 스키마
{
"type": "object",
"properties": {
"valid": {
"type": "boolean"
},
"errors": {
"type": "number"
},
"warnings": {
"type": "number"
},
"infos": {
"type": "number"
},
"pages": {
"type": "number"
},
"alternates": {
"type": "number"
},
"codes": {
"type": "array",
"items": {
"type": "string"
}
},
"issues": {
"type": "array",
"items": {
"type": "object",
"properties": {
"level": {
"type": "string",
"enum": [
"error",
"warning",
"info"
]
},
"code": {
"type": "string"
},
"path": {
"type": "string"
},
"message": {
"type": "string"
},
"suggestion": {
"type": "string"
}
},
"required": [
"level",
"code",
"path",
"message"
]
}
},
"issuesOmitted": {
"type": "number"
},
"version": {
"type": "string"
},
"raw": {
"type": "object",
"description": "Full /api/lint response (only when include_raw is true)"
}
},
"required": [
"valid",
"errors",
"warnings",
"infos",
"issues",
"version"
]
}커뮤니티
증거