codevideo-mcp

v1.5.0
@fullstackcraftllc/codevideo-mcp Checked 4 days ago Published 8 days ago

The MCP server for CodeVideo.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

codevideo_instructions_to_create_a_course

Instructions for building a multi-lesson course as one JSON object passed between tool calls (the older flow: codevideo_create_course_with_initial_metadata, then codevideo_add_lesson_to_course per lesson). For new courses prefer the server-side flow in codevideo_instructions_to_build_course_from_scratch.

ParameterTypeDescription
additionalContext *stringWhat to build, in your own words: the lessons for a course, or the topic for a lesson.

codevideo_instructions_to_create_lesson_actions

Instructions for writing the actions of a single lesson: the action reference, the authoring rules, and how to store and render the result.

ParameterTypeDescription
additionalContext *stringWhat to build, in your own words: the lessons for a course, or the topic for a lesson.

codevideo_instructions_to_create_lesson_video

Instructions for writing a single lesson and rendering it to video, either from an actions array (codevideo_make_video_from_actions) or from a full lesson object with snapshots (codevideo_make_video_from_lesson).

ParameterTypeDescription
additionalContext *stringWhat to build, in your own words: the lessons for a course, or the topic for a lesson.

codevideo_instructions_to_translate_actions

Generate translation instructions for CodeVideo actions. Pass actions array OR use previously stored actions from codevideo_set_current_actions (recommended workflow).

ParameterTypeDescription
targetLanguage *stringTarget language for translation (e.g., 'Spanish', 'French', 'German')
actionsToTranslationarrayArray of CodeVideo actions to translate. Optional if actions were previously stored with codevideo_set_current_actions

codevideo_get_empty_lesson_snapshot

An empty course snapshot (no files, editors or terminal output) as JSON, to use as the initialSnapshot of a lesson that starts from nothing.

codevideo_create_course_with_initial_metadata

Returns a new course object as JSON (id, name, description, primaryLanguage, no lessons) for the older flow where the course JSON is passed between tool calls. Nothing is stored; the server-side flow uses codevideo_create_course.

ParameterTypeDescription
description *string
id *string
name *string
primaryLanguage *string

codevideo_add_actions_to_lesson

Sets a lesson object's actions, replacing any it had, and returns the updated lesson as JSON. Nothing is stored; for stored courses use codevideo_set_lesson_actions.

ParameterTypeDescription
actions *array
lesson *object

codevideo_get_final_lesson_snapshot

Get the final state snapshot after applying CodeVideo actions. Pass actions array OR use previously stored actions from codevideo_set_current_actions (recommended workflow).

ParameterTypeDescription
actionsarrayArray of CodeVideo actions to apply. Optional if actions were previously stored with codevideo_set_current_actions

codevideo_add_lesson_to_course

Appends a new, empty lesson (id, name, description, an empty initial snapshot) to a course object and returns the updated course as JSON. Nothing is stored; for stored courses use codevideo_add_lesson.

ParameterTypeDescription
course *object
description *string
id *string
name *string

codevideo_get_action_names

Every CodeVideo action, one per line: what it does and what its value takes. Check the rows for the actions you plan to use.

codevideo_get_example_actions_array_by_keyword

An example actions array as JSON for a keyword: javascript, js, console log or log; go, golang, golang console log or golang log; python, python console log or python log. Returns an empty string when nothing matches.

ParameterTypeDescription
keyword *stringOne of the keywords listed in this tool's description.

codevideo_get_example_lesson_by_keyword

An example lesson as JSON (a Go CLI tool explored from an existing codebase) for the keyword go, golang, explore codebase, existing codebase or go cli tool. Returns an empty string when nothing matches.

ParameterTypeDescription
keyword *stringOne of the keywords listed in this tool's description.

codevideo_get_initial_lesson_state_from_local_repo

Create an initial lesson state snapshot from a local repository/codebase directory. This captures the file structure and creates an empty lesson template ready for action recording.

ParameterTypeDescription
repoLocation *stringLocal file system path to the repository/codebase directory

codevideo_get_initial_lesson_state_from_github_repo

Create an initial lesson state snapshot from a GitHub repository URL. This fetches the repository content, captures the file structure, and creates an empty lesson template ready for action recording.

