MCPcopy Index your code
hub / github.com/APIParkLab/APIPark / ToString

Method ToString

mcp-server/config.go:28–36  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

26}
27
28func (c *MCPConfig) ToString(name string) string {
29 m := map[string]interface{}{
30 "mcpServers": map[string]interface{}{
31 name: c,
32 },
33 }
34 data, _ := json.MarshalIndent(m, "", "\t")
35 return string(data)
36}

Callers 3

ServiceDetailMethod · 0.80
AppMCPConfigMethod · 0.80
GlobalMCPConfigMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected