MCPcopy Index your code
hub / github.com/docker/docker-agent / toggleSessionYolo

Method toggleSessionYolo

pkg/server/server.go:343–348  ·  view source on GitHub ↗
(c echo.Context)

Source from the content-addressed store, hash-verified

341}
342
343func (s *Server) toggleSessionYolo(c echo.Context) error {
344 if err := s.sm.ToggleToolApproval(c.Request().Context(), c.Param("id")); err != nil {
345 return echo.NewHTTPError(http.StatusInternalServerError, fmt.Sprintf("failed to toggle session tool approval mode: %v", err))
346 }
347 return c.JSON(http.StatusOK, nil)
348}
349
350func (s *Server) getAgentToolCount(c echo.Context) error {
351 count, err := s.sm.GetAgentToolCount(c.Request().Context(), c.Param("id"), c.Param("agent_name"))

Callers

nothing calls this directly

Calls 2

ToggleToolApprovalMethod · 0.80
ContextMethod · 0.80

Tested by

no test coverage detected