Course SDK
Build Foundry courses in the course editor or connect an AI agent through Foundry MCP to search, read, edit, and publish courses.
Course SDK · 2 min read
Foundry has no separate Course SDK package or API key for your own code. You build courses in Foundry's course editor, and an AI agent connected to Foundry MCP can read and write them for you through the same checks.
Build in the Course Editor#
Create and manage your courses from the Courses tab of Store & Courses in your Workspace. The editor has two tabs, 1. Course Details & Pricing and 2. Lessons, and you can publish from either one. Drafts can stay incomplete while you work, and learners see nothing until you publish. How courses work for creators and learners is in Courses.
Work on Courses With an AI Agent#
Give a connected app or personal token the Learning area, and an agent can work on your courses with these tools:
| Task | Tools | Scope |
|---|---|---|
| Find and read published courses | foundry_search_courses, foundry_get_course |
None |
| Read the courses you write | foundry_list_my_courses, foundry_get_course_draft |
learning:read or learning:write |
| Write and publish a course | foundry_create_course, foundry_save_course_draft, foundry_publish_course, foundry_unpublish_course |
learning:write |
| Learn from courses you're enrolled in | foundry_list_my_enrollments, foundry_get_course_progress, foundry_get_lesson, foundry_mark_lesson_progress |
learning:read, and learning:write to mark progress |
A typical authoring session:
foundry_create_coursecreates an empty draft that you own.foundry_get_course_draftreturns the draft's revision and its complete course data: details, pricing, sections, lessons, quizzes, tests and exercises.foundry_save_course_draftsaves the whole data object back with the agent's changes and the current revision. Foundry validates it exactly as the course editor does.foundry_publish_coursepublishes the draft as the course's next version, with a message telling learners what changed. The publishing checklist applies, and publishing needs your agreement to the current Terms of Service.
Courses created through MCP can also be edited in the course editor at any time. Inputs and details for each tool are in the Tool Reference, and connecting an agent is in Connect an AI Client.
Still stuck? Contact Support.