Skip to content

Conversation

batuhan
Copy link
Member

@batuhan batuhan commented Oct 6, 2025

No description provided.

stainless-app bot and others added 26 commits September 20, 2025 02:55
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.
Copy link

coderabbitai bot commented Oct 6, 2025

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Note

Other AI code review bot(s) detected

CodeRabbit 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)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch batuhan/mcp

Comment @coderabbitai help to get the list of available commands and usage tips.

cursor[bot]

This comment was marked as outdated.

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.
cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

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.
cursor[bot]

This comment was marked as outdated.

Keep MCP server output handlers from batuhan/mcp branch while accepting all other changes from main. The custom output handlers use asTextContentResult directly for cleaner implementation.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
cursor[bot]

This comment was marked as outdated.

batuhan and others added 3 commits October 16, 2025 19:20
Updated custom handlers to work with the new API signatures:
- open-app.ts: Use client.focus() instead of client.open()
- send-message.ts: Check output.pendingMessageID instead of output.success
- utils.ts: Use MessagesCursorSearch type instead of MessagesCursor
- utils.ts: Use message.id instead of message.messageID

All builds now pass with 0 TypeScript errors.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
cursor[bot]

This comment was marked as outdated.

@batuhan batuhan changed the title make MCP output handlers open source feat(mcp): customize MCP outputs Oct 16, 2025
@batuhan batuhan merged commit 21f3016 into next Oct 16, 2025
8 checks passed
@stainless-app stainless-app bot mentioned this pull request Oct 16, 2025
batuhan added a commit that referenced this pull request Oct 16, 2025
* feat(mcp): customize MCP outputs (#15)

* release: 4.2.0

---------

Co-authored-by: batuhan <[email protected]>
Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant