mirror of
https://github.com/langgenius/dify.git
synced 2026-05-03 00:48:04 +08:00
modify api
This commit is contained in:
@ -86,7 +86,6 @@ const MCPDetailContent: FC<Props> = ({
|
||||
return
|
||||
const res = await authorizeMcp({
|
||||
provider_id: detail.id,
|
||||
server_url: detail.server_url!,
|
||||
})
|
||||
if (res.result === 'success')
|
||||
handleUpdateTools()
|
||||
|
||||
@ -70,7 +70,6 @@ const MCPList = ({
|
||||
setCurrentProviderID(provider.id)
|
||||
await authorizeMcp({
|
||||
provider_id: provider.id,
|
||||
server_url: provider.server_url!,
|
||||
})
|
||||
await refetch() // update authorization in list
|
||||
await updateTools(provider.id)
|
||||
@ -84,7 +83,6 @@ const MCPList = ({
|
||||
if (!targetProvider) return
|
||||
await updateMCPAuthorizationToken({
|
||||
provider_id: providerID,
|
||||
server_url: targetProvider.server_url!,
|
||||
authorization_code: code,
|
||||
})
|
||||
await refetch()
|
||||
|
||||
Reference in New Issue
Block a user