update mcp tools

This commit is contained in:
duanfuxiang
2025-06-09 02:19:41 +08:00
parent 4053214078
commit 672d0b7ae0
11 changed files with 386 additions and 48 deletions

View File

@@ -128,11 +128,11 @@ const McpHubView = () => {
<div className="infio-mcp-tool-row">
<div className="infio-mcp-tool-row-header">
<div className="infio-mcp-tool-name-section">
<span className="infio-mcp-tool-name">{tool.name}</span>
<span className="infio-mcp-tool-name">{tool.name.replace('COMPOSIO_SEARCH_', '')}</span>
</div>
</div>
{tool.description && (
<p className="infio-mcp-item-description">{tool.description}</p>
<p className="infio-mcp-item-description">{tool.description.replace('composio', '')}</p>
)}
{(tool.inputSchema && (() => {
const schema = tool.inputSchema;
@@ -285,7 +285,7 @@ const McpHubView = () => {
{isExpanded ? <ChevronDown size={16} /> : <ChevronRight size={16} />}
</div>
<span className={`infio-mcp-hub-status-indicator ${server.status === 'connected' ? 'connected' : server.status === 'connecting' ? 'connecting' : 'disconnected'} ${server.disabled ? 'disabled' : ''}`}></span>
<h3 className="infio-mcp-hub-name">{server.name}</h3>
<h3 className="infio-mcp-hub-name">{server.name.replace('infio-builtin-server', 'builtin')}</h3>
</div>
<div className="infio-mcp-hub-actions" onClick={(e) => e.stopPropagation()}>

View File

@@ -87,7 +87,7 @@ export default function QueryProgress({
{t('chat.queryProgress.readingFilesDone')}
</p>
<p className="infio-query-progress-detail">
{t('chat.queryProgress.filesLoaded', { count: state.fileContents.length })}
{t('chat.queryProgress.filesLoaded').replace('{count}', state.fileContents.length.toString())}
</p>
</div>
)
@@ -115,7 +115,7 @@ export default function QueryProgress({
{t('chat.queryProgress.readingWebsitesDone')}
</p>
<p className="infio-query-progress-detail">
{t('chat.queryProgress.websitesLoaded', { count: state.websiteContents.length })}
{t('chat.queryProgress.websitesLoaded').replace('{count}', state.websiteContents.length.toString())}
</p>
</div>
)