@pergy-ai/mcp 0.2.0 → 0.2.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
@@ -4,21 +4,20 @@ A voice inbox for your AI agents. This MCP server lets an agent **notify a user*
4
4
 
5
5
  ## Install
6
6
 
7
- No clone needed run it with `npx`:
7
+ No clone needed. Add it to Claude Code (`-s user` = available in every project; drop it for just the current one):
8
8
 
9
9
  ```bash
10
- npx @pergy-ai/mcp
10
+ claude mcp add pergy -s user -- npx -y @pergy-ai/mcp
11
11
  ```
12
12
 
13
- Or wire it into an MCP client config:
13
+ Or wire it into any MCP client config:
14
14
 
15
15
  ```json
16
16
  {
17
17
  "mcpServers": {
18
18
  "pergy": {
19
19
  "command": "npx",
20
- "args": ["-y", "@pergy-ai/mcp"],
21
- "env": { "PERGY_BACKEND_URL": "https://pergy.ai" }
20
+ "args": ["-y", "@pergy-ai/mcp"]
22
21
  }
23
22
  }
24
23
  }
@@ -30,6 +29,9 @@ First-time pairing (link the server to your Pergy account):
30
29
  npx -p @pergy-ai/mcp pergy-mcp-onboard
31
30
  ```
32
31
 
32
+ It talks to the hosted backend by default — no config needed. Set
33
+ `PERGY_BACKEND_URL=http://localhost:3000` only for local development.
34
+
33
35
  ## Tools
34
36
 
35
37
  - **`notify_user`** — notify the user (three standalone context tiers: short / medium / long, plus optional options — each an answerable choice that can carry a sandboxed `html` or `image` preview for visual "pick one" decisions — visuals, `urgency`, and `parentId` for a clarification). Returns a request id + thread id.
package/dist/index.js CHANGED
@@ -163,7 +163,7 @@ import { zodToJsonSchema } from "zod-to-json-schema";
163
163
  import { existsSync, readFileSync } from "fs";
164
164
  import { homedir } from "os";
165
165
  import { join } from "path";
166
- var BACKEND_URL = process.env.PERGY_BACKEND_URL ?? "http://localhost:3000";
166
+ var BACKEND_URL = process.env.PERGY_BACKEND_URL ?? "https://pergy.ai";
167
167
  var TOKEN_PATH = join(homedir(), ".pergy", "token.json");
168
168
  function loadToken() {
169
169
  if (process.env.PERGY_TOKEN) return process.env.PERGY_TOKEN;
package/dist/onboard.js CHANGED
@@ -5,7 +5,7 @@ import { execFile } from "child_process";
5
5
  import { mkdirSync, writeFileSync } from "fs";
6
6
  import { homedir, platform } from "os";
7
7
  import { join } from "path";
8
- var BACKEND_URL = process.env.PERGY_BACKEND_URL ?? "http://localhost:3000";
8
+ var BACKEND_URL = process.env.PERGY_BACKEND_URL ?? "https://pergy.ai";
9
9
  var AGENT_NAME = process.env.PERGY_AGENT ?? "mcp-agent";
10
10
  var TOKEN_PATH = join(homedir(), ".pergy", "token.json");
11
11
  function openBrowser(url) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pergy-ai/mcp",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Pergy MCP server — a voice inbox for your AI agents. Lets an agent notify a user and await their reply.",
5
5
  "license": "MIT",
6
6
  "type": "module",