File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed
packages/service/core/app
projects/app/src/web/core/app/api Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -110,10 +110,16 @@ export class MCPClient {
110
110
const client = await this . getConnection ( ) ;
111
111
addLog . debug ( `[MCP Client] Call tool: ${ toolName } ` , params ) ;
112
112
113
- return await client . callTool ( {
114
- name : toolName ,
115
- arguments : params
116
- } ) ;
113
+ return await client . callTool (
114
+ {
115
+ name : toolName ,
116
+ arguments : params
117
+ } ,
118
+ undefined ,
119
+ {
120
+ timeout : 300000
121
+ }
122
+ ) ;
117
123
} catch ( error ) {
118
124
addLog . error ( `[MCP Client] Failed to call tool ${ toolName } :` , error ) ;
119
125
return Promise . reject ( error ) ;
Original file line number Diff line number Diff line change @@ -88,7 +88,8 @@ export const postUpdateMCPTools = (data: updateMCPToolsBody) =>
88
88
export const getMCPTools = ( data : getMCPToolsBody ) =>
89
89
POST < McpToolConfigType [ ] > ( '/support/mcp/client/getTools' , data ) ;
90
90
91
- export const postRunMCPTool = ( data : RunMCPToolBody ) => POST ( '/support/mcp/client/runTool' , data ) ;
91
+ export const postRunMCPTool = ( data : RunMCPToolBody ) =>
92
+ POST ( '/support/mcp/client/runTool' , data , { timeout : 300000 } ) ;
92
93
93
94
/* ============ http plugin ============== */
94
95
export const postCreateHttpPlugin = ( data : createHttpPluginBody ) =>
You can’t perform that action at this time.
0 commit comments