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

Method GetMCPServerConfigByID

enterprise/dbcrypt/dbcrypt.go:705–714  ·  view source on GitHub ↗
(ctx context.Context, id uuid.UUID)

Source from the content-addressed store, hash-verified

703}
704
705func (db *dbCrypt) GetMCPServerConfigByID(ctx context.Context, id uuid.UUID) (database.MCPServerConfig, error) {
706 cfg, err := db.Store.GetMCPServerConfigByID(ctx, id)
707 if err != nil {
708 return database.MCPServerConfig{}, err
709 }
710 if err := db.decryptMCPServerConfig(&cfg); err != nil {
711 return database.MCPServerConfig{}, err
712 }
713 return cfg, nil
714}
715
716func (db *dbCrypt) GetMCPServerConfigBySlug(ctx context.Context, slug string) (database.MCPServerConfig, error) {
717 cfg, err := db.Store.GetMCPServerConfigBySlug(ctx, slug)

Callers

nothing calls this directly

Calls 2

Tested by

no test coverage detected