CourseCode Framework

io.github.course-code-framework由 GitHub 账号 course-code-framework 发布v0.4.5更新于 Nov 7, 2026

Preview, screenshot, lint, and test SCORM, cmi5, and LTI courses built with CourseCode Framework.

已验证STDIO仅桌面开发者工具媒体与设计

概览

AI 生成的概览

CourseCode Framework 的本地 MCP 服务器,让助手预览、截图、检查并测试其构建的 SCORM、cmi5 和 LTI 课程。

可以做什么
  • 预览并截图幻灯片,检查版式与设计
  • 自动检查生成的课程代码并发现错误
  • 在课程中导航并测试各类互动
  • 浏览可用 UI 组件的组件目录
  • 读取课程状态,包括参与度、评分和 LMS 数据
适用场景
适合用 AI 工具制作或改造 LMS 课程,并希望助手自行验证幻灯片、互动和跟踪设置,而不必把文件粘贴到对话中。也适合最终要导出为 SCORM 1.2、SCORM 2004、cmi5 或 LTI 1.3 包的项目。
运行要求
通过 npm 包 coursecode 以 stdio 在用户机器上本地运行,用 coursecode mcp 命令启动;新建项目已包含 Claude Code、Codex、Cursor 和 VS Code 的 MCP 配置。需要 Node.js 22.15 或更高版本。框架本身无需账号或 API 密钥。
安装前请注意
助手可读取并操作课程项目,检查或测试会涉及生成的文件,导出前应审阅改动。可选的文本转语音旁白需自备 Deepgram、ElevenLabs、OpenAI、Google Cloud 或 Azure 等提供商的 API 密钥。可选 webhook 会把错误报告和学习记录发送到你配置的端点,CourseCode Cloud 部署为付费服务并会上传构建产物。

安装

在 SourceWeft 中

  1. 打开 控制台中的 CourseCode Framework,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

CourseCode Framework

Build LMS courses with Claude Code, Codex, or any AI tool that supports MCP.

CourseCode Framework is open source and runs on your computer. Your AI tool writes the course as regular project files you can inspect, version, and edit. CourseCode's MCP server lets it preview, screenshot, lint, and test what it built. Export SCORM 1.2, SCORM 2004, cmi5, or LTI 1.3.

Start from a topic or from your own PDFs, Word documents, and PowerPoint decks. No coding is required to start, and you have full control of the code when you want it.

View the demo

CourseCode ecosystem

CourseCode Framework (this repository) is open source and works on its own. CourseCode Cloud is an optional paid hosting service for deploying and delivering courses.

Framework documentation lives at coursecodeframework.com/docs and in framework/docs/.

Features

  • Works with your AI tool: Every new project includes MCP settings and workflow skills for Claude Code, Codex, Cursor, and VS Code. Any other MCP client can run coursecode mcp, and an optional plugin is available for Claude Code and Codex
  • No coding required to start: Describe what you want and let AI help build slides, interactions, and structure
  • Course modernization: Use existing SCORM courses, PowerPoints, PDFs, Word docs, scripts, and SME notes as source material for upgraded courses
  • LMS integration: SCORM 1.2, SCORM 2004, and cmi5 packaging, plus an LTI 1.3 browser contract for trusted server-backed launches
  • Rich UI components: Images, video, accordions, tabs, and custom sandboxed HTML/JS embeds
  • Rich interactions: Multiple choice, drag-drop, fill-in-the-blank, matching, sequencing, and more
  • Accessibility: Designed to meet WCAG 2.1 AA, with dark mode, high contrast, and reduced motion
  • TTS audio narration: Built-in player with AI text-to-speech generation (Deepgram, ElevenLabs, OpenAI, Google Cloud, or Azure, using your own API key)
  • Smart tracking: Engagement requirements, learning objectives, and progress persistence
  • Themeable design: CSS custom properties for easy brand customization
  • Custom endpoints: Optional webhooks for error reporting and learning record storage
  • Live preview: Visual editing, status dashboard, config panels, catalog browser, and full LMS simulation with debug tools

Quick Start

You need Node.js 22.15 or later and an AI tool that can run commands, such as Claude Code, Codex, Cursor, or VS Code with GitHub Copilot. Your AI tool can install Node.js for you.

  1. Create an empty folder for your course and start your AI tool in it.

  2. Paste this:

    text
    Set up a CourseCode Framework course in this folder. Check that Node.js 22.15 or later is installed and help me install it if it isn't. Then run `npx coursecode@latest create .` and tell me what to do next.
  3. When it's done, quit your AI tool and start it again in the same folder so it loads the CourseCode tools. Claude Code asks once to approve the coursecode server; Codex asks you to trust the folder.

  4. Describe the course you want.

  5. When the course is ready, ask your AI tool to export it for your LMS (SCORM 1.2, SCORM 2004, cmi5, or LTI 1.3), or to deploy it to CourseCode Cloud for hosting, share links, and analytics. Cloud is optional.

