Merged
Conversation
Owner
|
와, 다이소 진열 위치 조회까지 되는 건 저도 이번에 처음 알았습니다. 기능 제안부터 구현, 테스트까지 깔끔하게 올려주셔서 감사합니다. 덕분에 프로젝트가 확실히 더 좋아졌어요! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
변경 요약
daiso_get_display_locationMCP 도구를 추가하여 다이소 매장 내 상품 진열 위치(구역/층)를 조회할 수 있게 했습니다.ServiceProvider/ServiceRegistry)에 맞춰 도구를 등록하고, REST 엔드포인트(GET /api/daiso/display-location)도 함께 추가했습니다.관련 이슈
체크리스트
npm run format:check통과npm run lint통과npm run typecheck통과npm test통과테스트 방법
다이소 MCP 클라이언트에서 직접 호출하는 경우:
{ "name": "daiso_get_display_location", "arguments": { "productId": "12345", "storeCode": "04515" } }참고 사항
productId는daiso_search_products,storeCode는daiso_check_inventory도구 결과에서 얻을 수 있습니다. 두 도구를 먼저 호출하는 순서를 권장합니다.data배열이 비어 있거나success: false이면hasLocation: false로 반환하며, 에러를 throw하지 않습니다. 호출자가hasLocation필드로 존재 여부를 판단할 수 있습니다.vi.stubGlobal('fetch', ...)기반 mock을 사용합니다.tests/api/handlers-get-display-location.test.ts에서 핸들러 catch 경로를 별도로 커버합니다.