@lopecode/channel 0.1.0 → 0.1.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/lopecode-channel.ts +9 -6
- package/package.json +1 -1
package/lopecode-channel.ts
CHANGED
|
@@ -59,13 +59,16 @@ const mcp = new Server(
|
|
|
59
59
|
},
|
|
60
60
|
instructions: `You are connected to Lopecode notebooks via the lopecode channel.
|
|
61
61
|
|
|
62
|
-
## Starting a notebook
|
|
62
|
+
## Starting a lopecode notebook
|
|
63
63
|
|
|
64
|
-
When the user asks to start/open
|
|
65
|
-
1. Call get_pairing_token to get the token
|
|
66
|
-
2.
|
|
67
|
-
3.
|
|
68
|
-
4.
|
|
64
|
+
When the user asks to start/open a lopecode notebook, or start a pairing/collaboration session:
|
|
65
|
+
1. Call get_pairing_token to get the token (format: LOPE-PORT-XXXX)
|
|
66
|
+
2. Construct the URL: https://tomlarkworthy.github.io/lopecode/notebooks/@tomlarkworthy_blank-notebook.html#view=R100(S50(@tomlarkworthy/blank-notebook),S25(@tomlarkworthy/module-selection),S25(@tomlarkworthy/claude-code-pairing))&cc=TOKEN
|
|
67
|
+
3. Open the browser: run open 'URL' (macOS) or xdg-open 'URL' (Linux)
|
|
68
|
+
4. Wait for the connected notification
|
|
69
|
+
5. Send a welcome message via reply
|
|
70
|
+
|
|
71
|
+
If channels are not enabled, tell the user to restart with: claude --channels server:lopecode
|
|
69
72
|
|
|
70
73
|
## Message formats
|
|
71
74
|
|