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

Method handleEntities

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

Source from the content-addressed store, hash-verified

338}
339
340func (s *Server) handleEntities(w http.ResponseWriter, r *http.Request) {
341 if r.Method != http.MethodGet {
342 methodNotAllowed(w)
343 return
344 }
345 kind := queryDefault(r, "kind", "skill")
346 query := r.URL.Query().Get("query")
347 if query != "" {
348 entities, err := s.services.Entities.Search(kind, query)
349 writeResult(w, entities, err)
350 return
351 }
352 entities, err := s.services.Entities.List(kind)
353 writeResult(w, entities, err)
354}
355
356// handleEntityUninstall removes an entity (skill/agent/plugin) from the
357// registry and its installed filesystem locations.

Callers

nothing calls this directly

Calls 6

methodNotAllowedFunction · 0.85
queryDefaultFunction · 0.85
writeResultFunction · 0.85
GetMethod · 0.45
SearchMethod · 0.45
ListMethod · 0.45

Tested by

no test coverage detected