archgraph-argo 0.2.0 → 0.4.0

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 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'
@@ -34,9 +36,9 @@ $skillDest = Join-Path $SkillsRoot 'argo-init'
34
36
  Write-Host "[3/4] argo\skills\argo-init -> $skillDest"
35
37
  Copy-Tree -Source $skillSrc -Destination $skillDest
36
38
 
37
- $ruleSrc = Join-Path (Join-Path $argoDir 'rules') 'copilot-instructions.md'
38
- $ruleDest = Join-Path $PromptsRoot 'copilot-instructions.md'
39
- Write-Host "[4/4] argo\rules\copilot-instructions.md -> $ruleDest"
39
+ $ruleSrc = Join-Path (Join-Path $argoDir 'rules') 'archgraph.instructions.md'
40
+ $ruleDest = Join-Path $PromptsRoot 'archgraph.instructions.md'
41
+ Write-Host "[4/4] argo\rules\archgraph.instructions.md -> $ruleDest"
40
42
  New-Item -ItemType Directory -Force -Path $PromptsRoot | Out-Null
41
43
  Copy-Item -Force -Path $ruleSrc -Destination $ruleDest
42
44
 
@@ -108,5 +110,41 @@ 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
+ cwd = '${workspaceFolder}'
139
+ env = [ordered]@{ ARGO_REPO_ROOT = '${workspaceFolder}' }
140
+ }
141
+
142
+ $config = [ordered]@{ servers = $servers }
143
+ New-Item -ItemType Directory -Force -Path (Split-Path $mcpPath) | Out-Null
144
+ $json = $config | ConvertTo-Json -Depth 8
145
+ [System.IO.File]::WriteAllText($mcpPath, $json, (New-Object System.Text.UTF8Encoding $false))
146
+ Write-Host "argo MCP config written -> $mcpPath"
147
+ }
148
+
111
149
  Write-Host ''
112
150
  Write-Host 'Argo deployment complete.'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "archgraph-argo",
3
- "version": "0.2.0",
3
+ "version": "0.4.0",
4
4
  "description": "Deploy the ArchGraph ARGO toolchain, skills, and rules (schema, scripts, argo-init skill, global rule) with one command.",
5
5
  "license": "MIT",
6
6
  "bin": {