kntu-moodle-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MOODLE_HOME | No | Override the directory where the token cache is stored (default is ~/.kntu-moodle-mcp/tokens.json). | |
| MOODLE_LANG | No | Language setting. | |
| MOODLE_TOOLS | No | Tool allowlist. | |
| MOODLE_READ_ONLY | No | Read-only mode setting. | |
| MOODLE_SECRETS_FILE | No | Path to the secrets.yaml file used for signing in (e.g. secrets.yaml). |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Tools for the KNTU Moodle (mdl.kntu.net.ua), acting as the signed-in student. If a tool returns AUTH_REQUIRED, use the moodle:login skill (auth_status / login). Content is mostly in Ukrainian.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| auth_statusA | Check whether the server is signed in to the KNTU Moodle (mdl.kntu.net.ua) and whether the token still works. Call this first when unsure; it never fails. If signedIn is false, follow the returned instructions to sign in. |
| loginA | Sign the user in to the KNTU Moodle with the credentials stored in secrets.yaml (read by the server; the password never appears in arguments or output). Takes no arguments: never pass or ask for a password. Errors: CREDENTIALS_MISSING (secrets.yaml not set up), INVALID_LOGIN (wrong credentials, do not retry). |
| logoutA | Forget the stored Moodle token on this computer and stop automatic re-login until |
| whoamiA | Get the signed-in student's profile and site details: full name, username, user id, site name, language, Moodle release, and how many web-service functions the token may call. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 4 tools
Each tool has a distinct role: auth_status checks token validity, login/logout manage the session, and whoami returns profile data. auth_status and whoami overlap slightly since both reveal sign-in state, but the descriptions make the boundary clear (status check vs. full profile).
Names mix conventions: `auth_status` is a namespaced snake_case identifier, `login`/`logout` are bare verbs, and `whoami` is a Unix-ism with no verb_noun structure. The set is still readable and each name is intuitive, but there is no predictable pattern an agent can extrapolate.
Four tools is thin for a server branded as a full Moodle integration, though it is reasonable if the scope is deliberately auth-only. No tool feels redundant, so the count is borderline rather than excessive or trivial.
The auth lifecycle (status, login, logout, identity) is fully covered with no dead ends, but the Moodle domain itself is untouched — no course listing, assignments, grades, deadlines, or content access. An agent asked to do anything academic with Moodle would immediately fail.