@dmsdc-ai/aigentry-devkit 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/install.ps1 +9 -6
- package/package.json +1 -1
package/install.ps1
CHANGED
|
@@ -116,17 +116,20 @@ Write-Header "5. MCP Registration"
|
|
|
116
116
|
$mcpConfig = Join-Path $ClaudeDir ".mcp.json"
|
|
117
117
|
New-Item -ItemType Directory -Path $ClaudeDir -Force | Out-Null
|
|
118
118
|
|
|
119
|
+
$cfg = $null
|
|
119
120
|
if (Test-Path $mcpConfig) {
|
|
120
121
|
try {
|
|
121
|
-
$
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
}
|
|
122
|
+
$raw = Get-Content $mcpConfig -Raw
|
|
123
|
+
if ($raw) {
|
|
124
|
+
$cfg = $raw | ConvertFrom-Json
|
|
125
|
+
}
|
|
126
|
+
} catch {}
|
|
127
|
+
}
|
|
128
|
+
if (-not $cfg) {
|
|
126
129
|
$cfg = [pscustomobject]@{}
|
|
127
130
|
}
|
|
128
131
|
|
|
129
|
-
if (-not $cfg.PSObject.Properties.
|
|
132
|
+
if (-not ($cfg.PSObject.Properties.Match("mcpServers"))) {
|
|
130
133
|
$cfg | Add-Member -MemberType NoteProperty -Name mcpServers -Value ([pscustomobject]@{})
|
|
131
134
|
}
|
|
132
135
|
|