Connect your own AI agent

This manual is for LMS Blueprint 0.47.19

Core Complete 0.47.0

You can let an AI agent that you already use work on your own LMS Blueprint site: read your courses, create and edit courses, modules, lessons, quizzes and workbooks, edit a lesson block by block, add pictures, import a lesson from a web page, read student progress and run Course Health. With the Design permission it can also change your site’s colours, fonts, custom CSS and header menu, build pages and course landing pages, and add motion to their sections. It connects to your site directly; nothing goes through us.

The connection uses the Model Context Protocol (MCP), an open standard that many AI apps support.

What the agent can and can’t do

  • You choose its permissions. There are four: Read (always), Create drafts, Design and Publish. An app gets only what you tick when you connect it, and you can untick a permission later. Design and Publish are never ticked unless you tick them.
  • Drafts change at once; anything live is staged. With Create drafts, your agent creates drafts and edits them. When it edits something already published, the change is staged: saved, with a preview link, but not live until it is applied. Students never see a half-finished change.
  • Every change can be undone. Each one is written down with what it replaced. Your agent can undo its own changes with undo_change, and you can undo any of them on School → Agent access → Changes. See Agent changes, previews and undo.
  • It never deletes anything for good. It can move things to the bin and take them out again; something live needs the Publish permission.
  • Design changes are staged too. With Design, your agent can change the palette’s colours and the colours dark mode uses, the fonts (only the families your theme ships or names as system fonts), sizes and button and heading styles, switch to one of the theme’s style packs, change custom CSS, and change the header menu. Every design change is staged with a preview link, even on a page nobody sees yet, and goes live only when it is applied. Custom CSS that isn’t allowed (loading files from other sites, @import, fonts from elsewhere, scripts) is refused whole, so nothing half-checked is ever saved.
  • Pages are built from blocks and your theme’s own patterns, and a block can carry a motion setting (reveal, word by word, a sequence, a marquee, a drawn line, a video that plays in view, a sticky picture) that your theme plays. Visitors who ask their device for reduced motion see the page still.
  • On a page it uses the blocks a page can show. A page or course page takes the standard blocks and the site’s own page blocks (course carousel, testimonials, pricing table, countdown, the lead magnet and the rest); the blocks made for lessons stay in lessons, and your agent is told so if it tries. It can ask your site what each page block is for and what each of its settings holds.
  • It can rewrite every word of a pattern. Text in a pattern your agent can’t rebuild (a heading, a paragraph, a button, a list item, a question and answer) can still have its words changed, and only its words: the pattern’s look stays as it is. It can also set a section’s width (wide or full), give a heading an address to link to (such as #refunds), and make a button send an email (mailto:).
  • It can build pages from the page sections (hero, moving strip, numbered cards, bento, image and text, steps, stats, questions, closing panel, help band). It writes each section’s words and pictures as settings, never as code, and site_reference describes every setting. An address that isn’t http, https or on your site is refused (a button or link may also be mailto:).
  • One preview for several changes. When your agent changes a page and the header above it, or two pages that link to each other, it can give you one preview link that shows them all together (preview_changes). Each change keeps its own link too.
  • The shop’s heading and introduction are settings, so your agent changes them like any other setting, staged until applied.
  • It writes blocks, never raw HTML or scripts, even though it signs in as an administrator.
  • It can never do more than your own account can. It signs in as you, and every action asks WordPress the same permission question the admin screens ask. If you couldn’t import a course by hand, your agent can’t either.
  • Student progress comes as counts only: how many are enrolled, how many have finished, the lesson where most of the others stopped, and each quiz’s attempts and pass rate. No names or email addresses.
  • Quiz answers stay on your site unless you tick Let the agent see which quiz answers are correct. Your agent can still write the right answers when it makes or edits a quiz.
  • Some things it can’t do at all: payment, email-service and AI keys, users and passwords, plugins and code, enrolling students, sending email, and Agent access itself. The full list is in Agent changes, previews and undo.

The tools that read are: List courses, Show a course outline, Read a lesson, Read a lesson’s blocks, Read a quiz, List workbooks, Read a workbook, List quizzes, media, pages, products or learning paths, Show student progress, Run Course Health, Look up what this site allows, List changes made by agents, Read the site’s design, Read settings, Overview of the site, Read the forum layout, Read an app card, Read points and badges, Read a lesson’s interactive videos, Read a course’s spaced reviews, and, with the AI add-on, Read the AI setup (which provider and model each AI feature uses, and whether each key is saved, never the key).

The tools that write are: Create a draft course, Add a draft module, Add a draft lesson, Import a lesson, Create a draft workbook, Change a course, Change a module, Change a lesson’s settings, Edit a lesson’s or page’s blocks, Reorder a course, Create a draft quiz, Edit a quiz, Change a workbook, Attach a quiz or workbook to a lesson, Add a picture from an address, Change a picture’s details, Move to the bin, Restore from the bin, Undo a change, Create a draft page, Change a course landing page, Change settings, Edit an email, Create a draft product, Change a product, Save a learning path, Change a page’s settings, Draft a course announcement, Adapt an app, Draft a course badge, Set an interactive video’s pauses, Draft a branching scenario, Draft spaced reviews for a course.

With the Design permission it also has: Change custom CSS, Change the site’s colours, fonts and styles, Switch to a style pack, Change the header menu, Change the site’s name, logo and home page, Change the header or footer.

With the Publish permission it also has: Publish or take down, Schedule, Apply staged changes. Your app asks you before each one, and after anything goes live your site checks its own pages and undoes the change if one breaks. See Agent changes, previews and undo.

What is sent

  • Your agent’s app gets the answer to each tool it calls, straight from your site at your Address. Nothing goes through us.
  • Student progress goes as counts only, and quiz answers only if you allow it (see above).
  • The connection doesn’t use the AI add-on’s key and makes no calls to your AI provider. What the AI add-on itself sends is listed in The AI add-on.

1 · Switch it on

«Allow agents to connect to this site», the address your agent connects to, and «Create one» for an application password.
  1. Go to School → Agent access.
  2. Tick Allow agents to connect to this site. It is off until you do; while it is off, an agent that connects sees no tools, and no app can sign in.
    The Agent access screen: Allow agents to connect to this site (unticked here), the Address, Application passwords options and the start of What it may do.
  3. Under What it may do, untick anything you don’t want it to do.
  4. Click Save Changes, and copy the Address shown on the screen. It is your site’s address followed by /wp-json/lmsb/v1/agent.
    The end of What it may do, Quiz answers, Requests per minute, Save Changes and the Connected apps table (no apps connected).

Only administrators can connect an agent.

2 · Choose how your app signs in

There are two ways, and your app decides which one it uses:

  • Sign in through your site. Apps whose “add a connector” screen asks only for an address (Claude on the web, in Claude Desktop and on mobile, and ChatGPT) send you to your own site to sign in, then ask you to allow the connection. You type no password into the app. Claude Code can do this too. See step 3.
  • An application password. Apps that let you add a header line (Claude Code, Gemini CLI and many others) can use a WordPress application password instead. See step 4.

Both need your site on HTTPS.

3 · Sign in through your site

Before you start

  • Under Settings → Permalinks, choose any setting except Plain. The Agent access screen warns you if it is Plain.
  • Open https://your-site.example/.well-known/oauth-authorization-server in your browser. You should see a short block of text that starts with {"issuer":. If you see your site’s “page not found” page instead, your host is not passing that address to WordPress; ask your host to let addresses that start with /.well-known/oauth- reach WordPress.

Claude (web, Desktop and mobile)

You need a Pro or Max plan; on a Team or Enterprise plan, an Owner adds the connector and each member connects it.

  1. In Claude, go to Customize → Connectors, click + Add, then Add custom connector.
  2. Give it a name, such as your site’s name, and paste your Address from step 1. Click Continue.
  3. Leave the sign-in settings Claude detected as they are (Use Claude’s published identity works with your site, and so does Register automatically), then click Add.
  4. When Claude sends you to your site, sign in if asked, read the screen, and choose Allow. (What the screen shows is below.)
  5. In a chat, click +, then Connectors, and switch your site on for that conversation.

ChatGPT

ChatGPT connects through its developer mode, on the web only. Tools that write (making drafts, staging changes) need a ChatGPT Business, Enterprise or Edu plan. On Pro, developer mode can only read, so your agent can look at your courses but not change them. Its help page does not list Plus.

  1. Go to Settings → Apps → Advanced settings and switch on Developer mode.
  2. Click Create app next to Advanced settings and paste your Address from step 1. If it asks how the app signs in, choose OAuth.
  3. When ChatGPT sends you to your site, sign in if asked and choose Allow.

ChatGPT may ask you to confirm before it uses a tool that writes. On your site each of those makes or changes a draft, or stages a change to something live.

Claude Code, without a password

Add your site with no header line, then sign in:

claude mcp add --transport http lms-blueprint https://your-site.example/wp-json/lmsb/v1/agent
claude mcp login lms-blueprint

Claude Code opens your site in your browser. After you choose Allow, claude mcp list shows your site as connected. Inside a session, /mcp does the same sign-in.

The screen on your site

Your site, not the app, shows this screen. It names:

  • the app, your site and the account you are signed in as;
  • the address it sends you back to, so you can check it is the app you meant;
  • each tool the app may use. Reading is always included. Also let it create drafts is ticked; untick it to give the app reading only.
  • Also let it change the design and Also let it publish, both unticked. Publish works only together with drafts.

If the app returns to an address on your own computer (Claude Code does), the screen says so. Any program on your computer could use that address, so choose Allow only if you started the connection yourself just now.

The app stays signed in: each sign-in lasts an hour and the app renews it by itself for up to 30 days of not being used.

4 · Or use an application password

An application password is a separate password for one app, which you can revoke at any time without changing your own password. Application passwords are part of WordPress.

  1. Go to Users → Profile and scroll to Application Passwords. The Create one link on the Agent access screen goes straight there.
  2. Type a name, such as the name of your AI app, and click Add New Application Password.
    The Application Passwords section of the profile with New Application Password Name and Add Application Password (no password created).
  3. Copy the password it shows you. WordPress shows it once.

An agent that signs in with an application password may read and create drafts. To let it change the design or publish too, tick Design or Publish under Application passwords on the Agent access screen.

Your app sends your username and this password together, encoded the standard way for “Basic” sign-in. Most apps want the finished header line. On a Mac or Linux computer, this prints it (put your own username and password in):

printf 'Authorization: Basic %s\n' "$(printf 'your-username:xxxx xxxx xxxx xxxx xxxx xxxx' | base64)"

Treat that line like a password. Anyone who has it can do what your agent can do.

Claude Code

In a terminal, run this once (put in your own address and the header line):

claude mcp add --transport http lms-blueprint https://your-site.example/wp-json/lmsb/v1/agent --header "Authorization: Basic ..."

Then run claude mcp list. Your site should show as connected. Inside a session, /mcp shows the same.

Gemini CLI

Run this once:

gemini mcp add --transport http --header "Authorization: Basic ..." lms-blueprint https://your-site.example/wp-json/lmsb/v1/agent

Or add it to your settings.json by hand, under mcpServers, with httpUrl set to your address and the header under headers.

Other apps

Any app that supports MCP over HTTP (“Streamable HTTP”) and lets you add an Authorization header can connect the same way: give it the address and the header line.

5 · Check what it did, and disconnect

The Changes tab listing what an agent changed, with Undo everything this app did since and Revoke preview links (empty on this site).

School → Agent access → Recent actions lists what agents did: when, which account, through which app, which action, the outcome, and links to anything they created. It doesn’t keep what the agent wrote.

Connected apps, on the same screen, lists every app that signed in through your site and what it may do. Disconnect stops that app at once; it would have to ask you again. Change permissions lets you untick a permission; the app has less from its next request.

The Changes tab lists every change agents made, with Preview, Apply and Undo. See Agent changes, previews and undo.

Other ways to cut an agent off:

  • Untick Allow agents to connect to this site. Every app stops; when you tick it again, apps that were connected work again.
  • Change your WordPress password. Every app that signed in through your site is disconnected.
  • Revoke an application password under Users → Profile.

If it doesn’t work

  • “Your account is not allowed to connect an agent to this site.” The account isn’t an administrator.
  • “Sign in to this site, or use an application password.” The app sent no sign-in, or the header line is wrong. Make a new application password, or connect again and choose Allow.
  • The app says it couldn’t reach your site, or never shows your sign-in screen. Check the two things under Before you start in step 3, and that Allow agents to connect to this site is ticked.
  • Your site says the address the app asked to return to is not one it registered. Your site will not send you anywhere it can’t check. Remove the connector in the app and add it again.
  • “This sign-in may read only.” You left Also let it create drafts unticked. Disconnect the app and connect it again with the box ticked.
  • The agent connects but has no tools. Agent access is switched off, or every tool is unticked.
  • “This needs the Design permission” or “This needs the Publish permission.” The app wasn’t given that permission. Connect it again and tick it, or tick it for application passwords on the Agent access screen.
  • “This has changed since you read it, so nothing was changed.” Someone edited the same thing after your agent read it. Ask your agent to read it again and redo its change.
  • “Too many changes in a short time.” Agents may make up to 30 changes a minute. Wait a moment.
  • “Too many requests in the last minute.” Wait a minute, or raise Requests per minute on the Agent access screen.
  • An import stops and asks about a quiz. The page has a quiz or flip cards whose answers sit in the page. Tell your agent whether to make a quiz, keep them as text, or leave them out.