@dmsdc-ai/aigentry-devkit 0.1.7 → 0.1.8

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 +3 -31
  2. package/package.json +1 -1
package/install.ps1 CHANGED
@@ -139,38 +139,10 @@ Write-Header "5. MCP Registration"
139
139
  $mcpConfig = Join-Path $ClaudeDir ".mcp.json"
140
140
  New-Item -ItemType Directory -Path $ClaudeDir -Force | Out-Null
141
141
 
142
- $cfg = $null
143
- if (Test-Path $mcpConfig) {
144
- try {
145
- $raw = Get-Content $mcpConfig -Raw
146
- if ($raw) {
147
- $cfg = $raw | ConvertFrom-Json
148
- }
149
- } catch {}
150
- }
151
- if (-not $cfg) {
152
- $cfg = [pscustomobject]@{}
153
- }
154
-
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
- }
161
- }
162
-
163
- $deliberationEntry = [pscustomobject]@{
164
- command = "node"
165
- args = @((Join-Path $McpDest "index.js"))
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
- }
142
+ $mcpConfigJs = $mcpConfig -replace '\\', '/'
143
+ $mcpIndexJs = (Join-Path $McpDest "index.js") -replace '\\', '/'
172
144
 
173
- $cfg | ConvertTo-Json -Depth 8 | Set-Content -Path $mcpConfig -Encoding utf8
145
+ node -e "const fs=require('fs');const p='$mcpConfigJs';let c={};try{c=JSON.parse(fs.readFileSync(p,'utf-8'))}catch{}if(!c||typeof c!=='object')c={};if(!c.mcpServers)c.mcpServers={};c.mcpServers.deliberation={command:'node',args:['$mcpIndexJs']};fs.writeFileSync(p,JSON.stringify(c,null,2))"
174
146
  Write-Info "Registered deliberation MCP in $mcpConfig"
175
147
 
176
148
  if (Get-Command claude -ErrorAction SilentlyContinue) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dmsdc-ai/aigentry-devkit",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "Cross-platform installer and tooling bundle for aigentry-devkit",
5
5
  "license": "MIT",
6
6
  "repository": {