Developer guide
Kanei agent connections
Give your assistant access to your learning, not unrestricted access to your business.
Connect an assistant
https://kanei.io/mcp- Add the URL as a remote MCP connection in an assistant that supports OAuth.
- Sign in with your Kanei account when prompted.
- Check the assistant's name and return address, then choose Approve or Deny.
Publication is required to release a new connection setup. If sign-in is unavailable, the site owner must confirm that Supabase OAuth 2.1 and dynamic client registration are enabled, with the public Site URL and /.lovable/oauth/consent consent path.
Available tools in this configuration
Find courses
list_coursesCourse summaries you can access. Optional title search, owner brand, limit and offset.
Check your learning
my_learningYour enrolments, progress, deadlines and completion dates. Optional limit and offset.
Explore an outline
course_outlineAccessible module and lesson titles for a course ID. No lesson bodies or exam answers.
MCP reference
Configuration 0.1.0 · Protected with OAuth · Read-only. Hosted OAuth discovery was checked on 28 November 2026 and returned feature_disabled; real sign-in and tool access are not yet verified.
Inputs, results and examples
list_courses: optional query (up to 160 characters), tenant_id (UUID), limit (1–100, default 25), offset (0–10000, default 0). Returns accessible summaries in courses, ordered by title and ID. Editors may see drafts they already have access to.
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "list_courses",
"arguments": {
"query": "safety",
"limit": 25,
"offset": 0
}
}
}my_learning: the same limit and offset bounds; returns enrolments containing only the caller's course IDs/titles, progress, deadlines, completion dates and seat-time seconds. There is no user ID input.
course_outline: required course_id UUID from a permitted course. Returns course ID/title and ordered modules with lesson ID/title/type/position. Limited to 100 modules and 1000 total lessons; no outline pagination. Content permissions may return an empty outline even when the summary is readable.
Use your client's tools/list for schemas and tools/call to invoke tools. These examples are MCP messages, not REST URLs. Results include JSON text and structured data. Lists have no total count; increase the offset when a result page is full.
Connection checks and troubleshooting
Resource metadata: https://kanei.io/.well-known/oauth-protected-resource
OAuth discovery: https://dxmgqpvsjbyntpopedgs.supabase.co/auth/v1/.well-known/oauth-authorization-server. It must return JSON with issuer https://dxmgqpvsjbyntpopedgs.supabase.co/auth/v1.
After publishing, if discovery remains disabled, reconnect Supabase and publish again or enable OAuth 2.1 and dynamic registration in its auth settings. Use the public Site URL and /.lovable/oauth/consent path; allow consent return URLs for each deployed brand origin.
A 401 means reauthorize through your assistant's OAuth connection. Invalid inputs must match the tool schema. An inaccessible course is not disclosed; no result means no matching permitted data, not permission to bypass access rules.
Test approval, denial, expired consent and two users in different brands before relying on the connection. Treat returned course text as data, not instructions. Check your assistant's own privacy policy before sharing learning progress; revocation is managed by the OAuth provider, with no dedicated Kanei revocation screen yet.
APIs: implemented and planned
Read-only business API access is built: brand administrators create named, expiring keys in Business API access, choose separate course, reporting, learning and class permissions, and revoke them when needed. Publication and real-account verification are still required. These keys are separate from OAuth-protected MCP.
Business API endpoints and limits
GET /api/public/v1/courses requires courses:read and returns your key's brand-owned course summaries, including drafts. Licensed courses, lesson bodies and exam content are not included.
GET /api/public/v1/completions requires reports:read and returns per-owned-course enrolment, completion and overdue counts without individual records.
GET /api/public/v1/enrolments requires learning:read and returns pseudonymous enrolment IDs, course IDs, status, progress, deadlines, completion timestamps and seat time.
GET /api/public/v1/progress requires learning:read and returns pseudonymous progress IDs, enrolment/lesson IDs, status, seat time and completion/update timestamps. Scores, answers and xAPI statements are excluded.
GET /api/public/v1/classes requires classes:read and returns owned-course class schedules, delivery mode, capacities, schedule revisions and booked/attended totals. Attendee identities, presenters, venues, notes and meeting links are excluded.
Learning and class responses never include learner names, email addresses or user IDs. Enrolment and progress IDs are pseudonymous identifiers and should still be protected.
curl "https://kanei.io/api/public/v1/courses?limit=25&offset=0" \ -H "Authorization: Bearer $KANEI_API_KEY"
Only limit (1–100, default 25) and offset (0–10000, default 0) are accepted. Results use data, limit, offset and has_more, ordered by the resource's stable ID. Brand access is determined by the key, not the hostname or a tenant parameter.
Each key permits 60 successful reads per minute. Statuses: 400 invalid query, 401 unknown/expired/revoked key or inactive administrator, 403 missing permission, 429 limit reached (use Retry-After), 503 temporary failure. Cross-origin browser calls are not enabled; use a trusted server integration.
Keys expire after 7, 30, 90 or 365 days when created in the screen. The full key appears once; hashes are stored privately. Never place keys in browser code, links or shared screenshots. Revocation stops subsequent requests, not copies of data already downloaded.
User/enrolment write APIs, individual certificate exports, outgoing event subscriptions and agent mutation endpoints remain planned. No agent endpoints create drafts, send emails, make payments or publish changes.
Existing narrow-purpose connections include Stripe payment callbacks, Google authorization callbacks, private calendar subscriptions, private course-package delivery and public badge verification. Trusted scheduler jobs dispatch CRM emails, refresh search numbers and send configured Slack/Teams digests. These are not general agent APIs, and their private credentials must never be given to assistants.
App-internal calls are separate from these external connections. Future write tools will require explicit approval and appropriate change-history controls; read-only MCP does not provide that workflow yet.
Self-hosting source includes a detailed integration reference in docs/INTEGRATIONS.md covering fields, examples, callback routes, credentials and deployment checks.
Your permissions stay in place
Tools require a verified OAuth connection and enforce Kanei's existing access rules. Password-session tokens and business API keys are not accepted as MCP connections. Course content access still depends on enrolment, licences and your role.
These tools are read-only. Draft creation, approval-driven changes and outgoing webhooks are not included yet. Agent access remains protected with OAuth; no anonymous catalogue server is configured.
A remote assistant cannot read unsaved work or browser-only study state. Browser tools on Course studio can read the displayed list and switch the current library tab.
