@fullstackcraftllc/codevideo-mcp 1.0.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/LICENSE +21 -0
- package/README.md +85 -0
- package/bin/darwin-arm64/codevideo-cli +0 -0
- package/bin/darwin-x64/codevideo-cli +0 -0
- package/bin/linux-x64/codevideo-cli +0 -0
- package/bin/win32-x64/codevideo-cli.exe +0 -0
- package/dist/index.js +1372 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/prompts/instructions_to_create_a_course.d.ts +1 -0
- package/dist/src/prompts/instructions_to_create_lesson_actions.d.ts +1 -0
- package/dist/src/prompts/instructions_to_create_lesson_video.d.ts +1 -0
- package/dist/src/resources/get_action_names.d.ts +4 -0
- package/dist/src/resources/get_example_lesson.d.ts +1 -0
- package/dist/src/tools/add_actions_to_lesson.d.ts +2 -0
- package/dist/src/tools/add_final_snapshot_to_lesson.d.ts +2 -0
- package/dist/src/tools/add_initial_snapshot_to_lesson.d.ts +2 -0
- package/dist/src/tools/add_lesson_to_course.d.ts +2 -0
- package/dist/src/tools/create_course_with_initial_metadata.d.ts +1 -0
- package/dist/src/tools/critique_video_using_gemini.d.ts +2 -0
- package/dist/src/tools/get_current_actions.d.ts +3 -0
- package/dist/src/tools/get_empty_lesson_snapshot.d.ts +1 -0
- package/dist/src/tools/get_final_lesson_snapshot.d.ts +2 -0
- package/dist/src/tools/get_initial_lesson_state_from_local_repo.d.ts +1 -0
- package/dist/src/tools/is_repeatable_action.d.ts +2 -0
- package/dist/src/tools/make_blog_post.d.ts +2 -0
- package/dist/src/tools/make_html_web_page.d.ts +2 -0
- package/dist/src/tools/make_video.d.ts +8 -0
- package/dist/src/tools/set_current_actions.d.ts +2 -0
- package/dist/src/tools/validate_actions.d.ts +6 -0
- package/dist/src/utils/getBinaryPath.d.ts +1 -0
- package/package.json +65 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 CodeVideo
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# codevideo-mcp
|
|
2
|
+
|
|
3
|
+
The MCP server for CodeVideo.
|
|
4
|
+
|
|
5
|
+
Create software educational content using natural language.
|
|
6
|
+
|
|
7
|
+
## Examples:
|
|
8
|
+
|
|
9
|
+
Creation:
|
|
10
|
+
- "Build a video lesson on how to use the `useState` hook in React"
|
|
11
|
+
- "Can you create a video lesson compare and contrasting how to program concurrently in C#, Go, and Rust?"
|
|
12
|
+
- Can you give me a markdown blog post on how to use the `useState` hook in React?"
|
|
13
|
+
|
|
14
|
+
Conversion:
|
|
15
|
+
- "Please convert these CodeVideo JSON actions to a video"
|
|
16
|
+
- "Convert these CodeVideo JSON actions to a blog post"
|
|
17
|
+
- "Convert these CodeVideo JSON actions to HTML"
|
|
18
|
+
|
|
19
|
+
Validation:
|
|
20
|
+
- "Are these CodeVideo JSON actions valid?"
|
|
21
|
+
|
|
22
|
+
## Usage with Claude Desktop
|
|
23
|
+
|
|
24
|
+
Simply drop the following into your `claude_desktop_config.json` file:
|
|
25
|
+
|
|
26
|
+
```json
|
|
27
|
+
{
|
|
28
|
+
// ... other MCP servers
|
|
29
|
+
"codevideo-mcp": {
|
|
30
|
+
"command": "npx",
|
|
31
|
+
"args": [
|
|
32
|
+
"-y",
|
|
33
|
+
"@fullstackcraftllc/codevideo-mcp@latest"
|
|
34
|
+
],
|
|
35
|
+
"env": {
|
|
36
|
+
"ELEVENLABS_API_KEY": "your-elevenlabs-api-key",
|
|
37
|
+
"ELEVENLABS_VOICE_ID": "your-elevenlabs-voice-id"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
// ... other MCP servers
|
|
41
|
+
}
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Be sure to restart Claude after modifying this config!
|
|
45
|
+
|
|
46
|
+
After restarting Claude Desktop, if installation was successful, you should see `codevideo-mcp` in the list of installed MCPs:
|
|
47
|
+
|
|
48
|
+

|
|
49
|
+
|
|
50
|
+
## Local Development
|
|
51
|
+
|
|
52
|
+
Clone this repository:
|
|
53
|
+
|
|
54
|
+
```shell
|
|
55
|
+
git clone https://github.com/codevideo/codevideo-mcp.git
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
Then, install the dependencies and build the project:
|
|
59
|
+
|
|
60
|
+
```shell
|
|
61
|
+
cd codevideo-mcp
|
|
62
|
+
npm install
|
|
63
|
+
npm run build
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Then, use the following JSON to run the local version on your Claude Desktop:
|
|
67
|
+
|
|
68
|
+
```json
|
|
69
|
+
// ... other MCP servers
|
|
70
|
+
"codevideo-mcp": {
|
|
71
|
+
"command": "npx",
|
|
72
|
+
"args": [
|
|
73
|
+
"tsx",
|
|
74
|
+
"/path/to/your/clone/of/codevideo-mcp/src/index.ts"
|
|
75
|
+
],
|
|
76
|
+
"env": {
|
|
77
|
+
"PATH_TO_CODEVIDEO_CLI": "/path/to/your/codevideo-cli",
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
// ... other MCP servers
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
## Known Issues
|
|
84
|
+
|
|
85
|
+
- Currently, creating entire courses seems to be a bit flakey and perhaps too large for the context window for Claude. We're working on refining the full course flow. Single lesson generation seems to work well.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|