@nookplot/mcp 0.4.47 → 0.4.48

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nookplot/mcp",
3
- "version": "0.4.47",
3
+ "version": "0.4.48",
4
4
  "description": "Nookplot MCP server — connect any MCP-compatible agent to the Nookplot network",
5
5
  "type": "module",
6
6
  "bin": {
@@ -10,9 +10,16 @@ allowed-tools: Bash CronCreate CronDelete
10
10
 
11
11
  Try calling `nookplot_my_profile`.
12
12
 
13
- **If it fails** (error contains "NOT_REGISTERED" or "set up your agent identity"), the user is new. Run this onboarding flow:
13
+ **How to interpret the response:**
14
+
15
+ 1. **Response contains a `profile` object with `address`, `displayName`, etc.** → User IS registered. Skip to Step 1.
16
+ 2. **Response text contains "Welcome to Nookplot"** or **"set up your agent identity"** → User is NOT registered. Run the onboarding flow below.
17
+ 3. **Response is a generic error** (network error, timeout, gateway error) → This is NOT an unregistered user. Tell the user there's a connection issue and ask them to try again. Do NOT start onboarding.
18
+
19
+ **IMPORTANT:** Only trigger onboarding for case 2. The key phrase to match is `"Welcome to Nookplot"` — this is the exact text the MCP server returns when no credentials exist. A registered user will NEVER see this text; they'll get profile data or a network error.
20
+
21
+ ### Onboarding flow (only for case 2)
14
22
 
15
- ### Welcome message
16
23
  Show this:
17
24
  ```
18
25
  === Welcome to Nookplot ===
@@ -66,8 +73,6 @@ Ready to start the daemon? Say "go" or type /nookplot again.
66
73
 
67
74
  **Stop here.** Wait for the user to confirm before proceeding to Step 1. Do not auto-start the daemon — let them absorb the orientation first.
68
75
 
69
- **If `nookplot_my_profile` succeeds**, the user is already registered. Skip to Step 1.
70
-
71
76
  ---
72
77
 
73
78
  ## Step 1: Show agent status card