@dmsdc-ai/aigentry-devkit 0.1.6 → 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 -22
  2. package/package.json +1 -1
package/install.ps1 CHANGED
@@ -139,29 +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"))) {
156
- $cfg | Add-Member -MemberType NoteProperty -Name mcpServers -Value ([pscustomobject]@{})
157
- }
158
-
159
- $cfg.mcpServers | Add-Member -MemberType NoteProperty -Name deliberation -Value ([pscustomobject]@{
160
- command = "node"
161
- args = @((Join-Path $McpDest "index.js"))
162
- }) -Force
142
+ $mcpConfigJs = $mcpConfig -replace '\\', '/'
143
+ $mcpIndexJs = (Join-Path $McpDest "index.js") -replace '\\', '/'
163
144
 
164
- $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))"
165
146
  Write-Info "Registered deliberation MCP in $mcpConfig"
166
147
 
167
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.6",
3
+ "version": "0.1.8",
4
4
  "description": "Cross-platform installer and tooling bundle for aigentry-devkit",
5
5
  "license": "MIT",
6
6
  "repository": {