diff --git a/scripts/install.ps1 b/scripts/install.ps1 index 0c17fe5..ad6674c 100644 --- a/scripts/install.ps1 +++ b/scripts/install.ps1 @@ -81,6 +81,12 @@ if (-not $SkipMcpConfig) { if (Test-Path $mcpJson) { $raw = Get-Content $mcpJson -Raw | ConvertFrom-Json + if (-not $raw) { + $raw = [PSCustomObject]@{ inputs = @(); servers = [PSCustomObject]@{} } + } + if (-not $raw.servers) { + Add-Member -InputObject $raw -MemberType NoteProperty -Name "servers" -Value ([PSCustomObject]@{}) -Force + } } else { $raw = [PSCustomObject]@{ inputs = @(); servers = [PSCustomObject]@{} }