@aerostack/gateway 0.17.2 → 0.17.4

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/README.md CHANGED
@@ -116,12 +116,22 @@ Token: mwt_your_token_here (Authorization: Bearer header)
116
116
 
117
117
  ### 3. Verify your connection
118
118
 
119
- Run the built-in diagnostic check to make sure everything is working:
119
+ Run the built-in diagnostic to verify everything works end-to-end:
120
120
 
121
121
  ```bash
122
+ # Option A: if npx works on your system
122
123
  AEROSTACK_WORKSPACE_URL="https://mcp.aerostack.dev/ws/your-workspace" \
123
124
  AEROSTACK_TOKEN="mwt_your_token_here" \
124
- npx @aerostack/gateway --check
125
+ npx -y @aerostack/gateway --check
126
+ ```
127
+
128
+ ```bash
129
+ # Option B: install globally first (recommended for servers/VMs)
130
+ npm install -g @aerostack/gateway
131
+
132
+ export AEROSTACK_WORKSPACE_URL="https://mcp.aerostack.dev/ws/your-workspace"
133
+ export AEROSTACK_TOKEN="mwt_your_token_here"
134
+ aerostack-gateway --check
125
135
  ```
126
136
 
127
137
  You should see:
@@ -141,6 +151,8 @@ You should see:
141
151
 
142
152
  If any step fails, the output tells you exactly what to fix.
143
153
 
154
+ > **Tip:** After global install, you can simplify your MCP config to use `"command": "aerostack-gateway"` instead of `"command": "npx"` — faster startup, no network fetch.
155
+
144
156
  ### 4. Use it
145
157
 
146
158
  ```
@@ -152,14 +164,38 @@ Tools are namespaced as `{server}__{tool}` (e.g., `github__create_issue`, `slack
152
164
 
153
165
  ## Troubleshooting
154
166
 
167
+ **Step-by-step debug:**
168
+
169
+ ```bash
170
+ # 1. Can the gateway reach your workspace?
171
+ aerostack-gateway --check
172
+
173
+ # 2. If using OpenClaw, is the gateway running?
174
+ openclaw gateway status
175
+
176
+ # 3. Is the MCP server configured?
177
+ openclaw mcp show aerostack
178
+
179
+ # 4. Start the gateway if not running
180
+ openclaw gateway start
181
+
182
+ # 5. Run OpenClaw's built-in diagnostics
183
+ openclaw doctor
184
+ ```
185
+
186
+ **Common issues:**
187
+
155
188
  | Problem | Solution |
156
189
  |---------|----------|
157
- | `npx` hangs or fails | Run `npm install -g @aerostack/gateway` instead, then use `"command": "aerostack-gateway"` |
190
+ | `npx` hangs or fails | Run `npm install -g @aerostack/gateway` instead, then use `"command": "aerostack-gateway"` in your MCP config |
191
+ | `AEROSTACK_WORKSPACE_URL is required` | The env vars aren't being passed. Use `export` before running `--check`, or verify your MCP config has the `env` block |
192
+ | `npx` error: "could not determine executable" | Install globally: `npm install -g @aerostack/gateway`, then run `aerostack-gateway --check` |
158
193
  | "Token invalid" in `--check` | Regenerate token at dashboard → Workspace → Tokens |
159
- | "0 tools found" | Add MCP servers to your workspace in the dashboard first |
194
+ | "0 workspace tools" | Built-in tools (Local Guardian, Chat) are always available. Add MCP servers to your workspace for more tools |
160
195
  | OpenClaw: tools not showing | Send a message via Telegram or another channel to initialize the session |
161
196
  | Dashboard shows "No agents" | Run `--check` to verify, or wait 2 minutes for the heartbeat to register |
162
197
  | "Workspace unreachable" | Check the URL format: `https://mcp.aerostack.dev/ws/your-workspace` |
198
+ | Multiple phantom agents in dashboard | Update to latest version (`npm install -g @aerostack/gateway@latest`) — fixed in 0.17.2 |
163
199
 
164
200
  ## How It Works
165
201
 
package/dist/index.js CHANGED
@@ -51,9 +51,9 @@ ${V}`:V}}}const x=new we({name:"aerostack-gateway",version:"0.15.29"},{capabilit
51
51
  Fix: Regenerate token at your dashboard \u2192 Workspace \u2192 Tokens
52
52
  `),process.exit(1)),e(` \u274C Workspace unreachable (HTTP ${t.status})`),e(`
53
53
  Fix: Check AEROSTACK_WORKSPACE_URL is correct
54
- `),process.exit(1));const n=await t.json();e(` \u2705 Workspace URL reachable (${m})`),e(` \u2705 Token valid (${n.token_name}, role: ${n.token_role})`),e(` \u2705 Workspace connected ("${n.workspace}")`),e(` \u2705 Tools available (${n.mcp_servers} tools)`);try{const s=await fetch(`${m}/chat/heartbeat`,{method:"POST",headers:{Authorization:`Bearer ${h}`,"Content-Type":"application/json"},body:JSON.stringify({agent_type:"check",user_agent:"aerostack-gateway/check",bridge_id:"check"}),signal:AbortSignal.timeout(1e4)});e(s.ok?" \u2705 Dashboard registration (bridge visible in admin)":` \u26A0\uFE0F Dashboard registration (returned ${s.status})`)}catch{e(" \u26A0\uFE0F Dashboard registration (heartbeat failed \u2014 non-fatal)")}e(`
54
+ `),process.exit(1));const n=await t.json();e(` \u2705 Workspace URL reachable (${m})`),e(` \u2705 Token valid (${n.token_name}, role: ${n.token_role})`),e(` \u2705 Workspace connected ("${n.workspace}")`);const s=4,o=(n.mcp_servers??0)+s;e(` \u2705 Tools available (${o} tools: ${n.mcp_servers} workspace + ${s} built-in)`);try{const a=await fetch(`${m}/chat/heartbeat`,{method:"POST",headers:{Authorization:`Bearer ${h}`,"Content-Type":"application/json"},body:JSON.stringify({agent_type:"check",user_agent:"aerostack-gateway/check",bridge_id:"check"}),signal:AbortSignal.timeout(1e4)});e(a.ok?" \u2705 Dashboard registration (bridge visible in admin)":` \u26A0\uFE0F Dashboard registration (returned ${a.status})`)}catch{e(" \u26A0\uFE0F Dashboard registration (heartbeat failed \u2014 non-fatal)")}e(`
55
55
  All checks passed. Your agent is connected.`),e(` Dashboard: ${n.dashboard_url||"https://app.aerostack.dev"}
56
- `),n.mcp_servers===0&&e(` Note: 0 tools found. Add MCP servers or functions to your workspace first.
56
+ `),n.mcp_servers===0&&e(` Tip: Add MCP servers to your workspace for more tools. Built-in tools (Local Guardian, Chat) are ready.
57
57
  `),process.exit(0)}catch(t){t?.name==="TimeoutError"||t?.name==="AbortError"?(e(" \u274C Workspace unreachable (timeout after 10s)"),e(`
58
58
  Fix: Check AEROSTACK_WORKSPACE_URL and your network connection
59
59
  `)):(e(` \u274C Connection failed (${t?.message??"unknown error"})`),e(`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aerostack/gateway",
3
- "version": "0.17.2",
3
+ "version": "0.17.4",
4
4
  "description": "stdio-to-HTTP bridge connecting any MCP client to Aerostack Workspaces",
5
5
  "author": "Aerostack",
6
6
  "license": "MIT",