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

Method GetMCPServerConfigs

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

Source from the content-addressed store, hash-verified

3665}
3666
3667func (q *querier) GetMCPServerConfigs(ctx context.Context) ([]database.MCPServerConfig, error) {
3668 if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceDeploymentConfig); err != nil {
3669 return nil, err
3670 }
3671 return q.db.GetMCPServerConfigs(ctx)
3672}
3673
3674func (q *querier) GetMCPServerConfigsByIDs(ctx context.Context, ids []uuid.UUID) ([]database.MCPServerConfig, error) {
3675 if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceDeploymentConfig); err != nil {

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95
GetMCPServerConfigsMethod · 0.65

Tested by

no test coverage detected