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

Method UpdateMCPServerConfig

coderd/database/dbauthz/dbauthz.go:6937–6942  ·  view source on GitHub ↗
(ctx context.Context, arg database.UpdateMCPServerConfigParams)

Source from the content-addressed store, hash-verified

6935}
6936
6937func (q *querier) UpdateMCPServerConfig(ctx context.Context, arg database.UpdateMCPServerConfigParams) (database.MCPServerConfig, error) {
6938 if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceDeploymentConfig); err != nil {
6939 return database.MCPServerConfig{}, err
6940 }
6941 return q.db.UpdateMCPServerConfig(ctx, arg)
6942}
6943
6944func (q *querier) UpdateMemberRoles(ctx context.Context, arg database.UpdateMemberRolesParams) (database.OrganizationMember, error) {
6945 // Authorized fetch will check that the actor has read access to the org member since the org member is returned.

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95
UpdateMCPServerConfigMethod · 0.65

Tested by

no test coverage detected