create & delete

This commit is contained in:
jZonG 2025-05-23 14:56:58 +08:00
parent 434187f9f0
commit f213663e17
4 changed files with 4 additions and 4 deletions

View File

@ -101,7 +101,7 @@ const MCPCard = ({
)}
</div>
<div className='system-xs-regular text-divider-deep'>/</div>
<div className='system-xs-regular truncate text-text-tertiary'>{`${t('tools.mcp.updateTime')} ${formatTimeFromNow(data.update_elapsed_time! * 1000)}`}</div>
<div className='system-xs-regular truncate text-text-tertiary'>{`${t('tools.mcp.updateTime')} ${formatTimeFromNow(data.updated_at!)}`}</div>
</div>
</div>
</div>

View File

@ -97,7 +97,7 @@ const ProviderList = () => {
/>
</div>
</div>
{(filteredCollectionList.length > 0 || (activeTab !== 'builtin' && activeTab !== 'mcp')) && (
{(filteredCollectionList.length > 0 && (activeTab === 'api' || activeTab === 'workflow')) && (
<div className={cn(
'relative grid shrink-0 grid-cols-1 content-start gap-4 px-12 pb-4 pt-2 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4',
!filteredCollectionList.length && activeTab === 'workflow' && 'grow',

View File

@ -53,7 +53,7 @@ export type Collection = {
letter?: string
// MCP Server
server_url?: string
update_elapsed_time?: number
updated_at?: number
}
export type ToolParameter = {

View File

@ -131,7 +131,7 @@ export const useDeleteMCP = ({
return useMutation({
mutationKey: [NAME_SPACE, 'delete-mcp'],
mutationFn: (id: string) => {
return del('/console/api/workspaces/current/tool-provider/mcp', {
return del('/workspaces/current/tool-provider/mcp', {
body: {
provider_id: id,
},