Feat/improved mcp timeout configs (#23605)

Co-authored-by: crazywoola <427733928@qq.com>
This commit is contained in:
Will 2025-08-12 13:14:00 +08:00 • committed by GitHub
commit 1ffe190557
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 180 additions and 48 deletions

View file

@ -85,6 +85,8 @@ export const useCreateMCP = () => {
icon_type: AppIconType
icon: string
icon_background?: string | null
timeout?: number
sse_read_timeout?: number
}) => {
return post<ToolWithProvider>('workspaces/current/tool-provider/mcp', {
body: {
@ -109,6 +111,8 @@ export const useUpdateMCP = ({
icon: string
icon_background?: string | null
provider_id: string
timeout?: number
sse_read_timeout?: number
}) => {
return put('workspaces/current/tool-provider/mcp', {
body: {