Skip to content

fix: MCP 오류 계약과 날짜 안정 테스트#151

Merged
hmmhmmhm merged 4 commits into
mainfrom
fix/mcp-error-and-date-tests
Jul 24, 2026
Merged

fix: MCP 오류 계약과 날짜 안정 테스트#151
hmmhmmhm merged 4 commits into
mainfrom
fix/mcp-error-and-date-tests

Conversation

@hmmhmmhm

Copy link
Copy Markdown
Owner

문제

  • MCP 도구 오류에 성공 응답용 structuredContent가 함께 반환되어 일부 클라이언트에서 성공 outputSchema 검증 오류 -32602로 바뀔 수 있었습니다.
  • 429 원장 테스트 세 건이 Date.now()를 고정하지 않아 실제 KST 날짜가 바뀐 뒤 409로 실패했습니다.

변경

  • isError: true 결과는 text content와 오류 표지만 반환하고 structuredContent를 생략합니다.
  • 정상 MCP 결과의 structuredContent와 표준 컬렉션 정규화는 유지합니다.
  • 실제 MCP SDK Client, Server, InMemoryTransport를 연결한 예외 및 성공 계약 회귀 테스트를 추가했습니다.
  • 날짜 의존 429 테스트 세 건에서 현재 시각을 이벤트의 KST 날짜로 고정했습니다.
  • Zyte 결제 한도와 외부 서비스 설정은 변경하지 않았습니다.

검증

  • TDD RED: 날짜 테스트 3건, MCP 계약 테스트 4건 실패 확인
  • 단일 worker 전체 테스트: 141 files, 1,570 tests 통과
  • 단일 worker 커버리지: statements, branches, functions, lines 모두 100%
  • format, ESLint, Biome, TypeScript 통과
  • build 및 wrangler deploy --dry-run 통과
  • npm audit 전체 및 production 의존성 취약점 0건

@hmmhmmhm
hmmhmmhm merged commit b6d525a into main Jul 24, 2026
6 checks passed
@hmmhmmhm
hmmhmmhm deleted the fix/mcp-error-and-date-tests branch July 24, 2026 00:42
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