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

Method InsertMCPServerConfig

coderd/database/dbauthz/dbauthz.go:5636–5641  ·  view source on GitHub ↗
(ctx context.Context, arg database.InsertMCPServerConfigParams)

Source from the content-addressed store, hash-verified

5634}
5635
5636func (q *querier) InsertMCPServerConfig(ctx context.Context, arg database.InsertMCPServerConfigParams) (database.MCPServerConfig, error) {
5637 if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceDeploymentConfig); err != nil {
5638 return database.MCPServerConfig{}, err
5639 }
5640 return q.db.InsertMCPServerConfig(ctx, arg)
5641}
5642
5643func (q *querier) InsertMemoryResourceMonitor(ctx context.Context, arg database.InsertMemoryResourceMonitorParams) (database.WorkspaceAgentMemoryResourceMonitor, error) {
5644 if err := q.authorizeContext(ctx, policy.ActionCreate, rbac.ResourceWorkspaceAgentResourceMonitor); err != nil {

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95
InsertMCPServerConfigMethod · 0.65

Tested by

no test coverage detected