@ziggs-ai/ziggs-mcp 0.1.8 → 0.1.10

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
@@ -154,9 +154,9 @@ Startup validates the key shape, expiry (JWT `exp`), and agent resolution — er
154
154
 
155
155
  ### 4. CLI smoke scripts
156
156
 
157
- ```bash
158
- cd agentplus
157
+ From the **repository root** ([github.com/ZiggsAI/agentplus](https://github.com/ZiggsAI/agentplus)):
159
158
 
159
+ ```bash
160
160
  # ZIG-222
161
161
  ZIGGS_OPERATOR_KEY=... ZIGGS_AGENT_ID=cursor-delegate \
162
162
  node scripts/smoke-ziggs-mcp.mjs
@@ -187,7 +187,7 @@ ZIGGS_SMOKE_CHAT_ID=... \
187
187
 
188
188
  | Tool | Maps to |
189
189
  |------|---------|
190
- | `ziggs_inbox` | `GET /agent-api/v1/inbox` + `POST .../ack` (ZIG-434) |
190
+ | `ziggs_inbox` | `GET /inbox` + `POST /inbox/ack` (ZIG-434, ZIG-491) |
191
191
  | `ziggs_discover_context` | `GET /context/discovery` |
192
192
  | `ziggs_read_context` | `GET /context/read/:type` |
193
193
  | `ziggs_record_artifact` | `POST /artifacts` |
@@ -213,7 +213,6 @@ ZIGGS_SMOKE_CHAT_ID=... \
213
213
  ## Develop
214
214
 
215
215
  ```bash
216
- cd agentplus
217
216
  npm install
218
217
  npm run build -w @ziggs-ai/ziggs-mcp
219
218
  npm test -w @ziggs-ai/ziggs-mcp
@@ -15,7 +15,7 @@ Manual smoke runbook for the **real claude.ai connector UI**. Automated coverage
15
15
  Automated probe (same guarantee, no claude.ai UI):
16
16
 
17
17
  ```bash
18
- cd agentplus
18
+ # from github.com/ZiggsAI/agentplus clone root
19
19
  node scripts/smoke-ziggs-mcp-oauth-z474-consent-probe.mjs --auto
20
20
  ```
21
21
 
@@ -94,7 +94,7 @@ If you are already logged in, you still see this screen (ZIG-474). You are **not
94
94
  Full API path smoke (no claude.ai UI):
95
95
 
96
96
  ```bash
97
- cd agentplus
97
+ # from github.com/ZiggsAI/agentplus clone root
98
98
  node scripts/smoke-ziggs-mcp-oauth-z468-e2e.mjs --auto
99
99
  node scripts/smoke-ziggs-mcp-oauth-z474-consent-probe.mjs --auto
100
100
  ```
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "mcpServers": {
3
3
  "ziggs": {
4
+ "type": "http",
4
5
  "url": "https://mcp.ziggsai.com/mcp"
5
6
  }
6
7
  }
@@ -5,9 +5,12 @@ Verify the **fresh Claude Code** journey: empty repo, `.mcp.json` only (no opera
5
5
  Automated prerequisites + Path A parity (no UI):
6
6
 
7
7
  ```bash
8
- cd agentplus
8
+ # from github.com/ZiggsAI/agentplus clone root
9
9
  node scripts/smoke-zig-500-v4-path.mjs --discovery-only
10
10
  node scripts/smoke-zig-500-v4-path.mjs --auto
