mirror of
https://github.com/langgenius/dify.git
synced 2026-03-18 05:09:54 +08:00
MCP server publish
This commit is contained in:
@ -138,7 +138,7 @@ const CardView: FC<ICardViewProps> = ({ appId, isInPanel, className }) => {
|
||||
isInPanel={isInPanel}
|
||||
onChangeStatus={onChangeApiStatus}
|
||||
/>
|
||||
{isInPanel && appDetail.mode === 'workflow' && (
|
||||
{isInPanel && (
|
||||
<MCPServiceCard
|
||||
appInfo={appDetail}
|
||||
/>
|
||||
|
||||
@ -50,7 +50,7 @@ function MCPServiceCard({
|
||||
const appUnpublished = !currentWorkflow?.graph
|
||||
const serverPublished = !!id
|
||||
const serverActivated = status === 'active'
|
||||
const serverURL = serverPublished ? `${globalThis.location.protocol}//${globalThis.location.host}/api/server/${server_code}/mcp` : '***********'
|
||||
const serverURL = serverPublished ? `${appInfo.api_base_url.replace('/v1', '')}/mcp/server/${server_code}/mcp` : '***********'
|
||||
const toggleDisabled = !isCurrentWorkspaceEditor || appUnpublished
|
||||
|
||||
const [activated, setActivated] = useState(serverActivated)
|
||||
|
||||
Reference in New Issue
Block a user