Skip to content

Learning Studio / agents

Build a course with Claude or Cursor

A step-by-step playbook for faculty and instructional designers who author courses through an AI assistant connected to NXGen.

NXGen Learning Studio exposes its course editor to AI assistants through the Model Context Protocol (MCP). When you connect Claude, Cursor, or a similar MCP client, the assistant can read your courses and edit them through the same validated, versioned pipeline the editor uses — it acts with your account’s permissions, under the same row-level security and the same content validation. Nothing bypasses the editor’s rules, and nothing is saved without passing them.

This playbook walks through connecting a client, a first conversation, and a reliable authoring routine. It links to the reference articles for tool tables and operation details rather than repeating them.

  • An NXGen Learning Studio account with courses you can edit.
  • A compatible AI assistant that supports remote MCP servers, such as Claude or Cursor. Check your client’s own documentation for where its MCP or connector settings live; NXGen doesn’t control those menus.
  1. In your assistant’s MCP settings, add a remote MCP server whose URL is your Learning Studio app origin followed by /mcp — for example https://nxgen.edstratumlabs.ai/mcp on the production app, or your dev origin’s /mcp on a dev build. Use the app origin, not this help center’s domain.
  2. Complete the OAuth sign-in and consent flow your client opens. The app advertises offline_access among its supported scopes, so an authorized client can keep a refresh token and stay connected when your browser session ends.
  3. Confirm the connection by asking the assistant to list your courses. It should call list_courses and show what you see on the Projects page.

A dev build can register extra tools (frameworks, checkpoints, media from URL, packages, publishing, and founder-only tools) that a production build never registers. If a tool the assistant mentions isn’t in its tool list, the build probably doesn’t enable it — see Connect through MCP for which tools are dev-build only.

Start read-only so you can see how the assistant handles real course data:

  1. List courses. “List my NXGen courses.” The assistant calls list_courses and reports titles, folders, and archived state.
  2. Open one. “Read the course called Onboarding basics and tell me its structure.” The assistant calls get_course, which returns the full typed content and the current version number. The version matters: every edit is applied against it.
  3. Check quality. “Run the review checks on that course.” validate_course returns the same Review errors and warnings you see in the app, with a why and a help-center link for advisory items.

If a course is missing from the list, check your account and access rather than trying to work around it — knowing a course ID doesn’t grant access to it.

Every saved edit follows the same shape, whether the assistant writes one paragraph or a whole course:

  1. Read the current version. The assistant calls get_course and notes the version number.
  2. Prepare operations with fresh IDs. Edits are native operations (section.add, block.insert, block.update, and so on). New sections, blocks, columns, quiz questions, and objectives need unique new IDs; existing elements keep theirs. See Apply operations safely for the operation families and rules such as TipTap JSON for rich text.
  3. Apply with apply_course_ops. The call carries courseId, baseVersion (the version just read), an idempotencyKey (8–100 characters), and the operations. Validation runs before anything is written; an invalid batch changes nothing.
  4. Read back and validate. Ask for get_course again to confirm the content, then validate_course for the review checklist.
  5. Check in the app. Open the course in the Studio editor and Preview. A clean validation is not proof of good pedagogy or accessible playback — read the pages the way a learner would.

Keep the idempotency key discipline in mind: retrying an uncertain save uses the same key so the first result is replayed instead of duplicated; a different intended change uses a new key.

If someone (you in the app, or another agent) edited the course after the assistant read it, apply_course_ops refuses the batch with a conflict and reports the current version. The right response is to read the course again, reconcile the proposed edit with the newer content, and submit a new batch with a new key — never to force the stale edit through. The same applies to whole-course restores: an older snapshot must not overwrite newer human work.

MCP has no dryRun option. When you want to check a batch of operations without saving it, use the HTTP agent API’s operations endpoint with dryRun: true — see Use the HTTP agent API.

NXGen’s AI tools all return suggestions, but what comes back — and what you do with it — differs by tool. Nothing is saved until operations are applied with apply_course_ops.

