Skip to content

Add end_before filter and date-range params to get_events#23

Closed
basil1015 wants to merge 5 commits into
ehs208:mainfrom
basil1015:claude/pedantic-diffie-5b8f52
Closed

Add end_before filter and date-range params to get_events#23
basil1015 wants to merge 5 commits into
ehs208:mainfrom
basil1015:claude/pedantic-diffie-5b8f52

Conversation

@basil1015

Copy link
Copy Markdown

Summary

  • src/client/api.ts: syncEvents/getEventsByCalendarstartAt/endAt 파라미터를 추가해 TimeTree sync 엔드포인트에 start_at/end_at 쿼리 파라미터를 전달
  • src/tools/event-tools.ts: get_events 도구에 end_before 파라미터 추가, start_after/end_before 클라이언트 측 필터를 서버 지원 여부와 무관하게 항상 적용

Test plan

  • npm run typecheck 통과
  • npm test 통과 (기존 12개 테스트 모두 green)
  • get_events 호출 시 end_before 파라미터로 날짜 범위 필터 동작 확인

🤖 Generated with Claude Code

basil1015 and others added 4 commits June 22, 2026 01:24
Comment out write tools (create/update/delete/add for events, memos,
comments, and label updates) in the tool registry so the server only
exposes listing/getting tools. Tool definitions and API methods are
kept intact so the write tools can be restored by uncommenting.

Also comment out the now-unused imports to satisfy noUnusedLocals, and
update the tool-registration test to expect the read-only tool set.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
TimeTree may return a null name for calendar users (e.g. deactivated
members), which made CalendarUserSchema.parse throw and surfaced as
"Failed to fetch calendars" in list_calendars. Make the name field
optional and nullable, matching the virtual-user and label schemas.

Add a regression test asserting getCalendars tolerates a null member
name.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Read-only build + null calendar_user name fix
- Add startAt/endAt optional params to syncEvents and getEventsByCalendar
  so the TimeTree sync endpoint receives start_at/end_at query params
- Add end_before parameter to get_events MCP tool for symmetric date filtering
- Apply both client-side filters (start_after, end_before) regardless of
  server-side support as a guaranteed fallback

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@basil1015
basil1015 requested a review from ehs208 as a code owner June 27, 2026 17:44
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@basil1015 basil1015 closed this Jun 27, 2026
@basil1015
basil1015 deleted the claude/pedantic-diffie-5b8f52 branch June 27, 2026 17:47
@basil1015
basil1015 restored the claude/pedantic-diffie-5b8f52 branch June 27, 2026 17:51
@basil1015
basil1015 deleted the claude/pedantic-diffie-5b8f52 branch June 27, 2026 17:52
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