The project includes MCP settings for Claude Code, Codex, Cursor, and VS Code, an AGENTS.md with the authoring workflow, and four workflow skills (outline, build slides, review, publish). Nothing else needs installing, and no account is required.

Without an AI tool

bash
npx coursecode@latest create my-coursecd my-coursenpx coursecode preview

Open http://localhost:4173 to view and edit your course. The example course included with every new project is a complete guide to using CourseCode.

Claude Code and Codex plugin (optional)

The plugin runs the CourseCode tools in every folder, so your AI tool can start a course before a project exists. You don't need it, because projects already include the tools and skills. Install it from this repository:

bash
# Claude Codeclaude plugin marketplace add course-code-framework/coursecodeclaude plugin install coursecode@coursecode
# Codexcodex plugin marketplace add course-code-framework/coursecodecodex plugin add coursecode@coursecode

See plugin/README.md. Start with the User Guide for a complete walkthrough.


Requirements

Node.js 22.15 or later. You can run every command through npx coursecode, or install the CLI globally for the shorter coursecode command used in the rest of this guide:

bash
npm install -g coursecode

Learner courses support Chrome 111+, Edge 111+, Firefox 114+, and Safari 16.4+. SCORM compatibility describes LMS communication and packaging; it does not imply Internet Explorer support.

Also recommended:


MCP Integration

CourseCode includes a built-in Model Context Protocol (MCP) server. When your AI tool supports MCP, it connects directly to your course project, so you don't have to paste files into a chat.

New projects already include MCP settings for Claude Code (.mcp.json), Codex (.codex/config.toml), Cursor (.cursor/mcp.json), and VS Code (.vscode/mcp.json), plus workflow skills in .claude/skills/ and .agents/skills/. To add them to an existing project, run coursecode agent-setup. Any other MCP client can start the server with:

bash
coursecode mcp

Run from a global install or npx, the server hands off to the project's own CourseCode version.

With MCP, your AI can:

  • Preview and screenshot slides to verify layout and design
  • Lint its own code and catch errors automatically
  • Navigate and test interactions directly
  • Browse the component catalog to discover available UI elements
  • Read course state including engagement, scoring, and LMS data

See the User Guide for setup instructions.


The Course Directory

All your course content lives in the course/ folder:

my-course/├── course/                     # ← Your content goes here│   ├── course-config.js        # Course structure, format, objectives, settings│   ├── slides/                 # Slide content files│   │   ├── intro.js│   │   ├── content-01.js│   │   └── assessment.js│   ├── assets/                 # Images, audio, video│   │   ├── images/│   │   └── audio/│   └── theme.css               # Brand customization│├── framework/                  # Framework code (don't edit)│   └── docs/                   # Guides and templates

Your Course

LocationWhat's There
course/course-config.jsCourse settings: structure, objectives, navigation rules
course/slides/Your slide content (one file per slide)
course/theme.cssBrand colors and typography
course/assets/Images, audio, and video files

Key Documentation

All guides are in framework/docs/:

DocumentAudiencePurpose
USER_GUIDE.mdHumansComplete guide: workflows, features, exporting and sharing
COURSE_AUTHORING_GUIDE.mdAI AgentsSlide authoring, interactions, CSS styling
COURSE_OUTLINE_GUIDE.mdAI AgentsHow to write effective course outlines
COURSE_OUTLINE_TEMPLATE.mdAI AgentsBlank template to start an outline
DATA_MODEL.mdAI AgentsLMS data model and tracking fields
FRAMEWORK_GUIDE.mdAI AgentsFramework internals (advanced)

AI-Driven Authoring Workflow

Four steps to go from source materials to a course ready for your LMS.

Step 1: Convert Your Source Materials

Place existing content (PDFs, Word docs, PowerPoints) in course/references/, then run:

bash
coursecode convert

Converts to markdown in course/references/converted/. Skip this step if starting from scratch.

Step 2: Create Your Course Outline

Ask your AI to create a course outline based on your content.

  • With MCP: The AI reads your references and outline template automatically
  • Without MCP: Share your converted docs, COURSE_OUTLINE_TEMPLATE.md, and COURSE_OUTLINE_GUIDE.md with your AI

Review and refine the outline before building.

Step 3: Build the Course

Ask your AI to build slides from your approved outline.

  • With MCP: The AI reads all docs, lints its code, and screenshots slides to verify
  • Without MCP: Share your outline and COURSE_AUTHORING_GUIDE.md with your AI

Step 4: Preview, Iterate, and Export

bash
coursecode preview

