Skip to content

Conversation

@samuv
Copy link
Collaborator

@samuv samuv commented Nov 6, 2025

In the bump of the libs I touched this file but was not correct, I just revert the type and logic as before.

This fix the retrival of tools for tool override.

@samuv samuv self-assigned this Nov 6, 2025
Copilot AI review requested due to automatic review settings November 6, 2025 13:08
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refactors the McpToolDefinition type and improves the type safety and implementation of the isMcpToolDefinition function. The changes also streamline the tool validation and filtering logic.

  • Changed McpToolDefinition from a type alias to an interface with explicit properties
  • Updated the isMcpToolDefinition type guard signature to accept a Tool parameter instead of unknown
  • Refactored the tool filtering logic to use a functional approach with filter and reduce

@samuv samuv enabled auto-merge (squash) November 6, 2025 13:21
@samuv samuv merged commit 97053e3 into main Nov 6, 2025
22 of 23 checks passed
@samuv samuv deleted the fix-tools-desc branch November 6, 2025 13:31
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.

3 participants