@dmsdc-ai/aigentry-devkit 0.1.6 → 0.1.7
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 +13 -4
- package/package.json +1 -1
package/install.ps1
CHANGED
|
@@ -152,14 +152,23 @@ if (-not $cfg) {
|
|
|
152
152
|
$cfg = [pscustomobject]@{}
|
|
153
153
|
}
|
|
154
154
|
|
|
155
|
-
if (-not ($cfg.PSObject.Properties.Match("mcpServers"))) {
|
|
156
|
-
$cfg
|
|
155
|
+
if (-not ($cfg.PSObject.Properties.Match("mcpServers")) -or $null -eq $cfg.mcpServers) {
|
|
156
|
+
if ($cfg.PSObject.Properties.Match("mcpServers")) {
|
|
157
|
+
$cfg.mcpServers = [pscustomobject]@{}
|
|
158
|
+
} else {
|
|
159
|
+
$cfg | Add-Member -MemberType NoteProperty -Name mcpServers -Value ([pscustomobject]@{})
|
|
160
|
+
}
|
|
157
161
|
}
|
|
158
162
|
|
|
159
|
-
$
|
|
163
|
+
$deliberationEntry = [pscustomobject]@{
|
|
160
164
|
command = "node"
|
|
161
165
|
args = @((Join-Path $McpDest "index.js"))
|
|
162
|
-
}
|
|
166
|
+
}
|
|
167
|
+
if ($cfg.mcpServers.PSObject.Properties.Match("deliberation")) {
|
|
168
|
+
$cfg.mcpServers.deliberation = $deliberationEntry
|
|
169
|
+
} else {
|
|
170
|
+
$cfg.mcpServers | Add-Member -MemberType NoteProperty -Name deliberation -Value $deliberationEntry
|
|
171
|
+
}
|
|
163
172
|
|
|
164
173
|
$cfg | ConvertTo-Json -Depth 8 | Set-Content -Path $mcpConfig -Encoding utf8
|
|
165
174
|
Write-Info "Registered deliberation MCP in $mcpConfig"
|