MCPcopy Create free account
hub / github.com/53AI/53AIHub / UnmarshalJSON

Method UnmarshalJSON

api/controller/mcp_input.go:13–20  ·  view source on GitHub ↗
(data []byte)

Source from the content-addressed store, hash-verified

11type MCPHashID string
12
13func (id *MCPHashID) UnmarshalJSON(data []byte) error {
14 parsed, err := parseMCPHashIDJSON(data)
15 if err != nil {
16 return err
17 }
18 *id = MCPHashID(parsed)
19 return nil
20}
21
22func (id MCPHashID) Int64() int64 {
23 decoded, err := hashids.Decode(string(id))

Callers

nothing calls this directly

Calls 2

parseMCPHashIDJSONFunction · 0.85
MCPHashIDTypeAlias · 0.85

Tested by

no test coverage detected