Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵月辉
/
fastgpt-migrated
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
2bd53450
authored
Jul 01, 2025
by
heheer
Committed by
GitHub
Jul 01, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mcp call tools timeout (#5123)
parent
58160409
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
packages/service/core/app/mcp.ts
+8
-2
projects/app/src/web/core/app/api/plugin.ts
+2
-1
No files found.
packages/service/core/app/mcp.ts
View file @
2bd53450
...
@@ -110,10 +110,16 @@ export class MCPClient {
...
@@ -110,10 +110,16 @@ export class MCPClient {
const
client
=
await
this
.
getConnection
();
const
client
=
await
this
.
getConnection
();
addLog
.
debug
(
`[MCP Client] Call tool:
${
toolName
}
`
,
params
);
addLog
.
debug
(
`[MCP Client] Call tool:
${
toolName
}
`
,
params
);
return
await
client
.
callTool
({
return
await
client
.
callTool
(
{
name
:
toolName
,
name
:
toolName
,
arguments
:
params
arguments
:
params
});
},
undefined
,
{
timeout
:
300000
}
);
}
catch
(
error
)
{
}
catch
(
error
)
{
addLog
.
error
(
`[MCP Client] Failed to call tool
${
toolName
}
:`
,
error
);
addLog
.
error
(
`[MCP Client] Failed to call tool
${
toolName
}
:`
,
error
);
return
Promise
.
reject
(
error
);
return
Promise
.
reject
(
error
);
...
...
projects/app/src/web/core/app/api/plugin.ts
View file @
2bd53450
...
@@ -88,7 +88,8 @@ export const postUpdateMCPTools = (data: updateMCPToolsBody) =>
...
@@ -88,7 +88,8 @@ export const postUpdateMCPTools = (data: updateMCPToolsBody) =>
export
const
getMCPTools
=
(
data
:
getMCPToolsBody
)
=>
export
const
getMCPTools
=
(
data
:
getMCPToolsBody
)
=>
POST
<
McpToolConfigType
[]
>
(
'/support/mcp/client/getTools'
,
data
);
POST
<
McpToolConfigType
[]
>
(
'/support/mcp/client/getTools'
,
data
);
export
const
postRunMCPTool
=
(
data
:
RunMCPToolBody
)
=>
POST
(
'/support/mcp/client/runTool'
,
data
);
export
const
postRunMCPTool
=
(
data
:
RunMCPToolBody
)
=>
POST
(
'/support/mcp/client/runTool'
,
data
,
{
timeout
:
300000
});
/* ============ http plugin ============== */
/* ============ http plugin ============== */
export
const
postCreateHttpPlugin
=
(
data
:
createHttpPluginBody
)
=>
export
const
postCreateHttpPlugin
=
(
data
:
createHttpPluginBody
)
=>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment