-
Notifications
You must be signed in to change notification settings - Fork 0
make MCP output handlers open source #15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: next
Are you sure you want to change the base?
Conversation
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Converted handlers: - search-messages - send-message - set-chat-reminder - clear-chat-reminder - open-app - search 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Added the 'date-fns' package to the dependencies in package.json for date utility functions. Updated yarn.lock to reflect the new dependency and registry URL changes.
Updated all handler files in packages/mcp-server/src/handlers to consistently use single quotes for imports and statements, and to terminate statements with semicolons. This improves code style consistency and readability across the codebase. No functional changes were made.
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Note Other AI code review bot(s) detectedCodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review. ✨ Finishing touches🧪 Generate unit tests (beta)
Comment |
Introduces a new handlers module that allows overriding endpoint handlers via a HANDLER_OVERRIDES map. Updates the tools index to wrap endpoints with mapEndpoint, enabling custom handler injection for specific tools.
Replaces custom date utility functions with date-fns equivalents for improved reliability and readability. Updates date formatting and parsing logic in message mapping and formatting functions to use date-fns methods such as format, parse, isToday, isYesterday, isSameYear, and differenceInDays.
Deleted archive-chat, set-chat-reminder, and clear-chat-reminder handlers and their registrations. Refactored remaining handlers to use asTextContentResult for consistent output formatting. Updated mapMessagesToText type signature for improved type safety.
Changed the 'post', 'get', and 'del' HTTP handler functions to be exported. This allows them to be imported and used in other modules.
Replaces asTextContentResult with asMarkdownContentResult in all MCP server handlers to standardize content formatting. Adds asMarkdownContentResult utility to utils.ts. Updates imports accordingly for improved consistency and maintainability.
No description provided.