Skip to content

refactor: consolidate duplicated code, add MCP annotations, and tool disable option - #17

Merged
kajidog merged 2 commits into
mainfrom
claude/refactor-code-review-XTKWv
Apr 6, 2026
Merged

refactor: consolidate duplicated code, add MCP annotations, and tool disable option#17
kajidog merged 2 commits into
mainfrom
claude/refactor-code-review-XTKWv

Conversation

@kajidog

@kajidog kajidog commented Apr 6, 2026

Copy link
Copy Markdown
Owner
  • Extract shared utilities (startOfDay, formatDateLabel, resolveUserNickname,
    calculateDateRange, groupEventsByDate, fetchEventDetail) to utils/shared.ts
  • Extract reusable paginationSchema to utils/types.ts
  • Consolidate summarizeGroupsResponse/summarizeUsersResponse via buildLimitedSummary
  • Add MCP ToolAnnotations (readOnlyHint, idempotentHint, openWorldHint) to all tools
  • Add --disable-tools / CONNPASS_DISABLE_TOOLS config to selectively disable tools

https://claude.ai/code/session_01FdLyCcMJ1p6VZaPVSWXmE1

…disable option

- Extract shared utilities (startOfDay, formatDateLabel, resolveUserNickname,
  calculateDateRange, groupEventsByDate, fetchEventDetail) to utils/shared.ts
- Extract reusable paginationSchema to utils/types.ts
- Consolidate summarizeGroupsResponse/summarizeUsersResponse via buildLimitedSummary
- Add MCP ToolAnnotations (readOnlyHint, idempotentHint, openWorldHint) to all tools
- Add --disable-tools / CONNPASS_DISABLE_TOOLS config to selectively disable tools

https://claude.ai/code/session_01FdLyCcMJ1p6VZaPVSWXmE1

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6515bef3ad

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread apps/mcp-server/src/tools/utils/shared.ts Outdated
The process-wide nickname cache could serve stale nicknames indefinitely
if a user changed their Connpass nickname while the server was running.
Add a 5-minute TTL so entries are re-fetched periodically.

https://claude.ai/code/session_01FdLyCcMJ1p6VZaPVSWXmE1
@kajidog
kajidog merged commit 3a509d2 into main Apr 6, 2026
2 checks passed
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.

2 participants