mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-11 18:11:21 +08:00
feat: implement MCP hooks integration with anti_risk option
This commit is contained in:
@@ -19,7 +19,7 @@ func (r *Router) uixtActionHandler(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
if err = dExt.ExecuteAction(req); err != nil {
|
||||
if err = dExt.ExecuteAction(c.Request.Context(), req); err != nil {
|
||||
log.Err(err).Interface("action", req).
|
||||
Msg("exec uixt action failed")
|
||||
RenderError(c, err)
|
||||
@@ -42,7 +42,7 @@ func (r *Router) uixtActionsHandler(c *gin.Context) {
|
||||
}
|
||||
|
||||
for _, action := range actions {
|
||||
if err = dExt.ExecuteAction(action); err != nil {
|
||||
if err = dExt.ExecuteAction(c.Request.Context(), action); err != nil {
|
||||
log.Err(err).Interface("action", action).
|
||||
Msg("exec uixt action failed")
|
||||
RenderError(c, err)
|
||||
|
||||
Reference in New Issue
Block a user