mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-05 07:26:55 +08:00
fix: add platform and serial to tool invoke args
This commit is contained in:
@@ -1 +1 @@
|
|||||||
v5.0.0-beta-2504241840
|
v5.0.0-beta-2504242030
|
||||||
|
|||||||
@@ -24,6 +24,10 @@ func (r *Router) invokeToolHandler(c *gin.Context) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// add platform and serial to tool invoke args
|
||||||
|
req.Args["platform"] = c.Param("platform")
|
||||||
|
req.Args["serial"] = c.Param("serial")
|
||||||
|
|
||||||
result, err := r.mcpHub.InvokeTool(c.Request.Context(),
|
result, err := r.mcpHub.InvokeTool(c.Request.Context(),
|
||||||
req.ServerName, req.ToolName, req.Args)
|
req.ServerName, req.ToolName, req.Args)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user