lms-cli

mcp
Security Audit
Fail
Health Warn
  • License — License: MIT
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Low visibility — Only 9 GitHub stars
Code Fail
  • rm -rf — Recursive force deletion command in install.sh
Permissions Pass
  • Permissions — No dangerous permissions requested

No AI report is available for this listing yet.

SUMMARY

Multi-school Canvas & Blackboard CLI and read-only MCP server for Codex, Claude Code, and terminal workflows

README.md
lms-cli

lms-cli

Multi-school Canvas & Blackboard CLI and read-only MCP server for Codex, Claude Code, and terminal workflows.

CI
Release
License: MIT
Node

English | 简体中文


Query courses, announcements, assignments, grades, files, and calendars across Canvas and Blackboard from a single terminal interface — or expose them safely to AI agents via read-only Model Context Protocol (MCP) tools.

Installation, school discovery, profile setup, and updates all happen directly in the terminal. A local sign-in window opens only when your university SSO or MFA requires interactive authentication.

Highlights

  • Multi-school & multi-platform: Search official Canvas school directories, use built-in presets, or connect any school by HTTPS URL; isolate credentials, caches, and local todos per profile.
  • Agent-ready via MCP: First-class plugins for Codex (plugins/lms-cli/) and Claude Code (plugins/lms-cli-claude/), plus standard lms mcp stdio support for any MCP client.
  • Strictly read-only by design: Explicit tool allowlist and JSON Schema validation — never submits assignments, starts exams, sends messages, or mutates LMS data.
  • Local-first security: Sessions and local todos are encrypted on disk with keys managed by your OS keychain (@napi-rs/keyring); SHA-256 verified standalone releases with resumable updates.
  • Deadline tracking & ICS export: Track schedule/deadline changes spotted in announcements and export local todos to .ics calendars.

Architecture

Terminal / Codex / Claude Code / MCP Client
                   │
                   ▼
         cli.ts  /  mcp.ts   ◄── config · auth · local todos
                   │
                   ▼
      backend.ts + policy.ts  (read-only allowlist · schema validation · cache)
                   │
                   ▼
     worker.ts  (isolated per profile × platform) ──► vault.ts (OS keychain)
                   │
                   ▼
    platforms/{canvas,blackboard}/runtime.ts  ──► University HTTPS API

Every LMS platform is registered once in src/platforms/registry.ts — CLI flags, MCP schemas, login policies, and overview planners are all derived from it. See docs/ARCHITECTURE.md.

Quick Start

1. Install

macOS / Linux:

curl -fsSL --proto '=https' https://raw.githubusercontent.com/zs-andy/lms-cli/main/install.sh | sh

Windows (PowerShell):

& ([scriptblock]::Create((Invoke-WebRequest -UseBasicParsing https://raw.githubusercontent.com/zs-andy/lms-cli/main/install.ps1).Content))

The installer downloads the matching self-contained archive from GitHub Releases, verifies SHA256SUMS.txt, and installs into your user directory with bundled Node.js — no admin rights, Node, npm, or Git required. For unsupported targets, see building from source.

2. Discover & Connect Your School

lms setup

Search by school name or domain, confirm the platform URL and time zone, connect Codex (optional), and complete school sign-in. Useful flags:

lms setup --school "Hong Kong"   # Search and add a school
lms setup --manual               # Enter a Canvas/Blackboard URL directly
lms setup --no-codex             # Standalone CLI without Codex plugin
lms setup --no-login             # Local profile setup only

3. Query Courses & Deadlines

lms canvas courses
lms blackboard courses
lms overview --days 7 --fresh

Use with Claude Code

After running lms setup --no-codex:

claude plugin marketplace add zs-andy/lms-cli
claude plugin install lms-cli@lms-cli

Or register the MCP server directly (do not enable both at once):

claude mcp add --scope user lms -- lms mcp

Read-only lms tools carry MCP read-only annotations; local configuration/login tools (lms_profile_add, lms_profile_use, lms_auth_login, lms_items_upsert) should remain confirmation-gated.

Updates

lms update --check      # Check for a newer stable release
lms update              # Download (with resume & SHA-256 check) and upgrade
lms update --rollback   # Revert to the previous version

Set LMS_UPDATE_CHECK=0 to disable automatic update checks.

Experimental Sign-In Options

When re-authentication is needed, lms-cli always opens your school's genuine SSO/login page. Optional, off-by-default Remember Password and Auto Sign-In toggles are available for standard forms, multi-step sign-in flows, and Microsoft ADFS (such as PolyU). Credentials are encrypted locally only after verified authentication; CAPTCHA, push MFA, and device compliance remain controlled by your school. See docs/USER_GUIDE.md for details and cleanup instructions.

Documentation

Contributing

Contributions are very welcome! Great places to jump in:

  • Add a new LMS platform (e.g., Moodle, Brightspace, Sakai) using the template in src/platforms/_template/ and docs/ADDING_A_PLATFORM.md.
  • Add or verify university presets with public HTTPS URLs and tested login/API coverage.
  • Improve cross-platform installers & tests across macOS, Linux, and Windows.

Run the offline test suite locally (no university account required):

npm ci
node node_modules/electron/install.js
npm run typecheck && npm test

See CONTRIBUTING.md before opening a pull request.

Disclaimer & License

Independent community project with no affiliation to any university, Instructure, Anthology, or OpenAI. Connectors build on canvas-student-mcp and blackboard-mcp; see THIRD_PARTY_NOTICES.md.

Licensed under the MIT License.

Reviews (0)

No results found