(ctx context.Context, slug string)
| 3658 | } |
| 3659 | |
| 3660 | func (q *querier) GetMCPServerConfigBySlug(ctx context.Context, slug string) (database.MCPServerConfig, error) { |
| 3661 | if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceDeploymentConfig); err != nil { |
| 3662 | return database.MCPServerConfig{}, err |
| 3663 | } |
| 3664 | return q.db.GetMCPServerConfigBySlug(ctx, slug) |
| 3665 | } |
| 3666 | |
| 3667 | func (q *querier) GetMCPServerConfigs(ctx context.Context) ([]database.MCPServerConfig, error) { |
| 3668 | if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceDeploymentConfig); err != nil { |
nothing calls this directly
no test coverage detected