From 1659e47927a68358aea14ccfab7e206401f5b316 Mon Sep 17 00:00:00 2001 From: "lilong.129" Date: Thu, 24 Apr 2025 20:30:41 +0800 Subject: [PATCH] fix: add platform and serial to tool invoke args --- internal/version/VERSION | 2 +- server/tool.go | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/internal/version/VERSION b/internal/version/VERSION index de5a03e3..136c5603 100644 --- a/internal/version/VERSION +++ b/internal/version/VERSION @@ -1 +1 @@ -v5.0.0-beta-2504241840 +v5.0.0-beta-2504242030 diff --git a/server/tool.go b/server/tool.go index 9473a813..976afafc 100644 --- a/server/tool.go +++ b/server/tool.go @@ -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 {