archgraph-argo 0.3.0 → 0.4.1
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-argo.ps1 +37 -1
- package/package.json +1 -1
package/install-argo.ps1
CHANGED
|
@@ -4,7 +4,9 @@ param(
|
|
|
4
4
|
[string]$SkillsRoot = "$env:USERPROFILE\.copilot\skills",
|
|
5
5
|
[string]$PromptsRoot = "$env:APPDATA\Code\User\prompts",
|
|
6
6
|
[switch]$SkipEnv,
|
|
7
|
-
[switch]$SkipDeps
|
|
7
|
+
[switch]$SkipDeps,
|
|
8
|
+
[switch]$SkipMcp,
|
|
9
|
+
[string]$McpPath
|
|
8
10
|
)
|
|
9
11
|
|
|
10
12
|
$ErrorActionPreference = 'Stop'
|
|
@@ -108,5 +110,39 @@ if ($SkipEnv) {
|
|
|
108
110
|
Write-Host "Wrote $envPath"
|
|
109
111
|
}
|
|
110
112
|
|
|
113
|
+
if ($SkipMcp) {
|
|
114
|
+
Write-Host 'Skipped MCP configuration (-SkipMcp).'
|
|
115
|
+
} else {
|
|
116
|
+
Write-Host '==> Registering argo MCP server in VS Code'
|
|
117
|
+
$mcpPath = if ($McpPath) { $McpPath } else { Join-Path $env:APPDATA 'Code\User\mcp.json' }
|
|
118
|
+
$argoServer = (Join-Path $ArgoRoot 'scripts\argo-mcp-server.js').Replace('\', '/')
|
|
119
|
+
|
|
120
|
+
$servers = [ordered]@{}
|
|
121
|
+
if (Test-Path $mcpPath) {
|
|
122
|
+
try {
|
|
123
|
+
$existing = Get-Content $mcpPath -Raw | ConvertFrom-Json
|
|
124
|
+
if ($existing.PSObject.Properties.Name -contains 'servers') {
|
|
125
|
+
foreach ($p in $existing.servers.PSObject.Properties) {
|
|
126
|
+
$servers[$p.Name] = $p.Value
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
} catch {
|
|
130
|
+
# Ignore an unparseable existing file and start fresh.
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
$servers['argo'] = [ordered]@{
|
|
135
|
+
type = 'stdio'
|
|
136
|
+
command = 'node'
|
|
137
|
+
args = @($argoServer)
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
$config = [ordered]@{ servers = $servers }
|
|
141
|
+
New-Item -ItemType Directory -Force -Path (Split-Path $mcpPath) | Out-Null
|
|
142
|
+
$json = $config | ConvertTo-Json -Depth 8
|
|
143
|
+
[System.IO.File]::WriteAllText($mcpPath, $json, (New-Object System.Text.UTF8Encoding $false))
|
|
144
|
+
Write-Host "argo MCP config written -> $mcpPath"
|
|
145
|
+
}
|
|
146
|
+
|
|
111
147
|
Write-Host ''
|
|
112
148
|
Write-Host 'Argo deployment complete.'
|
package/package.json
CHANGED