ParameterTypeDescription
repoUrl *stringGitHub repository URL (e.g., https://github.com/user/repo)

codevideo_make_markdown_from_actions

Generate a markdown blog post from CodeVideo actions array. Pass actions array OR use previously stored actions from codevideo_set_current_actions (recommended workflow).

ParameterTypeDescription
actionsarrayArray of CodeVideo actions. Optional if actions were previously stored with codevideo_set_current_actions

codevideo_make_markdown_from_lesson

Generate a markdown blog post from a complete lesson object. Pass a lesson object OR use previously stored lesson from lesson management tools. This extracts the actions from the lesson and generates markdown.

ParameterTypeDescription
lessonobjectComplete lesson object. Optional if lesson was previously stored with lesson management tools

codevideo_make_html_web_page

Generate an HTML web page from CodeVideo actions. Pass actions array OR use previously stored actions from codevideo_set_current_actions (recommended workflow).

ParameterTypeDescription
actionsarrayArray of CodeVideo actions. Optional if actions were previously stored with codevideo_set_current_actions

codevideo_make_video_from_actions

Render a video from CodeVideo actions: pass actions, or omit them to use the ones stored with codevideo_set_current_actions. Queues a background render job and returns its jobId at once; follow it with codevideo_get_render_job.

ParameterTypeDescription
actionsarrayArray of CodeVideo actions. Optional if actions were previously stored with codevideo_set_current_actions
openbooleanOpen the finished video in the default player. Defaults to true.
optionsobjectRender options: orientation, IDE layout (theme, font size, which panes and the cursor are visible), pacing, voice and render mode.

codevideo_make_video_from_lesson

Render a video from a complete lesson object: pass the lesson, or omit it to use the one stored with codevideo_set_current_lesson. Queues a background render job and returns its jobId at once; follow it with codevideo_get_render_job. For lessons in a stored course, use codevideo_render_lesson_video instead.

ParameterTypeDescription
lessonobjectComplete lesson object with snapshots. Optional if lesson was previously stored with lesson management tools
openbooleanOpen the finished video in the default player. Defaults to true.
optionsobjectRender options: orientation, IDE layout (theme, font size, which panes and the cursor are visible), pacing, voice and render mode.

codevideo_validate_actions

Checks a list of actions: unknown names, values of the wrong kind, and actions lessons can't use, each with what to do instead.

ParameterTypeDescription
actionsarray

codevideo_is_repeatable_action

Whether an action's value is a repeat count (how many times to press the key or run the step) rather than text. Returns true or false.

ParameterTypeDescription
action *object

codevideo_critique_video_using_gemini

Critique a generated video using Google Gemini AI. Pass actions array OR use previously stored actions from codevideo_set_current_actions (recommended workflow).

ParameterTypeDescription
videoPath *stringPath to the video file to critique
actionsarrayArray of CodeVideo actions used to generate the video. Optional if actions were previously stored with codevideo_set_current_actions

codevideo_set_current_actions

Legacy single-slot store: keep one actions array for later tool calls, so they can run without re-sending it. Every conversation shares this one slot. For courses or several lessons, use codevideo_create_course and the course tools, which keep work apart by id.

ParameterTypeDescription
actions *arrayArray of CodeVideo actions to store for later use

codevideo_get_current_actions

Legacy single-slot store: read back the actions stored with codevideo_set_current_actions (shared by every conversation).

codevideo_set_current_lesson

Legacy single-slot store: keep one lesson object for later tool calls, so they can run without re-sending it. Every conversation shares this one slot. For courses or several lessons, use codevideo_create_course and the course tools, which keep work apart by id.

ParameterTypeDescription
lesson *objectComplete lesson object to store for later use

codevideo_get_current_lesson

Legacy single-slot store: read back the lesson stored with codevideo_set_current_lesson (shared by every conversation).

codevideo_instructions_to_build_course_from_scratch

Get step-by-step instructions for building a COMPLETE multi-lesson 'build from scratch' course with the course-store tools (snapshots stay server-side). Use this before authoring a full course.

ParameterTypeDescription
additionalContext *stringWhat the course should teach / build

codevideo_create_course

Create a new course (server-side, returns a courseId). Snapshots and lesson state live in the MCP, not in your context.

ParameterTypeDescription
name *string
descriptionstring
idstring
primaryLanguagestring

codevideo_add_lesson

Add a lesson to a course. By default it continues from the previous lesson's final state (chained server-side). Set mustCompile:false for slideshow/discussion/half-refactor lessons. The reply includes the previous lesson's name and description, for the recap that opens this lesson.

ParameterTypeDescription
courseId *string
description *string
name *string
continuesFromPreviousboolean
mustCompileboolean

codevideo_set_lesson_actions

Store a lesson's actions, replacing any it had. The server recomputes the lesson's final snapshot and re-chains following lessons. Returns only a small ack (no snapshot). To change part of a lesson later, use codevideo_edit_lesson_actions instead of sending every action again.

ParameterTypeDescription
actions *array
courseId *string
lessonId *string

codevideo_edit_lesson_actions

Change part of a lesson without re-sending it: each edit removes deleteCount actions at start and inserts the given ones there, like Array.splice. Edits apply in order (each start refers to the actions as the previous edits left them), all or nothing, with one snapshot recompute. Use codevideo_get_lesson_actions to find indices.

ParameterTypeDescription
courseId *string
edits *array
lessonId *string

codevideo_get_lesson_actions

Read part of a lesson's actions with their indices (default: the first 50), e.g. to find what to change with codevideo_edit_lesson_actions.

ParameterTypeDescription
courseId *string
lessonId *string
limitinteger
startinteger

codevideo_get_lesson_file_tree

List the file paths present at the END of a lesson (cheap; no file contents, no snapshot).

ParameterTypeDescription
courseId *string
lessonId *string

codevideo_get_lesson_file

Get the contents of ONE file at the END of a lesson (cheap targeted read instead of dumping the whole snapshot).

ParameterTypeDescription
courseId *string
lessonId *string
path *string

codevideo_compile_lesson

Replay a lesson and verify its saved end-state projects offline. Returns passed, failed, blocked, or unsupported, with check kinds and actionable issues. Monaco diagnostics are presentation-only; dirty buffers prevent a pass.

ParameterTypeDescription
courseId *string
lessonId *string

codevideo_validate_course

Validate actions, continuity, diagnostic hovers, copy/cut/paste presses that would do nothing, and fresh saved-file project verification. Every mustCompile lesson and the final lesson must have outcome passed; blocked/unsupported/dirty/stale states prevent done:true.

ParameterTypeDescription
courseId *string

codevideo_get_course_status

Resumable checkpoint view of a course: lessons, action counts, estimated video length per lesson, flags — without pulling any snapshot.

ParameterTypeDescription
courseId *string

codevideo_export_course

Export the full course (ICourse with snapshots) to a JSON file under ~/.codevideo/exports and return its path. The course itself isn't returned, so it doesn't fill your context.

ParameterTypeDescription
courseId *string

codevideo_instructions_to_import_a_video

How to turn a recorded coding lesson (a screen recording of VS Code with narration) into a CodeVideo lesson with the codevideo_import_* tools: the steps, the observation format for reading frames, and the reading rules. Read it before starting an import.

codevideo_import_start

Start importing a recorded coding lesson. Reads the narration from a WebVTT caption file (vttPath) or transcribes it with Whisper (transcribe: true), and returns an importId, the narration cues and a preview frame to choose the editor crop from.

ParameterTypeDescription
videoPath *stringAbsolute path of the lesson's video file, such as an MP4.
languagestringThe narration's language for Whisper, such as en (the default).
transcribebooleanTranscribe the narration with whisper.cpp instead. Needs whisper-cli and a ggml model (CODEVIDEO_WHISPER_MODEL, default ~/.whisper/ggml-large-v3.bin).
vttPathstringWebVTT captions for the video: a Udemy caption file, or YouTube captions (yt-dlp --skip-download --write-subs --write-auto-subs --convert-subs vtt). YouTube's rolling automatic captions are de-duplica…

codevideo_import_extract_frames

Extract one frame per narration cue from an import's video, cropped to the editor. Frames that look like the one before are marked as repeats and need no reading. Calling it again with another crop redoes the frames; observations already sent stay.

ParameterTypeDescription
importId *string
cropobjectThe editor area in video pixels: its tabs, breadcrumb and code, without the file explorer, terminal or status bar. Leave it out to read whole frames.
readWidthintegerWidth the frames are saved at, in pixels. Default 966; larger reads small code more easily but costs more.

codevideo_import_get_frames

The next frames of an import to read, as images, each with what the author said since the previous one. Frames marked as repeats are skipped.

ParameterTypeDescription
from *integerIndex of the first frame to return; earlier frames are skipped.
importId *string
countintegerHow many frames, 1-12. Default 6.

codevideo_import_add_observations

Store what you read in one or more frames of an import, in the observation format from codevideo_instructions_to_import_a_video. Returns problems, the frames still missing and what to do next. A frame sent again replaces its earlier observation; frames with errors aren't stored.

ParameterTypeDescription
importId *string
observations *stringOne block per frame: a '# frame N t=T file=PATH first=L eof=yes|no' header, then N|text lines, N>text for lines that run past the right edge, N? for hidden lines and ! notes.

codevideo_import_convert

Turn an import's observations into a lesson of a course: narration as author-speak actions, word for word, and the code changes as editor actions, checked against a replay. The lesson starts from repoPath as the video did and doesn't continue from the lesson before it. Pass lessonId to replace a lesson made by an earlier conversion.

ParameterTypeDescription
courseId *stringThe course to add the lesson to (codevideo_create_course).
importId *string
name *string
activeEditorstringThe tab that is active when the video starts.
blankFilesarrayFiles to keep in the tree with no content: lockfiles, images, caches.
descriptionstring
editorCaretsobjectCaret per open file at the start, 1-based.
endRepoPathstringA checkout of the lesson's own end branch, when there is one. The result then lists, per file, the lines where the lesson's final code differs from it: those the video showed after the file's last cha…
expandedFoldersarrayFolders open in the explorer at the start.
extraFilesarrayFiles in the repo the explorer shows but the project reader skips, such as .gitignore.
extraFoldersarrayFolders the explorer shows that aren't in the repo, such as node_modules.
lessonIdstringA lesson to replace instead of adding a new one.
mustCompilebooleantrue only when the lesson's last state compiles. Default false: recordings often end with an error on screen on purpose.
openEditorsarrayEditor tabs open when the video starts, as paths from the project root.
repoPathstringFolder with the project as it was when the video starts, usually a checkout of the previous lesson's branch. Leave it out when the lesson starts from an empty project.
saveAtEndbooleanSave every edited file at the end, as authors do, so the lesson's files hold its final code. Default true.
showDiagnosticsbooleanTurn TypeScript squiggles on after the first narration, as VS Code showed them.
speakDuringbooleanPlay each narration while the code it describes is typed, as in the recording (recommended).

codevideo_generate_lesson_preview

Generate a server-side HTML preview of a single lesson (open in a browser to eyeball it). Cheap; no video.

ParameterTypeDescription
courseId *string
lessonId *string

codevideo_generate_course_previews

Generate HTML previews for every lesson — GATED: only works once codevideo_validate_course returns done. Use for human review before rendering video.

ParameterTypeDescription
courseId *string

codevideo_render_lesson_video

Render ONE lesson of a stored course to video: queues a background render job and returns its jobId. GATED: refuses until codevideo_validate_course returns done.

ParameterTypeDescription
courseId *string
lessonId *string
openbooleanOpen the finished video in the default player. Defaults to true.
optionsobjectRender options: orientation, IDE layout (theme, font size, which panes and the cursor are visible), pacing, voice and render mode.

codevideo_render_course_videos

Render every lesson of a stored course to video: queues one background render job per lesson, run one at a time in lesson order. GATED: refuses until codevideo_validate_course returns done. Run only after a human approves the previews.

ParameterTypeDescription
courseId *string
openbooleanOpen the finished video in the default player. Defaults to false.
optionsobjectRender options: orientation, IDE layout (theme, font size, which panes and the cursor are visible), pacing, voice and render mode.

codevideo_get_render_job

Status of one render job: queued (with how many jobs are ahead), running (with the latest progress line), succeeded (the video exists at outputPath), failed (with the CLI's error), cancelled or interrupted. Includes the last lines of the CLI's log.

ParameterTypeDescription
jobId *string

codevideo_list_render_jobs

Recent render jobs, newest first (default 20), optionally for one course or in one status.

ParameterTypeDescription
courseIdstring
limitinteger
statusstring

codevideo_cancel_render_job

Cancel one render job, or every unfinished render job of a course. Queued jobs are dropped; a running one is stopped along with its browser.

ParameterTypeDescription
courseIdstring
jobIdstring