mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-25 17:44:02 +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
|
||||
}
|
||||
|
||||
// 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(),
|
||||
req.ServerName, req.ToolName, req.Args)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user