Repository navigation
Releases
v0.4.0
Changelog
Fixes
- 9ef2b5f: fix(browser): find Chrome Beta, Dev and Canary and skip empty profiles (@KoukeNeko)
- 2ace71b: fix(mcphost): check the passphrase and record a miss as one step (@KoukeNeko)
- 3e20459: fix(moodle): encode the query of a page request (@KoukeNeko)
- c72cb81: fix(moodle): mask credentials in the body excerpts of a response (@KoukeNeko)
- d8797e9: fix(safety): treat view-recording functions as writes on every path (@KoukeNeko)
Features
- d2f8437: feat(assignment): add overview, and serve it and quizzes over MCP (@KoukeNeko)
- 5328b40: feat(cli): add mcp host, with a Cloudflare quick tunnel by default (@KoukeNeko)
- 1dbe222: feat(mcp): serve the tools over Streamable HTTP (@KoukeNeko)
- 17ac86f: feat(mcphost): add an OAuth-protected host for remote MCP clients (@KoukeNeko)
- 3e6ae6b: feat(mcphost): end a sign-in when a spent code or refresh token is reused (@KoukeNeko)
- 025234d: feat(tunnel): run a Cloudflare quick tunnel under a guard process (@KoukeNeko)
- 28bede1: feat(update): tell interactive users when a newer release exists (@KoukeNeko)
Everything else
- e186ca5: Merge pull request #1 from KoukeNeko/feature/mcp-connection-host (@KoukeNeko)
- dfd16b6: Update README.md (@KoukeNeko)
The macOS binaries carry a Developer ID signature and Apple notarization.
Windows binaries are not Authenticode-signed, so SmartScreen may warn.
On every platform, verify the archive against checksums.txt and its
keyless workflow signature before running it.
v0.3.0
Added
moodle auth login --site school --method mobilelaunchOn macOS, press Enter to open the normal browser, complete institutional SSO, and let the CLI receive, verify, and save Moodle's Web Service token automatically. First sign-in installs a per-user URL handler in ~/Applications using macOS's built-in AppleScript compiler; Xcode and manual callback copying are not required. Linux retains its registered D-Bus callback handler.
The macOS helper receives an Apple Event and passes the callback through an anonymous stdin pipe and a private Unix socket. Token-bearing URLs are kept out of handler process arguments and temporary files. Registration preserves unrelated applications, supports repeated registration, and restores the previous helper if an update fails. The locally compiled helper is signed ad hoc; the distributed CLI retains Developer ID signing and Apple notarization.
Documentation and limitations
The English and Traditional Chinese README and handbook now explain the separate OAuth and mobile callbacks, token lifetime, signing in again, and choosing authentication for an agent harness. Harness guidance covers reusing credentials, explicit login methods, secure stdin/environment inputs, desktop browser sign-in, and headless credential provisioning.
An eCourse2 browser sign-in and subsequent Web Service course listing were verified on 2026-10-09. Its actual token expiry was not exposed by the APIs checked; Moodle's default token duration is not a confirmed expiry for that site. The CLI has no automatic token refresh or remote/device-code login flow. Windows automatic callbacks remain unsupported. mobilelaunch --no-input skips the Enter prompt but still requires a browser sign-in and callback, so it is not a headless login mode.
Contract
schema_version stays 1; no fields were added to the JSON contract.
Download the archive for your OS and CPU and verify it against checksums.txt and its keyless workflow signature. The macOS CLI binaries carry a Developer ID signature and Apple notarization. Windows binaries are not Authenticode-signed.
v0.2.1
Changelog
Fixes
- 6895861: fix(grade): show text where Moodle sent markup (@KoukeNeko)
- 7080f0a: fix(test): assert the credential file's mode only where the OS has one (@KoukeNeko)
Features
- b066cf0: feat(auth): add setup, which asks the site and suggests a login method (@KoukeNeko)
- c106714: feat(auth): read the QR content and browser session from stdin (@KoukeNeko)
The macOS binaries carry a Developer ID signature and Apple notarization.
Windows binaries are not Authenticode-signed, so SmartScreen may warn.
On every platform, verify the archive against checksums.txt and its
keyless workflow signature before running it.
v0.2.0
Changelog
Fixes
- 7e3cfb8: fix(cli): show local dates and align wide characters (@KoukeNeko)
- f48394c: fix(errs): report an interrupt as 130, and an interrupted write as ambiguous (@KoukeNeko)
- 3f1171f: fix(quiz): declare the course short name the token route cannot read (@KoukeNeko)
- 307981b: fix(secret): explain a locked keychain and name MOODLE_SESSION (@KoukeNeko)
- de76b18: fix(session): read what the page routes left blank (@KoukeNeko)
Features
- 1cd9e45: feat(cli): add --current to course, assignment and quiz lists (@KoukeNeko)
- 94a96e9: feat(cli): add --fields, --no-input and per-command schemas (@KoukeNeko)
- 8c77364: feat(cli): add shell-completion and complete sites and accounts (@KoukeNeko)
- 6e56eff: feat(cli): wire --verbose to the redacted HTTP trace (@KoukeNeko)
- 9610ef1: feat(quiz): list quizzes and show your attempts (@KoukeNeko)
- e2c3698: feat(secret): keep credentials in a 0600 file where there is no keychain (@KoukeNeko)
Everything else
- d17f64a: build: add install scripts and Linux packages (@KoukeNeko)
The macOS binaries carry a Developer ID signature and Apple notarization.
Windows binaries are not Authenticode-signed, so SmartScreen may warn.
On every platform, verify the archive against checksums.txt and its
keyless workflow signature before running it.
v0.1.3
Changelog
Fixes
- 42539f8: fix(auth): provide secure Safari session fallback (@KoukeNeko)
The macOS binaries carry a Developer ID signature and Apple notarization.
Windows binaries are not Authenticode-signed, so SmartScreen may warn.
On every platform, verify the archive against checksums.txt and its
keyless workflow signature before running it.
v0.1.2
Changelog
Fixes
- 2031cbe: fix(ci): keep decade retry portable on hosted runners (@KoukeNeko)
- 5b38232: fix(release): resolve draft release ID through gh CLI (@KoukeNeko)
Features
- 6e3aec6: feat(auth): import Safari sessions on macOS (@KoukeNeko)
The macOS binaries carry a Developer ID signature and Apple notarization.
Windows binaries are not Authenticode-signed, so SmartScreen may warn.
On every platform, verify the archive against checksums.txt and its
keyless workflow signature before running it.
v0.1.1
Moodle CLI v0.1.1 — first public release
Moodle CLI is an independent command-line client for learners, educators, administrators, scripts,
and agents. v0.1.0 was a failed, unpublished release attempt; v0.1.1 is the first public release.
Highlights
- Read courses, participants, groups, assignments, grades, forums, calendars, completion, workload,
and files; use reviewed high-level writes when the active Moodle account has permission. - Inspect and call the typed registry of 780 core Web Service functions across Moodle 4.5.12, 5.1.7,
and 5.2.3. Unknown and third-party functions remain available throughmoodle api call. - Use human-readable output or the versioned
--jsoncontract. MCP tools are read-only by default;
write tools require an explicit opt-in. - Log in with a site-supported token, credentials, browser session, or mobile/browser flow. The
automatic browser callback handler is currently Linux-only; manual callback works on all platforms. - Verify behavior against Docker-backed Moodle 4.5.12, 5.1.7, and 5.2.3 test sites, including
ten-year academic scenarios. The separate scale fixture models 50,000 students and 1,000 courses.
Install
macOS or Linux with Homebrew:
brew tap KoukeNeko/tap
brew install koukeneko/tap/moodle-cliWindows with Scoop:
scoop bucket add koukeneko https://github.com/KoukeNeko/scoop-bucket
scoop install koukeneko/moodle-cliOr download the archive for your OS and CPU below. Compare it with checksums.txt; verify
checksums.txt.sigstore.json with Cosign and the release workflow's GitHub Actions identity.
The macOS binaries are Developer ID-signed and notarized. Windows binaries are not
Authenticode-signed, so SmartScreen may warn.
See the installation handbook,
繁體中文安裝手冊, and
complete command reference.