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

Method GetForcedMCPServerConfigs

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

Source from the content-addressed store, hash-verified

3475}
3476
3477func (q *querier) GetForcedMCPServerConfigs(ctx context.Context) ([]database.MCPServerConfig, error) {
3478 if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceDeploymentConfig); err != nil {
3479 return nil, err
3480 }
3481 return q.db.GetForcedMCPServerConfigs(ctx)
3482}
3483
3484func (q *querier) GetGitSSHKey(ctx context.Context, userID uuid.UUID) (database.GitSSHKey, error) {
3485 return fetchWithAction(q.log, q.auth, policy.ActionReadPersonal, q.db.GetGitSSHKey)(ctx, userID)

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95

Tested by

no test coverage detected