youtube-knowledge-mcp 1.1.0 → 1.1.1
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
|
@@ -257,14 +257,14 @@ Download a YouTube video to local disk.
|
|
|
257
257
|
|
|
258
258
|
Save a summary or skill note to your local YouTube knowledge library.
|
|
259
259
|
|
|
260
|
-
| Parameter
|
|
261
|
-
|
|
|
262
|
-
| `
|
|
263
|
-
| `title`
|
|
264
|
-
| `content`
|
|
265
|
-
| `
|
|
266
|
-
| `tags`
|
|
267
|
-
| `channel`
|
|
260
|
+
| Parameter | Type | Description |
|
|
261
|
+
| ------------- | -------- | ---------------------------------- |
|
|
262
|
+
| `videoId` | string | YouTube video ID |
|
|
263
|
+
| `title` | string | Video title |
|
|
264
|
+
| `content` | string | Content to save (markdown format) |
|
|
265
|
+
| `contentType` | string | "summary" or "skill" |
|
|
266
|
+
| `tags` | string[] | Tags for categorization (optional) |
|
|
267
|
+
| `channel` | string | Channel name (optional) |
|
|
268
268
|
|
|
269
269
|
#### list_library
|
|
270
270
|
|
|
@@ -360,3 +360,11 @@ MIT License - see [LICENSE](LICENSE) for details.
|
|
|
360
360
|
|
|
361
361
|
- [yt-dlp](https://github.com/yt-dlp/yt-dlp) for YouTube extraction
|
|
362
362
|
- [Anthropic](https://anthropic.com) for the Model Context Protocol
|
|
363
|
+
|
|
364
|
+
---
|
|
365
|
+
|
|
366
|
+
<div align="center">
|
|
367
|
+
<strong>Built by <a href="https://github.com/teobouancheau">teobouancheau</a></strong>
|
|
368
|
+
<br>
|
|
369
|
+
<sub>AI + YouTube knowledge to supercharge content creation</sub>
|
|
370
|
+
</div>
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const saveToLibrarySchema: {
|
|
3
|
-
|
|
3
|
+
videoId: z.ZodString;
|
|
4
4
|
title: z.ZodString;
|
|
5
5
|
content: z.ZodString;
|
|
6
|
-
|
|
6
|
+
contentType: z.ZodDefault<z.ZodEnum<["summary", "skill"]>>;
|
|
7
7
|
channel: z.ZodOptional<z.ZodString>;
|
|
8
8
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
9
9
|
};
|
|
10
|
-
export declare function saveToLibraryHandler({
|
|
11
|
-
|
|
10
|
+
export declare function saveToLibraryHandler({ videoId, title, content, contentType, channel, tags, }: {
|
|
11
|
+
videoId: string;
|
|
12
12
|
title: string;
|
|
13
13
|
content: string;
|
|
14
|
-
|
|
14
|
+
contentType: 'summary' | 'skill';
|
|
15
15
|
channel?: string;
|
|
16
16
|
tags?: string[];
|
|
17
17
|
}): Promise<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"save-to-library.d.ts","sourceRoot":"","sources":["../../src/tools/save-to-library.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,mBAAmB;;;;;;;CAiB/B,CAAC;AAEF,wBAAsB,oBAAoB,CAAC,EACzC,
|
|
1
|
+
{"version":3,"file":"save-to-library.d.ts","sourceRoot":"","sources":["../../src/tools/save-to-library.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,mBAAmB;;;;;;;CAiB/B,CAAC;AAEF,wBAAsB,oBAAoB,CAAC,EACzC,OAAO,EACP,KAAK,EACL,OAAO,EACP,WAAW,EACX,OAAO,EACP,IAAI,GACL,EAAE;IACD,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,SAAS,GAAG,OAAO,CAAC;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;CACjB;;;;;GAwBA"}
|
|
@@ -2,12 +2,12 @@ import { z } from 'zod';
|
|
|
2
2
|
import { saveToLibrary } from '../utils/storage.js';
|
|
3
3
|
import { textContent } from '../utils/format.js';
|
|
4
4
|
export const saveToLibrarySchema = {
|
|
5
|
-
|
|
5
|
+
videoId: z.string().describe('YouTube video ID (e.g., dQw4w9WgXcQ)'),
|
|
6
6
|
title: z.string().describe('Video title for library indexing'),
|
|
7
7
|
content: z
|
|
8
8
|
.string()
|
|
9
9
|
.describe('Content to save: summary, notes, or extracted skill in markdown format'),
|
|
10
|
-
|
|
10
|
+
contentType: z
|
|
11
11
|
.enum(['summary', 'skill'])
|
|
12
12
|
.default('summary')
|
|
13
13
|
.describe('Type of content: "summary" for video summaries, "skill" for extracted techniques or knowledge'),
|
|
@@ -17,16 +17,16 @@ export const saveToLibrarySchema = {
|
|
|
17
17
|
.optional()
|
|
18
18
|
.describe('Tags for categorization and filtering (e.g., ["machine-learning", "tutorial"])'),
|
|
19
19
|
};
|
|
20
|
-
export async function saveToLibraryHandler({
|
|
20
|
+
export async function saveToLibraryHandler({ videoId, title, content, contentType, channel, tags, }) {
|
|
21
21
|
const result = await saveToLibrary({
|
|
22
|
-
videoId
|
|
22
|
+
videoId,
|
|
23
23
|
title,
|
|
24
24
|
content,
|
|
25
|
-
contentType
|
|
25
|
+
contentType,
|
|
26
26
|
channel,
|
|
27
27
|
tags,
|
|
28
28
|
});
|
|
29
|
-
const lines = [
|
|
29
|
+
const lines = [`Saved ${contentType} to library`, '', title];
|
|
30
30
|
if (channel) {
|
|
31
31
|
lines.push(`by ${channel}`);
|
|
32
32
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"save-to-library.js","sourceRoot":"","sources":["../../src/tools/save-to-library.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,MAAM,CAAC,MAAM,mBAAmB,G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