MCPcopy Create free account
hub / github.com/Chat2AnyLLM/code-agent-manager / Get

Method Get

internal/entities/store.go:108–119  ·  view source on GitHub ↗

Get returns an entity by name.

(name string)

Source from the content-addressed store, hash-verified

106
107// Get returns an entity by name.
108func (s *Store) Get(name string) (Entity, error) {
109 all, err := s.All()
110 if err != nil {
111 return Entity{}, err
112 }
113 for _, e := range all {
114 if e.Name == name {
115 return e, nil
116 }
117 }
118 return Entity{}, fmt.Errorf("entities: %s %q not found", s.kind, name)
119}
120
121// Put writes (creates or replaces) an entity.
122func (s *Store) Put(entity Entity) error {

Callers 15

TestStoreRoundTripFunction · 0.95
ListFilesMethod · 0.45
editorToolFunction · 0.45
SaveMethod · 0.45
loadToolFunction · 0.45
ShowServerMethod · 0.45
InstallFromRegistryMethod · 0.45
pickTargetsFunction · 0.45
lookupToolFunction · 0.45
extensionBrowseCommandFunction · 0.45
configListCommandMethod · 0.45

Calls 1

AllMethod · 0.95