MCPcopy Create free account
hub / github.com/Chat2AnyLLM/code-agent-manager / handleTools

Method handleTools

internal/sidecar/server.go:216–223  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

214}
215
216func (s *Server) handleTools(w http.ResponseWriter, r *http.Request) {
217 if r.Method != http.MethodGet {
218 methodNotAllowed(w)
219 return
220 }
221 tools, err := s.services.Tools.List()
222 writeResult(w, tools, err)
223}
224
225func (s *Server) handleMCPClients(w http.ResponseWriter, r *http.Request) {
226 if r.Method != http.MethodGet {

Callers

nothing calls this directly

Calls 3

methodNotAllowedFunction · 0.85
writeResultFunction · 0.85
ListMethod · 0.45

Tested by

no test coverage detected