@clipy/mcp 0.9.1 → 0.11.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 CHANGED
@@ -13,6 +13,10 @@ recording into a Linear ticket"_ without leaving your agent — and, with the `r
13
13
  tool, **record a web app headlessly** and get it back as a Clipy recording (_"build the
14
14
  feature, then record the outcome"_).
15
15
 
16
+ The canonical cross-surface operating contract is
17
+ **[clipy.online/agents.md](https://clipy.online/agents.md)**. For the exact
18
+ connected MCP version and schemas, use the standard `tools/list` request.
19
+
16
20
  The read tools need the `recordings:read` scope, which every key gets by default. The
17
21
  write tools — `record`, the session tools (`start_recording`, `add_marker`, `add_chapter`,
18
22
  `stop_recording`, `abort_recording`), and `replace_transcript` — additionally need the
@@ -96,6 +100,7 @@ or the Windsurf MCP config) directly:
96
100
 
97
101
  | Tool | What it does |
98
102
  | --- | --- |
103
+ | `search_memory` | **Search the whole Clipy memory at once** — every screen recording the user made *and* every video they imported — returning the matching moments with timestamps and a URL that opens at that point. Matching is semantic as well as literal, so "login flow" finds a moment where someone said "the authentication screen". Reach for this first when the user refers to something they showed, recorded, or watched; the per-library tools below each see only half the picture. Each hit carries `kind` (`recording` or `context`) to tell you which tool to read next, a `resolution` saying whether its timestamp is an exact moment or a ~50s span, and a `semantic.status` to check before treating an empty result as "nothing recorded". |
99
104
  | `search_recordings` | Search your recordings by keyword (title + description). |
100
105
  | `list_recordings` | List your most recent recordings. |
101
106
  | `get_recording` | Metadata for one recording (status, duration, transcript/summary status). |
package/dist/index.js CHANGED
@@ -34,7 +34,7 @@ import { Readable } from "node:stream";
34
34
  import { pipeline } from "node:stream/promises";
35
35
  const API_URL = (process.env.CLIPY_API_URL || "https://clipy.online").replace(/\/+$/, "");
36
36
  const API_KEY = process.env.CLIPY_API_KEY;
37
- const SERVER_VERSION = "0.9.1";
37
+ const SERVER_VERSION = "0.11.0";
38
38
  // The key is checked lazily (per tool call, not at startup) so the server can
39
39
  // start and answer introspection (initialize / tools/list) in keyless
40
40
  // environments like directory health checks.
@@ -976,6 +976,30 @@ function normalizeId(input) {
976
976
  }
977
977
  return trimmed;
978
978
  }
979
+ server.tool("search_memory", "Search EVERYTHING in the user's Clipy memory at once — every screen recording they made AND every video they imported or watched (YouTube, local files) — and get back the exact moments that match, with timestamps. This is the tool to reach for first when the user refers to something they 'showed you', 'recorded', 'watched', or 'went over'; the per-library tools (search_recordings, list_context_documents) only see half the picture. Matching is semantic as well as literal: 'login flow' finds a moment where someone said 'the authentication screen'. Each result carries kind ('recording' or 'context'), the title, startMs, a plain-text snippet of what was said, and a URL that opens at that moment. Read next: get_transcript or get_recording for a 'recording' hit, read_context_document for a 'context' hit — pass the result's publicId. Read `semantic.status` before trusting an empty result: 'ok' means the search ran fully (so nothing found really does mean nothing recorded), while 'unavailable' or 'failed' means the semantic index did not run and these are KEYWORD-ONLY results — say so rather than concluding the user has nothing on the topic, and retry with more literal phrasings. Each hit's `resolution` says how precise its timestamp is: 'lexical' and 'refined' are exact moments, 'window' means startMs..endMs is a ~50-second SPAN to look in rather than a precise point, and 'document' means the match is about the whole recording and has no timestamp — do not quote a window or document hit as an exact time.", {
980
+ query: z
981
+ .string()
982
+ .min(3)
983
+ .max(512)
984
+ .describe("What to look for, in natural language — a topic, phrase, or thing that was said or shown. 3-512 characters."),
985
+ kinds: z
986
+ .array(z.enum(["recording", "context"]))
987
+ .optional()
988
+ .describe("Restrict the search: 'recording' = the user's own screen recordings, 'context' = imported/watched videos. Omit to search both, which is usually right."),
989
+ limit: z.number().int().min(1).max(50).optional().describe("Max results (default 20)."),
990
+ }, async ({ query, kinds, limit }) => {
991
+ try {
992
+ const params = new URLSearchParams({ q: query });
993
+ if (kinds && kinds.length > 0)
994
+ params.set("kinds", kinds.join(","));
995
+ if (limit)
996
+ params.set("limit", String(limit));
997
+ return ok(await api(`/api/v1/search?${params.toString()}`));
998
+ }
999
+ catch (e) {
1000
+ return fail(e.message);
1001
+ }
1002
+ });
979
1003
  server.tool("search_recordings", "Search the user's Clipy screen recordings by keyword (matches title + description). Returns recordings with their processing/transcript/summary status so you can pick one to read.", {
980
1004
  query: z.string().describe("Keywords to search recording titles and descriptions."),
981
1005
  status: z
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clipy/mcp",
3
- "version": "0.9.1",
3
+ "version": "0.11.0",
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",