'use client' import React from 'react' import { useContext } from 'use-context-selector' import type { Tool } from '@/app/components/tools/types' import I18n from '@/context/i18n' import { getLanguage } from '@/i18n-config/language' import Tooltip from '@/app/components/base/tooltip' import cn from '@/utils/classnames' import { useTranslation } from 'react-i18next' type Props = { tool: Tool } const MCPToolItem = ({ tool, }: Props) => { const { locale } = useContext(I18n) const language = getLanguage(locale) const { t } = useTranslation() const renderParameters = () => { const parameters = tool.parameters if (parameters.length === 0) return null return (