@mcp-s/cli 0.0.11 → 0.0.12

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/SKILL.md CHANGED
@@ -41,11 +41,21 @@ Every command consumes tokens. Pick the cheapest operation that gets the job don
41
41
  - **Pipe output** through shell tools (`head`, `grep`, `jq`) to trim large responses before they enter context.
42
42
  - Never fetch a full list when the user only needs a few fields (names, links, IDs).
43
43
 
44
+ ### When a filter produces no output
45
+
46
+ When you pipe through a filter and get empty output, **do not** fall back to the raw unfiltered call. Use the **probe-then-filter** pattern:
47
+
48
+ 1. **Probe**: fetch a *single* item (e.g., `limit: 1`, or a dedicated get-one tool) without any pipe.
49
+ 2. **Learn**: read the response to understand the actual field names, nesting, and types.
50
+ 3. **Re-run**: call the bulk tool again with a corrected filter based on what you learned.
51
+
44
52
  ### Decision heuristic
45
53
 
46
54
  - User mentions a specific tool or domain keyword → `grep` for it.
47
55
  - User asks a broad question across all tools → list tools first, then act.
56
+ - Task involves multiple items of the same type → use one bulk/list call, not N individual calls.
48
57
  - Tool may return large payloads → use filter params + pipe to trim output.
58
+ - Filter script produced no output → **probe one item** to learn the shape, then re-run with a corrected filter. Never fall back to the raw unfiltered call.
49
59
 
50
60
  ## Examples
51
61
 
package/dist/SKILL.md CHANGED
@@ -41,11 +41,21 @@ Every command consumes tokens. Pick the cheapest operation that gets the job don
41
41
  - **Pipe output** through shell tools (`head`, `grep`, `jq`) to trim large responses before they enter context.
42
42
  - Never fetch a full list when the user only needs a few fields (names, links, IDs).
43
43
 
44
+ ### When a filter produces no output
45
+
46
+ When you pipe through a filter and get empty output, **do not** fall back to the raw unfiltered call. Use the **probe-then-filter** pattern:
47
+
48
+ 1. **Probe**: fetch a *single* item (e.g., `limit: 1`, or a dedicated get-one tool) without any pipe.
49
+ 2. **Learn**: read the response to understand the actual field names, nesting, and types.
50
+ 3. **Re-run**: call the bulk tool again with a corrected filter based on what you learned.
51
+
44
52
  ### Decision heuristic
45
53
 
46
54
  - User mentions a specific tool or domain keyword → `grep` for it.
47
55
  - User asks a broad question across all tools → list tools first, then act.
56
+ - Task involves multiple items of the same type → use one bulk/list call, not N individual calls.
48
57
  - Tool may return large payloads → use filter params + pipe to trim output.
58
+ - Filter script produced no output → **probe one item** to learn the shape, then re-run with a corrected filter. Never fall back to the raw unfiltered call.
49
59
 
50
60
  ## Examples
51
61
 
package/dist/daemon.js CHANGED
@@ -414,7 +414,7 @@ import { join as join2 } from "path";
414
414
  import { fileURLToPath } from "url";
415
415
 
416
416
  // src/version.ts
417
- var VERSION = "0.0.11";
417
+ var VERSION = "0.0.12";
418
418
 
419
419
  // src/client.ts
420
420
  function getRetryConfig(settings) {
package/dist/index.js CHANGED
@@ -1298,7 +1298,7 @@ async function cleanupOrphanedDaemons() {
1298
1298
  }
1299
1299
 
1300
1300
  // src/version.ts
1301
- var VERSION = "0.0.11";
1301
+ var VERSION = "0.0.12";
1302
1302
 
1303
1303
  // src/client.ts
1304
1304
  function getRetryConfig(settings) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcp-s/cli",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "description": "A lightweight CLI for connecting AI agents to the Webrix MCP Gateway",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",