@clipy/mcp 0.8.3 → 0.8.4

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 CHANGED
@@ -107,7 +107,7 @@ or the Windsurf MCP config) directly:
107
107
  | `get_agent_context` | The full agent-context bundle (summary + key moments + transcript) as markdown. |
108
108
  | `record` | **Record a web app headlessly** and upload it as a Clipy recording; returns its share + agent-context URLs. Accepts a `type` (recording kind), `viewports` (sweep several screen sizes into one video), `storageState` / `userDataDir`+`profileDirectory` / `initScript` (record behind a login), and timestamped `notes` that become the (silent) recording's transcript. Needs Playwright in this server's environment and an `ingest`-scoped key (see below). |
109
109
  | `start_recording` | **Start a recording session** that keeps recording while you work (drive the page with your own browser tools, run commands, …). Accepts `type`, `storageState` / `userDataDir`+`profileDirectory` / `initScript`, and `exposeCdp` (get a CDP endpoint + in-page `window.__clipyMark`/`window.__clipyChapter` bridge to drive the recorded page). Auto-stops + uploads at `maxSeconds` (default 600) so it can never run away. |
110
- | `add_marker` | Drop a narration marker into the active session (live clock, or backdate with `atSeconds`) — markers become the recording's transcript chapters. Can carry evidence in one of two provenances: **clipy-verified** (`assertSelector` / `assertText` / `assertUrl`) where Clipy checks the page itself, or **driver-attested** (`observed` + `verdict`) where you report what your own tooling saw. Outcomes render as a pass (✓), an explicit failure (✗, can abort via `failMode`), or **unverified** (⚠, never a silent pass), and are tallied in separate segments. Navigations + console errors are added automatically as `[auto]` marks. |
110
+ | `add_marker` | Drop a narration marker into the active session (live clock, or backdate with `atSeconds`) — markers become the recording's transcript chapters. Can carry evidence in one of two provenances: **clipy-verified** (`assertSelector` / `assertText` / `assertUrl`) where Clipy checks the page itself, or **driver-attested** (`observed` + `verdict`) where you report what your own tooling saw. Clipy-verified outcomes render with a verdict glyph (✓ pass, ✗ failure that can abort via `failMode`, ⚠ unverified — never a silent pass); driver-attested ones render with a weaker-looking **hedge glyph** (`≈`) so the two are never mistaken at a glance, and they are tallied in separate segments. Navigations + console errors are added automatically as `[auto]` marks. |
111
111
  | `add_chapter` | Drop a `=== CHAPTER: <label> ===` boundary into the active session — split a recording into named sections (ideal for before/after demos). |
112
112
  | `stop_recording` | Finish the session: close the browser, upload, return the share + agent-context URLs. |
113
113
  | `abort_recording` | Discard the active session; nothing is uploaded. |
@@ -182,7 +182,7 @@ separately, never pooled:
182
182
  | Provenance | How | What it means |
183
183
  | --- | --- | --- |
184
184
  | **clipy-verified** | `assertSelector` / `assertText` / `assertUrl` | Clipy checked the recorded page itself. Strongest evidence. Renders `[assert ✓ verified-by-clipy; …]`, or `[ASSERT ✗ verified-by-clipy; …]`, or `[ASSERT ⚠ clipy could not evaluate — …]` when it couldn't check. |
185
- | **driver-attested** | `observed` + `verdict` (both required) | *You* report what your own tooling saw. Clipy vouches only that you **said** it — not that it verified it — which is falsifiable against the recorded frames. Renders `[ASSERT ✓ driver-attested; observed=…]`. |
185
+ | **driver-attested** | `observed` + `verdict` (both required) | *You* report what your own tooling saw. Clipy vouches only that you **said** it — not that it verified it — which is falsifiable against the recorded frames. Renders with a **hedge glyph** rather than a verdict glyph: `[≈ ASSERT driver-attested; observed=…]`, or `[≈ FAILED driver-attested; observed=…]`. |
186
186
 
187
187
  Use **driver-attested** when your agent drives its own browser/tooling while Clipy records (e.g.
188
188
  `--source mac-screen` on the CLI) or when there's no Clipy-owned page to assert against. It's
package/dist/index.js CHANGED
@@ -33,7 +33,7 @@ import { Readable } from "node:stream";
33
33
  import { pipeline } from "node:stream/promises";
34
34
  const API_URL = (process.env.CLIPY_API_URL || "https://clipy.online").replace(/\/+$/, "");
35
35
  const API_KEY = process.env.CLIPY_API_KEY;
36
- const SERVER_VERSION = "0.8.3";
36
+ const SERVER_VERSION = "0.8.4";
37
37
  // The key is checked lazily (per tool call, not at startup) so the server can
38
38
  // start and answer introspection (initialize / tools/list) in keyless
39
39
  // environments like directory health checks.
