Skip to main content
Glama
encoder.go594 B
package json import ( "bytes" ) // Encoder is JSON encoder that supports construction of JSON values // using methods. type Encoder struct { w *bytes.Buffer Value } // NewEncoder returns a new JSON encoder func NewEncoder() *Encoder { writer := bytes.NewBuffer(nil) scratch := make([]byte, 64) return &Encoder{w: writer, Value: newValue(writer, &scratch)} } // String returns the String output of the JSON encoder func (e Encoder) String() string { return e.w.String() } // Bytes returns the []byte slice of the JSON encoder func (e Encoder) Bytes() []byte { return e.w.Bytes() }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mozillazg/kube-audit-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server