8000 feat: 셸 없는 에이전트용 HTML 조회와 UTF-8 안내 제공 by hmmhmmhm · Pull Request #242 · hmmhmmhm/daiso-mcp · GitHub
[go: up one dir, main page]

Skip to content

feat: 셸 없는 에이전트용 HTML 조회와 UTF-8 안내 제공 - #242

Merged
hmmhmmhm merged 1 commit into
mainfrom
feat/html-results
Oct 7, 2026
Merged

hmmhmmhm merged 1 commit into
mainfrom
feat/html-results

Conversation

@hmmhmmhm
@hmmhmmhm hmmhmmhm commented Oct 7, 2026
Copy link
Copy Markdown
Owner

웹 읽기만 가능한 채팅 에이전트가 JSON 조회 결과를 읽지 못할 때 공개 GET API에 format=html을 붙여 실제 결과를 HTML 문서로 받을 수 있습니다. 첫 화면·llms.txt·README가 첫 HTML 조회를 안내하고, 다이소 상품 상세 링크도 HTML로 이어집니다. 기본 JSON과 POST/MCP 계약은 유지합니다.

정적 llms.txt 본문은 UTF-8이지만 charset이 누락돼 한글이 깨져 보였습니다. llms.txt와 robots.txt 응답에 text/plain; charset=utf-8을 명시합니다.

기존 캐시·레이트리밋·오류 상태를 보존하며 외부 문자열을 escape하고 변환 후 무효해지는 표현 헤더를 제거합니다. 검증: 3,115개 테스트, 빌드, 커버리지 100%, 로컬 Worker 실제 상품 3개 HTML 조회와 UTF-8 헤더, 브라우저 화면 및 별도 코드 리뷰.

@hmmhmmhm
hmmhmmhm merged commit 85720f7 into main Oct 7, 2026
8 checks passed
@hmmhmmhm
hmmhmmhm deleted the feat/html-results branch October 7, 2026 06:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0