The preview server provides:

  • Live reload: Changes appear instantly
  • Visual editing: Click elements to edit content directly
  • Status dashboard: Course health, errors, and build status at a glance
  • Config panels: Adjust settings, interactions, and assessments
  • Component catalog: Browse available UI elements with live previews
  • Debug tools: Inspect LMS state, test interactions, verify tracking

When it's ready, build a package and upload it to your LMS. The ZIP is written to your project folder:

bash
coursecode build                    # cmi5 (default)coursecode build --format scorm1.2  # or scorm2004, lti

Other ways to share it:

  • One file, no server: a portable HTML course that recipients open by double-clicking. Progress is saved in that browser only.

    bash
    coursecode export html
  • Review site: a static copy of the preview for GitHub Pages, Netlify, or any static host.

    bash
    coursecode preview --export
  • Hosted delivery (optional): CourseCode Cloud is a paid hosting service for CourseCode courses. coursecode deploy uploads one build; Cloud then serves it, provides a shareable preview link, and generates any LMS format on demand. See CourseCode Cloud in the user guide.


Core Commands

CommandDescription
coursecode create <name>Create a new course project; create . derives a title-cased course title and hyphenated npm name from the current folder
coursecode init [name]Initialize the current directory, optionally with a course title
coursecode previewPreview your course locally
coursecode export htmlCreate one shareable course file that opens without an LMS or server
coursecode convertConvert PDFs, Word, PowerPoint to markdown
coursecode mcpStart the MCP server for AI integration
coursecode agent-setupAdd MCP settings, AGENTS.md, and workflow skills for Claude Code, Codex, Cursor, and VS Code to an existing project
coursecode lintValidate course structure and content
coursecode buildBuild a package for LMS upload
coursecode narrationGenerate audio narration from text
coursecode deployUpload a build to CourseCode Cloud (optional; deployments, promote, and preview-link manage it)

For the full command list and sharing options, see the User Guide or run coursecode --help.


UI Components

Build engaging slides with interactive elements. Start with AI assistance, then edit the generated files directly whenever you want more control.

Media & Widgets

ComponentDescription
TabsSwitch between content panels
AccordionExpandable/collapsible sections
Flip CardsReveal content on click
CarouselSwipe through slides
ModalPop-up detail views
Interactive TimelineClickable timeline events
Interactive ImageHotspots on images
Embed FrameSandboxed HTML/JS content
Audio PlayerNarration with controls
Video PlayerNative, YouTube, or Vimeo

Slide Templates

Pre-designed layouts for common slide types. Just tell your AI assistant what you need.

TemplateUse Case
Intro CardsOverview slide with key points below
StepsSequential instructions (numbered)
FeaturesHighlight 3-4 key capabilities
ComparisonSide-by-side options
StatsMetrics and numbers with impact
Content + ImageText alongside diagrams
HeroFull-width intro with call-to-action
TimelineChronological events
QuoteTestimonials and citations
ChecklistTask lists and requirements

Interaction Types

Practice activities that engage learners and check understanding.

TypeDescription
Multiple ChoiceSelect one or more correct answers
True/FalseSimple yes/no questions
Fill-in-the-BlankEnter missing text (supports typo tolerance)
MatchingConnect related items
Drag-and-DropSort items into categories
SequencingArrange items in correct order
NumericEnter numbers (exact or range)
HotspotClick correct areas on an image
Likert ScaleRating scales for surveys

All interactions provide immediate feedback and can be required for slide completion.


Tracking & Scoring

Engagement

Require learners to complete activities before advancing:

  • View all tabs or accordion panels
  • Complete interactions
  • Watch video or listen to audio
  • Spend minimum time on slide

Gating

Lock slides until conditions are met:

  • Pass an assessment
  • Achieve a learning objective
  • Spend a minimum time on a slide
  • Set a custom flag, for example after a branching choice

Assessments

Graded quizzes that determine course completion:

  • Randomized question order
  • Question banks for variety
  • Configurable passing scores
  • Retry attempts with remediation
  • Scores reported to your LMS

Learning Objectives

Track learner progress against defined goals:

  • Automatic: track when slides are visited
  • Linked: tie objectives to assessment scores
  • Reported: completion status sent to LMS

Learn More

The User Guide covers everything in detail:

  • Using the preview and visual editing tools
  • All interaction types (multiple choice, drag-drop, matching, and more)
  • Assessments and grading
  • Audio and video
  • Theming and branding
  • Navigation and learner flow control
  • Exporting and sharing options
  • Troubleshooting

License

MIT © Seth Vincent

来源:README.md,提交 ef569ca

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

3
  1. v0.4.5最新Nov 7, 2026
  2. v0.4.4Oct 30, 2026
  3. v0.4.3Oct 30, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分