Tool Returns How to apply it record_ai_decision?
suggest_course_edit Ops, a summary, and the model You supply the baseVersion (from get_course); apply the returned ops with apply_course_ops No — the tool returns no eventId
suggest_blueprint Ops and the model Apply the returned ops with apply_course_ops, set the blueprint status to approved, then call build_from_blueprint No — the tool returns no eventId
build_from_blueprint Ops, a summary, a check report, and the model Apply the returned ops with apply_course_ops No — the tool returns no eventId
rewrite_text Rewritten text, rationale, sources, and an eventId No ops are returned; put the text into the course yourself with apply_course_ops Yes — record the decision with the eventId
suggest_distractors Wrong-answer options, rationale, sources, and an eventId No ops are returned; add the options you want with apply_course_ops Yes — record the decision with the eventId
suggest_design Ops, a baseVersion, rationale, sources, and an eventId Apply the returned ops with the returned baseVersion, not a newer read Yes — record the decision with the eventId
suggest_objective_levels Ops, a baseVersion, suggestions with rationale and sources, and an eventId Apply the returned ops with the returned baseVersion, not a newer read Yes — record the decision with the eventId
draft_rubric A course.rubrics.update op, a baseVersion, rationale, sources, and an eventId Apply the returned op with the returned baseVersion, not a newer read Yes — record the decision with the eventId

The baseVersion matters most for the tools that return ops built from one: those operations replace a whole list or design, so applying them against a newer read can drop objectives, rubrics, or design edits added in between. Pass back the version the tool returned.

record_ai_decision takes the suggestion’s eventId and your decision (accepted, rejected, edited, or expired). Its own description names suggest_design, suggest_objective_levels, and draft_rubric; rewrite_text and suggest_distractors also return an eventId and tell you to record the decision with it. The other suggestion tools return no eventId, so there is nothing to record — applying or discarding their ops is the decision.

Separately, draft_course creates and saves a whole new course from a prompt or document. It has no idempotency key, so if its response is interrupted, list your courses and check whether creation completed before trying again — a blind retry can duplicate the course.

Suggestions are drafts. Review the rationale and sources, read the generated pages, and edit before learners see them. If a save conflicts after you applied a suggestion, the course changed: request the suggestion again rather than reusing the old operations.

  • archive_course is reversible. Use archive when you want a course out of sight but kept.
  • delete_course is permanent. Only delete on an explicit request, and prefer archiving when in doubt.
  • list_course_versions returns summaries only, not content. Restoring an older version (course.restore) requires the actual saved content, which you can read through the HTTP version endpoint — there is no MCP tool that reads snapshot content today. On a dev build, create_checkpoint names a restore point of the current content.
Symptom Likely cause What to do
Rejection naming a path such as ops[0].patch Malformed operation input Fix the indicated field; the course is unchanged
Rejection naming an operation, e.g. ops[1] (block.insert): Duplicate id … Content-dependent validation failure Correct that operation; keep the rest of the batch coherent
Conflict on apply_course_ops baseVersion is stale Re-read the course, reconcile, resubmit with a new key
A save’s result is unknown Interrupted response Retry the same payload with the same idempotencyKey; read back to confirm
A tool is missing from the client’s list Dev-build-only tool on a production build Use the production tools, or switch to a dev build that enables it
Authentication or configuration error Expired or missing authorization Reconnect the client and complete OAuth again

These prompts rely only on tools a production build registers.

Draft a new course from a document:

Create a new NXGen course from this training document. Use draft_course with the document text, then read the course back, run validate_course, and summarize the pages it created and any review findings. Don’t apply any edits yet — I’ll review in the app first.

Plan and build a course outcome-first:

Read my course COURSE-ID-HERE and its current version. Call suggest_design with a brief for a performance course that gets new hires to complete their first expense report unaided, apply the returned operations with the baseVersion it returns, call record_ai_decision with the eventId, then call suggest_blueprint for the pages, show me the proposed blueprint operations, and wait for my approval before applying them.

Edit an existing page and verify:

In course COURSE-ID-HERE, read the current version with get_course, then use suggest_course_edit scoped to the section named “Setting up your profile” to rewrite that page’s introduction in plainer language, passing the version you read as baseVersion. Show me the suggested operations and rationale. After I approve, apply the returned operations with apply_course_ops using that same baseVersion, then read the course back and run validate_course.

Last updated · Heron v0.26.0

Same update, your timezone

Pacific · Dec 5
Central · Dec 5
Eastern · Dec 5

Made with love by the team at EdStratum Labs AI