Managing Academy with AI assistants (MCP)
Academy has a built-in Model Context Protocol server. With it, an AI assistant such as Claude can manage Academy for you: build courses, set up classes and assignments, invite people, check progress, run live sessions, look at sales, and handle the administrative tasks.
- Address:
https://<api>/v1/mcpon your installation’s API host, for examplehttps://api.academy.example.com/v1/mcp(Streamable HTTP transport; protocol versions2025-06-18,2025-03-26and2024-11-05) - Sign-in: OAuth 2.1 with PKCE, which assistants that support MCP’s authorization do by themselves, or a personal access token sent as
Authorization: Bearer acad_…(authentication) - What it can do: what you can do in the portal, with your role. Learners get learning tools, trainers get course and class tools, and administrators get administration. The platform’s tools are in the admin console’s own MCP server (ADR 0264).
Connect
Section titled “Connect”- Add the server to your assistant.
- With OAuth (assistants that support MCP’s sign-in): add only the address. The assistant registers itself and opens Academy’s consent page, where you sign in and allow it. It then appears under My account → My AI agents, where you can disconnect it.
- With a token: in Academy, open My account → My AI agents → Access tokens for AI assistants. Create a token with a name (e.g. “Claude on my laptop”) and an expiry, then copy it; it is shown only once. Then, for example in Claude Code:
Other MCP clients (Cursor, VS Code, Claude Desktop throughclaude mcp add --transport http academy https://api.academy.example.com/v1/mcp --header "Authorization: Bearer acad_…"
mcp-remote, …): add a Streamable HTTP server with the address and theAuthorizationheader.
- Ask, for example:
- “Create a course Fire safety with two modules and a short quiz, then publish it.”
- “Make a class Night shift with these people, assign Fire safety due 30 November, and tell me who is behind.”
- “Invite the people in this list as learners.” The assistant shows a preview first.
- “What did we sell this month?”
Safety
Section titled “Safety”- Same rules as the portal:
- Every tool calls the same API route the portal uses, as you.
- Roles, organisation boundaries and validation all apply.
- Every change is recorded in the activity log under your name.
- Your current role: a role change takes effect for the token at once. Tools above your role aren’t listed and can’t be called.
- Confirmation: irreversible tools (erase a person, delete a class or document, destroy encryption keys) only run with
confirm: true. The server tells the assistant to ask you first. Bulk invitations default to a dry run. - Read only: tick Read only when you create a token. The assistant then sees only reading tools, and the API refuses every change made with that token, whatever your role would allow. Tokens of auditors on the platform are always read only (ADR 0175).
- Scopes for agents signed in with OAuth (ADR 0341): an agent may ask for less than everything, and the consent page shows what it asked for. The person can allow it or deny it, but cannot widen it. A malformed request (another
response_type, no S256 PKCE) is shown as an error page, not sent back to the agent’s redirect address (ADR 0357).mcp: everything the person may do. Agents that ask for nothing else, or only for scopes from other systems such asopenid, get this, as before.learn:read: reading what every learner may do: courses, lessons, progress, notes, classes, appointments, Creative Space, groups, mentoring.learn:write: changing those things: progress, notes, quizzes, assignments, registrations, Creative Space, the AI companion, Pro.messages: one’s conversations with people and with the platform team.purchase: prices, checkouts and orders on invoice, vouchers, one’s purchases and subscriptions (also cancelling them).voice: speaking and listening through the installation’s servers. No tool needs it; the learning app uses it on the REST API (ADR 0344), which only the app’s own client may call directly.- Teaching, a manager’s team and reports, people, administration and finances need
mcp. Each tool’s scope is listed in mcp-tools.md. - A scope never gives more than the person’s roles allow. The API checks the scope on every request made for the agent, not only in the tool list. Integration routes refuse agents with fewer scopes than
mcp. - A refresh may keep or narrow the scopes (
scopein the refresh request), never widen them. My account → My AI agents shows what each agent was allowed.
- Without an organisation: free learners and the platform team create tokens in their account too, or connect their agent with OAuth like people in an organisation (ADR 0342). Their assistant acts as the platform account and sees the tools that work without an organisation.
- Revoking access:
- Revoke a token under My account to cut off an assistant at once.
- Sign out on all devices revokes all your tokens. Erasing a person deletes theirs.
- Only a hash of each token is stored. Tokens expire after 30, 90 or 365 days, or never, as chosen in the portal (the API takes 1 to 366 days). Agents signed in with OAuth get access tokens for an hour, renewed with a rotating refresh token that lasts 60 days.
- Rate limit: 600 requests a minute per person; above it
429 too_many_attemptsuntil the next minute. - Browsers: requests carrying an
Originheader are accepted only from the web app’s own address (CORS_ORIGINS).
Stable tools
Section titled “Stable tools”Tools marked ★ in mcp-tools.md keep the promise of the automation API v1 (ADR 0347):
- Their names, routes, scopes, input and output fields are only ever added to.
- A breaking change comes as a new tool, announced 12 months ahead.
The contract is integrations/mcp-stable-v1.json; apps/api/test/mcp-stable.test.ts holds the tools to it (UPDATE_MCP_CONTRACT=1 adds to it). The other tools follow the routes and may change.
Toolsets
Section titled “Toolsets”There are far too many tools to list at once, so they come in toolsets, like the portal’s menu areas:
| Toolset | What’s in it |
|---|---|
learn |
my courses, plan, companion, Pro, lab, progress, certificates; also reading courses and my team |
teach |
courses, lessons, classes, programmes, exams, presentations, videos, live sessions |
creative |
Creative Space: rooms, canvases, boards, projects, submissions, feedback |
exchange |
mentoring, community board, messages, groups, support tickets |
people |
teams, reporting lines, skills, evidence, mandatory trainings, reports |
manage |
organisation, sign-in, integrations, knowledge, AI, branding, retention |
finance |
plan and usage, payments, vouchers, learner bookings |
- What is listed: the assistant first lists the toolsets of your roles. Everyone gets
learn,creativeandexchange. Trainers and mentors also getteach. Admins also getpeople,manageandfinance. HR getspeople, accounting getsfinance. - Choosing yourself: add
?toolsets=learn,teachor?toolsets=allto the server address. - Everything else: two tools are always there.
search_toolsfinds any tool you may use, also in toolsets that aren’t listed, andcall_toolruns it by name. So the assistant reaches everything your roles allow, without carrying every tool around.
Coverage
Section titled “Coverage”Every route of the API has a tool, or deliberately none for a stated reason (ADR 0175). The list of routes still waiting for a tool has been empty since step M9.
A test keeps it that way, so new features can’t stay out of reach of assistants. Deliberately never through MCP:
- signing in;
- your own tokens, second factor, passkeys and account deletion;
- issuing credentials;
- what other systems call with their own credentials (SCIM, webhooks, content runtimes, the automation API);
- public sign-up forms;
- real-time connections.
- Uploading: a tool takes the file as Base64, up to about 4 MB. Examples are handouts, submissions, pictures, the profile photo and packages. Larger files are uploaded in the portal.
- Downloading: a file comes back inside the tool’s result, up to 4 MB. Text files such as CSV or calendar files come as text, anything else as Base64. Examples are certificates, exports and attachments.
Not available through MCP:
- Files over 4 MB: upload or download them in the portal. This includes live-session recordings, which the host’s browser uploads.
- Joining a live session’s audio and video, or starting a mentoring call.
- Chatting with the built-in AI companion: the assistant is already an AI. It can read the conversations, though.
- Secrets of other systems: API keys, passwords, client secrets. Enter them in the portal.
- Your own credentials: tokens, password, second step, passkeys, deleting your account.
Every tool, by toolset, with who may use it: MCP tools (generated, with the current count).