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

Method GetEnabledChatModelConfigs

coderd/database/dbauthz/dbauthz.go:3405–3410  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

3403}
3404
3405func (q *querier) GetEnabledChatModelConfigs(ctx context.Context) ([]database.ChatModelConfig, error) {
3406 if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceDeploymentConfig); err != nil {
3407 return nil, err
3408 }
3409 return q.db.GetEnabledChatModelConfigs(ctx)
3410}
3411
3412func (q *querier) GetEnabledMCPServerConfigs(ctx context.Context) ([]database.MCPServerConfig, error) {
3413 if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceDeploymentConfig); err != nil {

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95

Tested by

no test coverage detected