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

Method DeleteMCPServerConfigByID

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

Source from the content-addressed store, hash-verified

2097}
2098
2099func (q *querier) DeleteMCPServerConfigByID(ctx context.Context, id uuid.UUID) error {
2100 if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceDeploymentConfig); err != nil {
2101 return err
2102 }
2103 return q.db.DeleteMCPServerConfigByID(ctx, id)
2104}
2105
2106func (q *querier) DeleteMCPServerUserToken(ctx context.Context, arg database.DeleteMCPServerUserTokenParams) error {
2107 if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceDeploymentConfig); err != nil {

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95

Tested by

no test coverage detected