Go: fix context (#18060)

Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
Jin Hai
2026-08-10 19:11:43 +08:00
committed by GitHub
parent cb649e8d56
commit dbd062f65e
10 changed files with 41 additions and 40 deletions

View File

@@ -370,7 +370,8 @@ func (h *MCPHandler) TestMCPServer(c *gin.Context) {
return
}
tools, err := h.mcpService.TestServer(mcpID, &req)
ctx := c.Request.Context()
tools, err := h.mcpService.TestServer(ctx, mcpID, &req)
if mcpErrorResponse(c, err) {
return
}