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

Method handleMCPServers

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

Source from the content-addressed store, hash-verified

231}
232
233func (s *Server) handleMCPServers(w http.ResponseWriter, r *http.Request) {
234 if r.Method != http.MethodGet {
235 methodNotAllowed(w)
236 return
237 }
238 client := queryDefault(r, "client", "claude")
239 scope := queryDefault(r, "scope", "user")
240 servers, err := s.services.MCP.ListInstalled(client, scope)
241 writeResult(w, servers, err)
242}
243
244// handleMCPRegistry lists the discovered (bundled) MCP servers, optionally
245// filtered by a query, each enriched with the clients it is installed into.

Callers

nothing calls this directly

Calls 4

methodNotAllowedFunction · 0.85
queryDefaultFunction · 0.85
writeResultFunction · 0.85
ListInstalledMethod · 0.80

Tested by

no test coverage detected