latest params

This commit is contained in:
JzoNg
2025-05-26 17:07:49 +08:00
parent ccea3212a2
commit a448b140e9
4 changed files with 22 additions and 4 deletions

View File

@ -19,7 +19,7 @@ const MCPServerParamItem = ({
<div className='flex h-6 items-center gap-2'>
<div className='system-xs-medium text-text-secondary'>{data.label}</div>
<div className='system-xs-medium text-text-quaternary'>·</div>
<div className='system-xs-medium text-text-secondary'>{data.name}</div>
<div className='system-xs-medium text-text-secondary'>{data.variable}</div>
<div className='system-xs-medium text-text-tertiary'>{data.type}</div>
</div>
<Textarea

View File

@ -20,6 +20,7 @@ import { useAppContext } from '@/context/app-context'
import type { AppSSO } from '@/types/app'
import Indicator from '@/app/components/header/indicator'
import MCPServerModal from '@/app/components/tools/mcp/mcp-server-modal'
import { useAppWorkflow } from '@/service/use-workflow'
import cn from '@/utils/classnames'
export type IAppCardProps = {
@ -36,6 +37,8 @@ function MCPServiceCard({
const [genLoading, setGenLoading] = useState(false)
const [showConfirmDelete, setShowConfirmDelete] = useState(false)
const { data: currentWorkflow } = useAppWorkflow(appInfo.id)
const toggleDisabled = !isCurrentWorkspaceEditor
const runningStatus = appInfo.enable_site // TODO
const { app_base_url, access_token } = appInfo.site ?? {}
@ -56,6 +59,9 @@ function MCPServiceCard({
const [showMCPServerModal, setShowMCPServerModal] = useState(false)
if (!currentWorkflow || !currentWorkflow.graph)
return null
return (
<>
<div className={cn('w-full max-w-full rounded-xl border-l-[0.5px] border-t border-effects-highlight')}>