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
parent d3eff9b1a3
commit 1ffe190557
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: {