@skaleagents/swarm 0.3.0 → 0.3.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/README.md CHANGED
@@ -11,7 +11,7 @@ the MCP tool for a structured review.
11
11
 
12
12
  ## Prerequisites
13
13
 
14
- 1. **API running:** Sail on `http://localhost:8082` (or your hosted API URL later).
14
+ 1. Node.js 20 or newer. The client connects to `https://api.skaleagents.com` by default.
15
15
  2. A browser that can open the SkaleAgents sign-in page.
16
16
 
17
17
  The first tool call opens browser sign-in. Approve MCP access there and return
@@ -67,17 +67,14 @@ Dev without build:
67
67
  }
68
68
  ```
69
69
 
70
- ### Option B: after npm publish (hosted API)
70
+ ### Option B: published package (hosted API)
71
71
 
72
72
  ```json
73
73
  {
74
74
  "mcpServers": {
75
75
  "skaleagents": {
76
76
  "command": "npx",
77
- "args": ["-y", "@skaleagents/swarm"],
78
- "env": {
79
- "PLATFORM_API_URL": "https://api.skaleagents.com"
80
- }
77
+ "args": ["-y", "@skaleagents/swarm@0.3.1"]
81
78
  }
82
79
  }
83
80
  }
@@ -87,14 +84,14 @@ Restart Cursor after saving. In Agent/Chat, tools should appear as `review_archi
87
84
 
88
85
  ## Claude Code
89
86
 
90
- Point `command`/`args` at `node .../dist/index.js` or `npx @skaleagents/swarm` once published. OAuth starts on the first tool call.
87
+ Use the published package configuration above in `.mcp.json`. OAuth starts on the first tool call. No API URL or keys are needed.
91
88
 
92
89
  ## Environment
93
90
 
94
91
  | Variable | Required | Description |
95
92
  |----------|----------|-------------|
96
93
  | `SKALEAGENTS_API_TOKEN` | No | Legacy Sanctum bearer-token override. OAuth is used when empty. |
97
- | `PLATFORM_API_URL` | No | Default `http://localhost:8082` |
94
+ | `PLATFORM_API_URL` | No | Defaults to `https://api.skaleagents.com`. Override only for local development or another API deployment. Empty values use the default. |
98
95
  | `SKALEAGENTS_OAUTH_CACHE` | No | OAuth cache path. Default `~/.config/skaleagents/oauth.json`. |
99
96
  | `SKALEAGENTS_OAUTH_ENABLED` | No | Set to `false` only to disable browser OAuth. |
100
97
 
package/dist/config.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { homedir } from "node:os";
2
2
  import { join } from "node:path";
3
3
  export function getApiUrl() {
4
- return (process.env.PLATFORM_API_URL?.replace(/\/$/, "") ?? "http://localhost:8082");
4
+ return (process.env.PLATFORM_API_URL?.trim().replace(/\/+$/, "") || "https://api.skaleagents.com");
5
5
  }
6
6
  export function getApiToken() {
7
7
  return process.env.SKALEAGENTS_API_TOKEN?.trim() ?? "";
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import { getApiAccessToken, requireApiAuth, unauthorizedContent, } from "./auth.
6
6
  import { architectureFindings, countIacResources, fetchPublicBotHints, } from "./review.js";
7
7
  const server = new McpServer({
8
8
  name: "skaleagents-swarm",
9
- version: "0.3.0",
9
+ version: "0.3.1",
10
10
  });
11
11
  server.registerTool("review_architecture", {
12
12
  title: "Review architecture",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skaleagents/swarm",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"