@clipy/mcp 0.9.1 → 0.10.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 +1 -0
- package/dist/index.js +25 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -111,6 +111,7 @@ or the Windsurf MCP config) directly:
|
|
|
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. |
|
|
114
|
+
| `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". |
|
|
114
115
|
| `list_context_documents` | List the user's **context documents** — YouTube videos and local video files they imported with `clipy context import`, so agents can read them. A separate library from their own screen recordings. |
|
|
115
116
|
| `get_context_document` | One context document's metadata: source, duration, tags, the server's classification (video type, whether visual evidence is needed, planned moments), and which transcript/frames exist. Not the transcript itself. |
|
|
116
117
|
| `read_context_document` | Read a context document as compiled markdown — header, metadata, then the timestamped transcript with frame captions interleaved. Takes `startMs`/`endMs` so you can walk a two-hour video section by section instead of flooding your context. |
|
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.
|
|
37
|
+
const SERVER_VERSION = "0.10.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.
|
|
3
|
+
"version": "0.10.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",
|