11
+ node scripts/smoke-zig-500-v4-claude-code.mjs # Claude Code CLI parity
12
+ # or:
13
+ ./scripts/run-zig-500-v4-claude-code.sh
11
14
  ```
12
15
 
13
16
  ---
@@ -19,11 +22,12 @@ node scripts/smoke-zig-500-v4-path.mjs --auto
19
22
  | ZIG-496 discovery (well-known, 401 docs) | `--discovery-only` | Client uses same URLs |
20
23
  | OAuth → Bearer → full tool surface | `--auto` or smoke creds | Connect in IDE |
21
24
  | No stub-only tools | fails if only `authenticate` / `complete_authentication` | Tool picker shows `ziggs_*` |
25
+ | Runtime tools work | `ziggs_connection_status` + `ziggs_inbox` | Same smoke in IDE |
22
26
  | Restart not required | N/A | Tools visible right after OAuth |
23
27
 
24
- **Path A (pass):** Native MCP OAuth — client discovers metadata, gets Bearer, `tools/list` returns ≥12 `ziggs_*` tools.
28
+ **Pass:** Native MCP OAuth — client discovers metadata, gets Bearer, `tools/list` returns ≥12 `ziggs_*` tools, and inbox/connection_status succeed.
25
29
 
26
- **Path B (fail → epic children 501–502):** OAuth succeeds but only stub auth tools appear — needs unauth MCP + `tools/list_changed` design in backend.
30
+ **Fail:** OAuth OK but tools empty, stub-only list, or inbox 404 → comment on [ZIG-500](https://linear.app/ziggsai/issue/ZIG-500) with tool list + smoke output.
27
31
 
28
32
  ---
29
33
 
@@ -37,6 +41,7 @@ Copy [`claude-code-remote-mcp.json`](claude-code-remote-mcp.json):
37
41
  {
38
42
  "mcpServers": {
39
43
  "ziggs": {
44
+ "type": "http",
40
45
  "url": "https://mcp.ziggsai.com/mcp"
41
46
  }
42
47
  }
@@ -52,19 +57,18 @@ Use a **throwaway directory** (no existing Ziggs plugin or stdio MCP).
52
57
  ### 3. Connect / authorize
53
58
 
54
59
  1. Claude Code should prompt for MCP OAuth (or open MCP settings).
55
- 2. Browser → Ziggs consent (`/app/oauth/mcp-consent`) → **Allow**.
60
+ 2. Browser → Ziggs consent (`/app/oauth/mcp-consent`) — pick **org** if you have teams → **Allow**.
56
61
  3. Return to Claude Code — check tool list.
57
62
 
58
63
  ### 4. Smoke tools (no restart)
59
64
 
60
65
  Ask Claude to call in order:
61
66
 
62
- 1. `ziggs_list_chats` or `ziggs_inbox`
63
- 2. `ziggs_send_message` (chat you belong to)
67
+ 1. `ziggs_connection_status` — confirm agent + org binding
68
+ 2. `ziggs_inbox` or `ziggs_list_chats`
69
+ 3. `ziggs_send_message` (chat you belong to)
64
70
 
65
- **Pass:** both succeed; tool picker shows many `ziggs_*` tools (not just 2 auth stubs).
66
-
67
- **Fail:** only `authenticate` / `complete_authentication`; or OAuth OK but tools empty until restart → comment on [ZIG-500](https://linear.app/ziggsai/issue/ZIG-500) with Path B.
71
+ **Pass:** all succeed; tool picker shows many `ziggs_*` tools (not just 2 auth stubs).
68
72
 
69
73
  ---
70
74
 
@@ -92,9 +96,9 @@ For dev or when OAuth is blocked, use [claude-code.md](claude-code.md) Option B
92
96
  | Symptom | Check |
93
97
  |---------|--------|
94
98
  | OAuth loop / 401 on tools | Re-run `smoke-zig-500-v4-path.mjs --auto`; revoke MCP in Agents dashboard → reconnect |
95
- | Only 2 stub tools | Path B — epic needs 501/502; paste tool list in Linear |
96
- | `app.ziggsai.com` in 401 `error` text | ZIG-496 fixed `docs` field; `error` string comes from pinned `@ziggs-ai/ziggs-mcp` npm — bump backend dep after publish |
97
- | Tools after restart only | ZIG-502 `tools/list_changed` candidate |
99
+ | Only 2 stub tools | Should not happen on current prod (Bearer-only `/mcp`); paste tool list in ZIG-500 |
100
+ | `ziggs_inbox` 404 | Backend must pin `@ziggs-ai/ziggs-mcp@0.1.9+` (ZIG-491 `/inbox` path); npm 0.1.10+ fixes Claude Code `.mcp.json` example (`type: http`) |
101
+ | Wrong org | Reconnect; pick org on consent screen (ZIG-504) |
98
102
 
99
103
  ---
100
104
 
@@ -106,9 +110,10 @@ Date:
106
110
  Claude Code version:
107
111
  Repo: empty + .mcp.json only (Y/N)
108
112
  Automated: smoke-zig-500-v4-path.mjs --discovery-only → pass/fail
109
- Automated: smoke-zig-500-v4-path.mjs --auto → Path A/B, N tools
113
+ Automated: smoke-zig-500-v4-path.mjs --auto → Path A, N tools, inbox pass/fail
110
114
  Manual OAuth connect: pass/fail
111
115
  Tool count after OAuth (no restart): __
112
- ziggs_inbox or ziggs_list_chats: pass/fail
116
+ ziggs_connection_status: pass/fail
117
+ ziggs_inbox: pass/fail
113
118
  Notes:
114
119
  ```
@@ -58,7 +58,7 @@ Ask Claude to call tools in order:
58
58
  Paste the session transcript in the PR when verifying ZIG-430, or run:
59
59
 
60
60
  ```bash
61
- cd agentplus
61
+ # from github.com/ZiggsAI/agentplus clone root
62
62
  ZIGGS_OPERATOR_KEY=<agent-scoped> node scripts/smoke-ziggs-mcp-z430-e2e.mjs
63
63
  ```
64
64
 
@@ -80,7 +80,7 @@ Points `authorization_servers` → `https://api.ziggsai.com` and lists MCP scope
80
80
  Automated parity probe:
81
81
 
82
82
  ```bash
83
- cd agentplus
83
+ # from github.com/ZiggsAI/agentplus clone root
84
84
  node scripts/probe-cursor-oauth-parity.mjs
85
85
  ```
86
86
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ziggs-ai/ziggs-mcp",
3
- "version": "0.1.8",
3
+ "version": "0.1.10",
4
4
  "description": "MCP server for Claude Code, Cursor, and other MCP hosts — act as your Ziggs delegate agent",
5
5
  "type": "module",
6
6
  "bin": {
@@ -34,14 +34,20 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@modelcontextprotocol/sdk": "^1.29.0",
37
- "@ziggs-ai/api-client": "^0.1.9",
37
+ "@ziggs-ai/api-client": "^0.1.11",
38
38
  "dotenv": "^16.6.1",
39
39
  "zod": "^3.24.2"
40
40
  },
41
41
  "engines": {
42
42
  "node": ">=20"
43
43
  },
44
- "keywords": ["ziggs", "mcp", "claude", "cursor", "model-context-protocol"],
44
+ "keywords": [
45
+ "ziggs",
46
+ "mcp",
47
+ "claude",
48
+ "cursor",
49
+ "model-context-protocol"
50
+ ],
45
51
  "license": "MIT",
46
52
  "files": [
47
53
  "dist",