@usercase/mcp 0.2.8-next.6 → 0.2.9-next.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.
@@ -42,7 +42,7 @@ One research is **one flow a participant can walk in one sitting**: 1–4 tasks,
42
42
 
43
43
  **Tasks**
44
44
  - The title is a goal in the participant's words: what they want to get done, not how. Never name a button, a menu, a page or a route — that hands them the answer.
45
- - Use `info_text` only when the participant needs a situation to act in.
45
+ - Every task has `info_text`: one or two sentences, in the participant's words, on the situation they are in and why they would do this. It follows on from the previous task. Like the title, it never names a button, a menu, a page or a route.
46
46
  - Choose the success condition from the code:
47
47
  - `url_entry` — reaching a page proves the goal: `target_url` is that page's path, with `:name` for the parts that change (names from the route definitions).
48
48
  - `element_click` — the goal is done at a click: `xpath_url` is the page where the click happens, `click_text` is the element's exact visible text, `xpath` finds the element by that text.
package/mcp/server.js CHANGED
@@ -694,7 +694,7 @@ server.registerTool(
694
694
  .array(
695
695
  z.object({
696
696
  title: z.string().describe("The goal, in the participant's words. Never names buttons, menus or pages"),
697
- info_text: z.string().optional().describe("The situation the participant is in, if needed"),
697
+ info_text: z.string().min(1).describe("Required. The situation the participant is in and why they would do this, one or two sentences. Never names buttons, menus or pages"),
698
698
  success_condition: z.enum(["url_entry", "element_click", "time_on_page"]),
699
699
  target_url: z.string().optional().describe("url_entry: the page path that means done"),
700
700
  xpath_url: z.string().optional().describe("element_click: the page path where the click happens"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usercase/mcp",
3
- "version": "0.2.8-next.6",
3
+ "version": "0.2.9-next.0",
4
4
  "description": "Virtual users that browse your website and tell you what they thought — an MCP server for Claude Code",
5
5
  "license": "UNLICENSED",
6
6
  "homepage": "https://usercase.io",