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

Method GetMCPServerConfigByID

coderd/database/dbauthz/dbauthz.go:3653–3658  ·  view source on GitHub ↗
(ctx context.Context, id uuid.UUID)

Source from the content-addressed store, hash-verified

3651}
3652
3653func (q *querier) GetMCPServerConfigByID(ctx context.Context, id uuid.UUID) (database.MCPServerConfig, error) {
3654 if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceDeploymentConfig); err != nil {
3655 return database.MCPServerConfig{}, err
3656 }
3657 return q.db.GetMCPServerConfigByID(ctx, id)
3658}
3659
3660func (q *querier) GetMCPServerConfigBySlug(ctx context.Context, slug string) (database.MCPServerConfig, error) {
3661 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