@aicommander/mcp 1.0.0 → 1.0.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
@@ -5,7 +5,7 @@ Universal **stdio MCP server** for [AI Commander](https://aicommander.dev) — r
5
5
  Use this package to connect any MCP client that speaks **stdio** (Codex CLI, Claude Desktop's config file, Cursor, Windsurp, …) to your AI Commander relay. It wraps the remote HTTPS/SSE MCP endpoint so clients that can only launch a local process get the same `remote_exec` and `session_status` tools.
6
6
 
7
7
  > Using **Claude Code**? You don't need this package — add the relay directly:
8
- > `claude mcp add --transport http aicommander https://<your-worker>/mcp --header "Authorization: Bearer <token>"`
8
+ > `claude mcp add --transport http aicommander https://aicommander.dev/mcp --header "Authorization: Bearer <token>"`
9
9
 
10
10
  ## Tools
11
11
 
@@ -21,7 +21,7 @@ Two environment variables:
21
21
  | Variable | Required | Default | Description |
22
22
  |---|---|---|---|
23
23
  | `AICOMMANDER_ADMIN_TOKEN` | **yes** | — | Admin token from `POST /api/admin/token` on your relay. |
24
- | `AICOMMANDER_SERVER` | no | `https://aic-worker.lrz.workers.dev` | Base URL of your self-hosted AI Commander Worker. |
24
+ | `AICOMMANDER_SERVER` | no | `https://aicommander.dev` | Base URL of your self-hosted AI Commander Worker. |
25
25
 
26
26
  ## Usage
27
27
 
@@ -31,7 +31,7 @@ Two environment variables:
31
31
  [mcp_servers.aicommander]
32
32
  command = "npx"
33
33
  args = ["-y", "@aicommander/mcp"]
34
- env = { AICOMMANDER_ADMIN_TOKEN = "<token>", AICOMMANDER_SERVER = "https://<your-worker>" }
34
+ env = { AICOMMANDER_ADMIN_TOKEN = "<token>", AICOMMANDER_SERVER = "https://aicommander.dev" }
35
35
  ```
36
36
 
37
37
  ### Claude Desktop — `claude_desktop_config.json`
@@ -44,7 +44,7 @@ env = { AICOMMANDER_ADMIN_TOKEN = "<token>", AICOMMANDER_SERVER = "https://<your
44
44
  "args": ["-y", "@aicommander/mcp"],
45
45
  "env": {
46
46
  "AICOMMANDER_ADMIN_TOKEN": "<token>",
47
- "AICOMMANDER_SERVER": "https://<your-worker>"
47
+ "AICOMMANDER_SERVER": "https://aicommander.dev"
48
48
  }
49
49
  }
50
50
  }
@@ -53,7 +53,7 @@ env = { AICOMMANDER_ADMIN_TOKEN = "<token>", AICOMMANDER_SERVER = "https://<your
53
53
 
54
54
  Then just mention a session code in chat:
55
55
 
56
- > *"Show disk usage on AIC-WOLF-7421"*
56
+ > *"Show disk usage on AIC-XYZ-1234"*
57
57
 
58
58
  The client detects the `AIC-` prefix and calls `remote_exec` for you.
59
59
 
package/dist/bin/mcp.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
3
3
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
4
4
  import { z } from "zod";
5
- const SERVER_URL = process.env["AICOMMANDER_SERVER"] ?? "https://aic-worker.lrz.workers.dev";
5
+ const SERVER_URL = process.env["AICOMMANDER_SERVER"] ?? "https://aicommander.dev";
6
6
  const ADMIN_TOKEN = process.env["AICOMMANDER_ADMIN_TOKEN"];
7
7
  if (!ADMIN_TOKEN) {
8
8
  process.stderr.write("Error: AICOMMANDER_ADMIN_TOKEN environment variable is required\n");
@@ -16,11 +16,11 @@ const server = new McpServer({
16
16
  server.registerTool("remote_exec", {
17
17
  description: "Execute a shell command on a remote machine running the AI Commander agent. " +
18
18
  "Use this tool whenever the user mentions a server/machine code that starts with 'AIC-' " +
19
- "(e.g. AIC-WOLF-7421). Streams stdout/stderr output in real time.",
19
+ "(e.g. AIC-XYZ-1234). Streams stdout/stderr output in real time.",
20
20
  inputSchema: {
21
21
  code: z
22
22
  .string()
23
- .describe("AI Commander session code — always starts with 'AIC-' (e.g. AIC-WOLF-7421)"),
23
+ .describe("AI Commander session code — always starts with 'AIC-' (e.g. AIC-XYZ-1234)"),
24
24
  command: z
25
25
  .string()
26
26
  .describe("Shell command to execute (runs via /bin/sh -c on the remote machine)"),
@@ -95,11 +95,11 @@ server.registerTool("remote_exec", {
95
95
  // Tool: session_status
96
96
  server.registerTool("session_status", {
97
97
  description: "Check whether a remote machine is online and ready. Use this when the user asks about " +
98
- "a server/machine identified by an AIC- code (e.g. AIC-WOLF-7421).",
98
+ "a server/machine identified by an AIC- code (e.g. AIC-XYZ-1234).",
99
99
  inputSchema: {
100
100
  code: z
101
101
  .string()
102
- .describe("AI Commander session code starting with 'AIC-' (e.g. AIC-WOLF-7421)"),
102
+ .describe("AI Commander session code starting with 'AIC-' (e.g. AIC-XYZ-1234)"),
103
103
  },
104
104
  }, async ({ code }) => {
105
105
  const res = await fetch(`${SERVER_URL}/mcp`, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aicommander/mcp",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Universal stdio MCP server for AI Commander — connect Codex CLI, Claude Desktop, or any stdio MCP client to remote machines by session code.",
5
5
  "keywords": [
6
6
  "mcp",