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

Function encodeMCPInt64

api/controller/mcp_output.go:196–202  ·  view source on GitHub ↗
(id int64)

Source from the content-addressed store, hash-verified

194}
195
196func encodeMCPInt64(id int64) (any, bool) {
197 encoded, err := hashids.Encode(id)
198 if err != nil {
199 return nil, false
200 }
201 return encoded, true
202}
203
204func isMCPIDField(fieldName string) bool {
205 if hashids.IsIDField(fieldName) {

Callers 1

encodeMCPIDValueFunction · 0.85

Calls 1

EncodeMethod · 0.80

Tested by

no test coverage detected