MCPcopy Index your code
hub / github.com/coder/coder / GetMCPServerConfigsByIDs

Method GetMCPServerConfigsByIDs

enterprise/dbcrypt/dbcrypt.go:740–751  ·  view source on GitHub ↗
(ctx context.Context, ids []uuid.UUID)

Source from the content-addressed store, hash-verified

738}
739
740func (db *dbCrypt) GetMCPServerConfigsByIDs(ctx context.Context, ids []uuid.UUID) ([]database.MCPServerConfig, error) {
741 cfgs, err := db.Store.GetMCPServerConfigsByIDs(ctx, ids)
742 if err != nil {
743 return nil, err
744 }
745 for i := range cfgs {
746 if err := db.decryptMCPServerConfig(&cfgs[i]); err != nil {
747 return nil, err
748 }
749 }
750 return cfgs, nil
751}
752
753func (db *dbCrypt) GetEnabledMCPServerConfigs(ctx context.Context) ([]database.MCPServerConfig, error) {
754 cfgs, err := db.Store.GetEnabledMCPServerConfigs(ctx)

Callers

nothing calls this directly

Calls 2

Tested by

no test coverage detected