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

Function writeJSON

internal/sidecar/server.go:470–473  ·  view source on GitHub ↗
(w http.ResponseWriter, value any)

Source from the content-addressed store, hash-verified

468}
469
470func writeJSON(w http.ResponseWriter, value any) {
471 w.Header().Set("Content-Type", "application/json")
472 _ = json.NewEncoder(w).Encode(value)
473}
474
475// writeJSONStatus writes value as JSON with an explicit status code.
476func writeJSONStatus(w http.ResponseWriter, status int, value any) {

Callers 11

handleVersionMethod · 0.70
handleMCPClientsMethod · 0.70
handleMCPInstallMethod · 0.70
handleMCPUninstallMethod · 0.70
handleEntityUninstallMethod · 0.70
handleConfigFilesMethod · 0.70
writeResultFunction · 0.70
handleInstructionsMethod · 0.70
handleInstructionItemMethod · 0.70
handleMetadataTargetsMethod · 0.70

Calls 2

SetMethod · 0.65
HeaderMethod · 0.65

Tested by

no test coverage detected