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

Method GetMCPServerConfigBySlug

enterprise/dbcrypt/dbcrypt.go:716–725  ·  view source on GitHub ↗
(ctx context.Context, slug string)

Source from the content-addressed store, hash-verified

714}
715
716func (db *dbCrypt) GetMCPServerConfigBySlug(ctx context.Context, slug string) (database.MCPServerConfig, error) {
717 cfg, err := db.Store.GetMCPServerConfigBySlug(ctx, slug)
718 if err != nil {
719 return database.MCPServerConfig{}, err
720 }
721 if err := db.decryptMCPServerConfig(&cfg); err != nil {
722 return database.MCPServerConfig{}, err
723 }
724 return cfg, nil
725}
726
727func (db *dbCrypt) GetMCPServerConfigs(ctx context.Context) ([]database.MCPServerConfig, error) {
728 cfgs, err := db.Store.GetMCPServerConfigs(ctx)

Callers

nothing calls this directly

Calls 2

Tested by

no test coverage detected