@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.
Files changed (2) hide show
  1. package/install.ps1 +9 -6
  2. 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
- $cfg = Get-Content $mcpConfig -Raw | ConvertFrom-Json
122
- } catch {
123
- $cfg = [pscustomobject]@{}
124
- }
125
- } else {
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.Name.Contains("mcpServers")) {
132
+ if (-not ($cfg.PSObject.Properties.Match("mcpServers"))) {
130
133
  $cfg | Add-Member -MemberType NoteProperty -Name mcpServers -Value ([pscustomobject]@{})
131
134
  }
132
135
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dmsdc-ai/aigentry-devkit",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Cross-platform installer and tooling bundle for aigentry-devkit",
5
5
  "license": "MIT",
6
6
  "repository": {