MCPcopy
hub / github.com/modelcontextprotocol/registry / Set

Method Set

cmd/publisher/commands/login.go:86–93  ·  view source on GitHub ↗
(v string)

Source from the content-addressed store, hash-verified

84}
85
86func (c *CryptoAlgorithm) Set(v string) error {
87 switch v {
88 case string(auth.AlgorithmEd25519), string(auth.AlgorithmECDSAP384):
89 *c = CryptoAlgorithm(v)
90 return nil
91 }
92 return fmt.Errorf("invalid algorithm: %q (allowed: ed25519, ecdsap384)", v)
93}
94
95type Token string
96

Callers 15

ValidateMCPBFunction · 0.80
ValidateNPMFunction · 0.80
validateReadmeFunction · 0.80
validatePackageExistsFunction · 0.80
ValidatePyPIFunction · 0.80
writeErrorResponseFunction · 0.80
TestCORSHeadersFunction · 0.80
TestPublishIntegrationFunction · 0.80

Calls 1

CryptoAlgorithmTypeAlias · 0.70