( input: Record<string, unknown>, toolName: string, )
| 1731 | * for `mcp__*` tool stubs without duplicating this logic. |
| 1732 | */ |
| 1733 | export function mcpToolInputToAutoClassifierInput( |
| 1734 | input: Record<string, unknown>, |
| 1735 | toolName: string, |
| 1736 | ): string { |
| 1737 | const keys = Object.keys(input) |
| 1738 | return keys.length > 0 |
| 1739 | ? keys.map(k => `${k}=${String(input[k])}`).join(' ') |
| 1740 | : toolName |
| 1741 | } |
| 1742 | |
| 1743 | export const fetchToolsForClient = memoizeWithLRU( |
| 1744 | async (client: MCPServerConnection): Promise<Tool[]> => { |
no test coverage detected