fix: add platform and serial to tool invoke args

This commit is contained in:
lilong.129
2025-04-24 20:30:41 +08:00
parent dfa8564187
commit 1659e47927
2 changed files with 5 additions and 1 deletions

View File

@@ -1 +1 @@
v5.0.0-beta-2504241840
v5.0.0-beta-2504242030

View File

@@ -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 {