diff --git a/internal/provider/workspace_mcp.go b/internal/provider/workspace_mcp.go index c45e502..a268ed0 100644 --- a/internal/provider/workspace_mcp.go +++ b/internal/provider/workspace_mcp.go @@ -50,13 +50,13 @@ type ToolAllowlist struct { } type ToolMapping struct { - Capability string `yaml:"capability" json:"capability"` - Risk string `yaml:"risk" json:"risk"` - TargetType string `yaml:"target_type,omitempty" json:"target_type,omitempty"` - ReadOnly bool `yaml:"read_only" json:"read_only"` - SideEffects string `yaml:"side_effects,omitempty" json:"side_effects,omitempty"` - Enabled *bool `yaml:"enabled,omitempty" json:"enabled,omitempty"` - AllowParams []string `yaml:"allow_params,omitempty" json:"allow_params,omitempty"` + Capability string `yaml:"capability" json:"capability"` + Risk string `yaml:"risk" json:"risk"` + TargetType string `yaml:"target_type,omitempty" json:"target_type,omitempty"` + ReadOnly bool `yaml:"read_only" json:"read_only"` + SideEffects string `yaml:"side_effects,omitempty" json:"side_effects,omitempty"` + Enabled *bool `yaml:"enabled,omitempty" json:"enabled,omitempty"` + AllowParams []string `yaml:"allow_params,omitempty" json:"allow_params,omitempty"` } func (r *ToolAllowlist) IsEnabled(name string) bool {