@@ -2037,16 +2037,18 @@ async function applyMark(session, text, opts) {
2037
2037
  let failedForAbort = false;
2038
2038
  if (hasAttest) {
2039
2039
  // Driver-attested: Clipy vouches the agent SAID this, not that Clipy verified
2040
- // it — falsifiable against the frames, weaker than clipy-verified.
2040
+ // it — falsifiable against the frames, weaker than clipy-verified. The lane
2041
+ // leads with a HEDGE glyph (≈) instead of ✓/✗ so a skimming reviewer reads it
2042
+ // as weaker at a glance, not just on inspection. Byte-identical to the CLI.
2041
2043
  const observedStr = String(opts.observed).slice(0, 500);
2042
2044
  attestation = { verdict: opts.verdict, observed: observedStr };
2043
2045
  if (opts.verdict === "pass") {
2044
2046
  session.attestPassed += 1;
2045
- markText = `${markText} [ASSERT ✓ driver-attested; observed=${observedStr}]`;
2047
+ markText = `${markText} [≈ ASSERT driver-attested; observed=${observedStr}]`;
2046
2048
  }
2047
2049
  else {
2048
2050
  session.attestFailed += 1;
2049
- markText = `${markText} [ASSERT ✗ driver-attested; observed=${observedStr}]`;
2051
+ markText = `${markText} [≈ FAILED driver-attested; observed=${observedStr}]`;
2050
2052
  failedForAbort = true;
2051
2053
  }
2052
2054
  }
@@ -2120,7 +2122,7 @@ function coerceMarkOpts(raw) {
2120
2122
  verdict,
2121
2123
  };
2122
2124
  }
2123
- server.tool("add_marker", "Drop a live-timestamped narration marker into the active recording session ('reproduced the bug', 'the fix renders correctly at mobile width'). Markers become the recording's transcript chapters, so narrate as you work — they are how the recording stays agent-readable despite having no audio. A mark can carry evidence in ONE of two provenances, never both. (1) CLIPY-VERIFIED — assertSelector (element must exist), assertText (that element must contain the text; requires assertSelector), assertUrl (glob on the live URL): Clipy itself checks the recorded page, so this is the strongest evidence. (2) DRIVER-ATTESTED — observed + verdict (both required together): you report what YOUR tooling saw and whether it passed. Clipy vouches only that you SAID it — it did NOT verify it — which is falsifiable against the recorded frames: weaker than clipy-verified, far stronger than plain prose. Use driver-attested when your agent drives its OWN browser/tooling while Clipy records (e.g. via mac-screen) or when there is no Clipy-owned page to assert against. Failures are annotated into the mark as explicit FAILURES (never written as fact), tallied in their own segment of the recording's verification summary, and — with failMode 'abort' — discard the whole session. Marks default to the live recording clock; pass atSeconds to backdate one.", {
2125
+ server.tool("add_marker", "Drop a live-timestamped narration marker into the active recording session ('reproduced the bug', 'the fix renders correctly at mobile width'). Markers become the recording's transcript chapters, so narrate as you work — they are how the recording stays agent-readable despite having no audio. A mark can carry evidence in ONE of two provenances, never both. (1) CLIPY-VERIFIED — assertSelector (element must exist), assertText (that element must contain the text; requires assertSelector), assertUrl (glob on the live URL): Clipy itself checks the recorded page, so this is the strongest evidence. (2) DRIVER-ATTESTED — observed + verdict (both required together): you report what YOUR tooling saw and whether it passed. Clipy vouches only that you SAID it — it did NOT verify it — which is falsifiable against the recorded frames: weaker than clipy-verified, far stronger than plain prose. Use driver-attested when your agent drives its OWN browser/tooling while Clipy records (e.g. via mac-screen) or when there is no Clipy-owned page to assert against. The two lanes are rendered so the weaker one LOOKS weaker at a glance: clipy-verified marks lead with a verdict glyph (`[assert ✓ verified-by-clipy; …]` / `[ASSERT ✗ verified-by-clipy; …]`), while driver-attested marks lead with a HEDGE glyph instead (`[≈ ASSERT driver-attested; observed=…]` / `[≈ FAILED driver-attested; observed=…]`) — a skimming reviewer must never mistake an attestation for a verification. Failures are annotated into the mark as explicit FAILURES (never written as fact), tallied in their own segment of the recording's verification summary, and — with failMode 'abort' — discard the whole session. Marks default to the live recording clock; pass atSeconds to backdate one.", {
2124
2126
  text: z.string().min(1).max(1000).describe("What is happening right now."),
2125
2127
  atSeconds: z
2126
2128
  .number()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clipy/mcp",
3
- "version": "0.8.3",
3
+ "version": "0.8.4",
4
4
  "mcpName": "online.clipy/mcp",
5
5
  "description": "Model Context Protocol (MCP) server for Clipy — give Claude, Cursor, and other AI agents read access to your screen recordings' transcripts, AI summaries, and key moments with frames.",
6
6
  "license": "MIT",