@zeph-to/mcp-server 2.2.0 → 2.3.0
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 +3 -1
- package/dist/tools/ask.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -187,7 +187,9 @@ Returns: `{ actionId: "yes", timedOut: false }`
|
|
|
187
187
|
|
|
188
188
|
### zeph_ask
|
|
189
189
|
|
|
190
|
-
Ask the user a question with
|
|
190
|
+
Ask the user a question with quick-reply buttons and a text input field. Combines prompt (buttons) and input (text) in a single notification. Blocks until response or timeout.
|
|
191
|
+
|
|
192
|
+
`actions` is the steering surface: pass 2–4 buttons on nearly every ask (the next-step candidates plus a safe Done-like `fallback`) and leave it out only when the answer is inherently free-form text — a bare text box on a "done — what next?" ask gives the phone nothing to tap.
|
|
191
193
|
|
|
192
194
|
Requires `ZEPH_HOOK_ID`.
|
|
193
195
|
|
package/dist/tools/ask.js
CHANGED
|
@@ -46,7 +46,7 @@ const settleRemoteState = (answer) => {
|
|
|
46
46
|
};
|
|
47
47
|
const registerAskTool = (server, client, config, waiter) => {
|
|
48
48
|
server.registerTool('zeph_ask', {
|
|
49
|
-
description: 'Ask the user a question with
|
|
49
|
+
description: 'Ask the user a question with quick-reply buttons and a text input field. Combines prompt (buttons) and input (text) in a single notification. The user can either tap a button or type a response. `actions` is the steering surface, not decoration: pass 2–4 buttons on nearly every ask — the next-step candidates you would otherwise write as prose (next command, review, stop) plus a safe Done-like `fallback`. Leave `actions` out ONLY when the answer is inherently free-form text (a name, a path, a paragraph); a bare text box on a "done — what next?" ask leaves the phone with nothing to tap. Blocks until the user responds or the timeout is reached. Requires ZEPH_HOOK_ID environment variable. The user may also attach screenshots or files to the answer: those arrive as local absolute paths in the `attachments` field of the result, and reading them is part of reading the answer. NOTE: unlike zeph_notify and zeph_file, this tool is never end-to-end encrypted — the hook route it uses cannot carry the sender key — so do not put secrets in the question or expect a private answer.',
|
|
50
50
|
annotations: {
|
|
51
51
|
readOnlyHint: false,
|
|
52
52
|
destructiveHint: false,
|
|
@@ -65,7 +65,7 @@ const registerAskTool = (server, client, config, waiter) => {
|
|
|
65
65
|
.min(1)
|
|
66
66
|
.max(4)
|
|
67
67
|
.optional()
|
|
68
|
-
.describe('Quick-reply buttons (1-4). Omit
|
|
68
|
+
.describe('Quick-reply buttons (1-4). Expected on nearly every ask — the phone steers by tapping, so put the next-step candidates here (next command, review, stop) plus a Done-like fallback. Omit ONLY when the answer is inherently free-form text; never omit on a "done — what next?" ask.'),
|
|
69
69
|
placeholder: zod_1.z.string().optional().describe('Input field placeholder hint'),
|
|
70
70
|
inputType: zod_1.z
|
|
71
71
|
.enum(['text', 'multiline'])
|