Skip to main content
Glama
actions_marshalling.go758 B
package actions import "github.com/goccy/go-json" func (r RemedyReqRunResult) MarshalJSON() ([]byte, error) { return json.Marshal(r.String()) } func (r *RemedyReqRunResult) UnmarshalJSON(data []byte) error { var raw string if err := json.Unmarshal(data, &raw); err != nil { return err } parsed, err := ParseRemedyReqRunResult(raw) if err != nil { return err } *r = parsed return nil } func (r RemedyRespRunResult) MarshalJSON() ([]byte, error) { return json.Marshal(r.String()) } func (r *RemedyRespRunResult) UnmarshalJSON(data []byte) error { var raw string if err := json.Unmarshal(data, &raw); err != nil { return err } parsed, err := ParseRemedyRespRunResult(raw) if err != nil { return err } *r = parsed return nil }

Latest Blog Posts

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/TheLunarCompany/lunar'

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