Skip to main content

IndusLMS Agent

PyPI Python License

Agent access to Indus LMS academics — announcements, assignments, results, learning tasks, shared resources, messages, notifications, attendance, policies — plus school email and OneDrive files. For pi, opencode, Claude Code/Desktop, and OpenAI-compatible agents via MCP + Skill + CLI.

Quickstart

git clone https://github.com/StrangeSid/induslms-agent.git
cd induslms-agent
./install.sh

install.sh creates .venv, installs the package, logs you in, wires up MCP configs for pi + opencode, installs the skill, and runs a health check. Then restart your agent host and ask: "list my courses using induslms-academics".

Manual setup (if you prefer)
python3 -m venv .venv && source .venv/bin/activate
pip install -e .  # or: pip install -r requirements.txt
cp .env.example .env  # fill in your values (auto-loaded, never committed)
python3 lms.py login you@school.example
python3 lms.py doctor  # health check

Or from PyPI: pipx install induslms-agent (or uvx induslms-agent doctor), then induslms login you@school.example and use induslms-server as your MCP command.

Updating

pipx upgrade induslms-agent      # PyPI install
git pull && ./install.sh         # git clone (re-runs doctor to verify)

No re-login needed: tokens live outside the repo and survive updates. If a release adds new Graph scopes, run python3 sharepoint.py login (or outlook.py login) once to consent.

Configuration

Variable Purpose
INDUSLMS_EMAIL / INDUSLMS_PASS Used once by lms.py login, then discarded
INDUSLMS_TENANT Tenant fallback when the token has no roles
INDUSLMS_TOKEN_FILE Token cache path (default ~/.induslms_token.json)
INDUS_OUTLOOK_CLIENT_ID Optional custom Entra app id (default: builtin Office → Thunderbird, no registration)
INDUS_USE_BUILTIN_CLIENT=0 Force custom app id only (disables builtin Office/Thunderbird chain)

Credentials live only in your local process environment. The MCP server exposes no login/token tools, no tool ever returns secrets, and .gitignore blocks .env, *token*.json, and downloads. The access token is refreshed shortly before it expires and the new pair is saved back (0600), so a lapsed token no longer breaks the CLI or MCP server. Upload tools refuse hidden paths and the token file.

MCP server

Stdio, 48 tools. Run with python3 server.py (or induslms-server after install).

Group Tools
LMS academics get_profile, list_courses, list_resources, get_resource, download_resource, assignments_overview, list_eol, list_assessments, list_notifications, get_attendance, get_attendance_day, list_announcements, list_calendar
LMS details get_eol_result, get_assessment_submission, get_assessment_feedback, get_request_status, list_learning_tasks, get_learning_task, list_announcements_full, list_message_contacts, list_message_threads, get_conversation, list_policies
Parents list_children, child_courses, child_attendance, child_calendar, child_learner_profile, child_overview (read tools also take student_profile_id)
LMS writes send_message, mark_notification_read, mark_all_notifications_read, mark_announcement_read, request_extension_or_resubmission, cancel_request, submit_assessment_files, submit_learning_task
Mail (macOS, no setup) schoolmail_search, schoolmail_read, schoolmail_folders
Mail (Graph, any OS) outlook_search, outlook_read, outlook_folders
Files (Graph, any OS) od_resolve_link, od_browse, od_list_sites, od_download

Connect your host (replace /path/to with your checkout; ready-made files in examples/):

Host Config
pi ~/.pi/agent/mcp.json (or run ./install.sh, which merges it)
opencode ~/.config/opencode/opencode.jsonc under mcp (v1) or mcp.servers (v2)
Claude Code claude mcp add induslms-academics -- <venv-python> <checkout>/server.py, or copy .mcp.json
Claude Desktop paste examples/claude_desktop_config.json.example into claude_desktop_config.json, relaunch
OpenAI SDK MCPServerStdio with {command: <venv-python>, args: [server.py]}; hosted MCP/GPT Actions need public HTTPS (not provided, stdio-only by design)

School email

  • Apple Mail.app (macOS, zero setup): python3 mailapp.py search "assignment" --top 5 — reads the existing School account via osascript. On other platforms these tools report unavailable; use Outlook instead.
  • Outlook/Graph (any OS, no registration, no code typing): .venv/bin/python outlook.py login (browser opens, sign in once), then search / read / folders. Uses builtin Office → Thunderbird clients as yourself (Mail.Read user consent, no admin, no Azure app). Headless fallback: login --device.

OneDrive / SharePoint files (any OS, no registration)

Same browser sign-in + token cache as Outlook (Files.Read + Sites.Read.All user consent, one login covers mail + files):

.venv/bin/python sharepoint.py login
.venv/bin/python sharepoint.py resolve <sharing-link-from-mail>
.venv/bin/python sharepoint.py browse /
.venv/bin/python sharepoint.py download <item-id-or-link> --out /tmp/school

Skill + prompt template

  • Skill (skills/induslms-academics/): workflow guidance for agents (notices → assignments → resources → attendance + inbox). Install: bash scripts/install-skill.sh (pi, opencode, Claude).
  • Prompt (examples/update-resources.prompt.md): copy-paste template that refreshes a local School/ folder from LMS + mailbox. Fill in your subjects/teachers, paste into a fresh agent session.
  • API reference: skills/induslms-academics/references/endpoints.md (reverse-engineered endpoints, verified live).

Contributing, changelog, license

See CONTRIBUTING.md and CHANGELOG.md. Licensed under GPL-3.0-or-later — see COPYING.

Metadata

Release files for induslms-agent 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for induslms-agent 0.5.0
File Size Uploaded Provenance Actions
induslms_agent-0.5.0.tar.gz 55.2 kB With provenance Details for induslms_agent-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for induslms-agent 0.5.0
File Interpreter ABI Platform Actions
induslms_agent-0.5.0-py3-none-any.whl Python 3 none any Details for induslms_agent-0.5.0-py3-none-any.whl

Total release size: 106.8 kB

Release files / induslms_agent-0.5.0.tar.gz

Download URL induslms_agent-0.5.0.tar.gz
Size 55.2 kB
Tags Source
SHA-256 checksum
How to use checksums
61043721ed78ef0d3e6ea93c3e163bf2f8f33e057e31c03903045f1d96293a3f
BLAKE2b-256 checksum
How to use checksums
3f0f57ef3516b64058f0f4c7dbdebf909b54ba3a1c86739af7ad18e0ad861cd4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Release files / induslms_agent-0.5.0-py3-none-any.whl

Download URL induslms_agent-0.5.0-py3-none-any.whl
Size 51.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bb2cec9de831d17dc1c268278fdb66cd0edc95111fadd2d64f18435b0e898688
BLAKE2b-256 checksum
How to use checksums
dfc578b833a05247bdc68ff8d1eff1eb6e410a4f7cf6498724425fe1d6e8c1e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Security for induslms-agent 0.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for induslms_agent-0.5.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page