lexueMCP
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| LEXUE_PROFILE_DIR | No | Specify a separate location for the browser login profile. The default is ~/Library/Application Support/lexueMCP/chrome. The Chrome profile cannot be placed inside the source directory, nor share the everyday Chrome data directory. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
使用用户当前在独立 Chrome 内登录的北理工教师账号。先查明课程编号和目标。登录失效时先用 lexue_open_login。若写操作返回 WRITE_OUTCOME_UNKNOWN,先读取该条目核对状态再决定下一步。
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 |
|---|---|
| lexue_capabilitiesA | 读取能力来源、支持状态和待验收项,无需登录新乐学。 |
| lexue_open_loginA | 打开专用 Chrome 的新乐学登录或课程列表。需要验证时由用户在北理工登录页完成。 |
| lexue_list_coursesA | 读取课程列表的一页,返回课程编号、学期和代码。可在这一页筛选名称、代码和学期。 |
| lexue_get_courseB | 读取指定课程的基本设置及课程类型。 |
| lexue_create_courseA | 按用户给出的名称新建课程。平台预设为一般课程。返回新课程编号。 |
| lexue_update_courseC | 修改指定课程的基本设置,重新打开设置页核对。 |
| lexue_list_membersC | 读取指定课程的教师、学生人数及成员页可见业务信息。 |
| lexue_read_course_sectionB | 读取课程章节、测试、讨论、问卷、题库、点名、分组、成绩或学习分析的可见文字。 |
| lexue_list_assignmentsA | 读取指定课程的作业列表及其显示的提交、待批改状态。 |
| lexue_list_coursewareB | 读取指定课程课件列表及页面显示的状态。 |
| lexue_list_announcementsC | 读取指定课程公告列表。 |
| lexue_get_activityA | 按精确标题查看作业、课件或公告。发现同名条目时返回歧义,便于核对。 |
| lexue_create_assignmentA | 新建作业并保存。可上传用户指定的本地附件,只有 publish=true 时才发布。 |
| lexue_update_assignmentA | 按精确标题定位作业,编辑字段或附件。发布需要明确提供 publish=true。 |
| lexue_list_submissionsB | 进入指定作业的提交或批改页面,返回平台显示的学生提交业务信息。 |
| lexue_upload_coursewareA | 把用户指定的本地文件添加到指定课程的参考资料。只有 publish=true 时才发布。 |
| lexue_save_announcementA | 保存课程公告的标题、正文及可选本地附件。平台可能立即发布。编辑时给出现有标题。 |
| lexue_delete_activityA | 按课程、模块和精确标题删除作业、课件或公告。需先由用户确认目标和删除影响。 |
| lexue_download_attachmentB | 把指定条目的附件下载到已存在的本地目录。保留同名的本地文件。 |
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 19 tools
Most tools map clearly to a distinct resource and action, such as list_courses, create_assignment, or download_attachment. Some overlap exists because get_activity and delete_activity apply generically to assignments, courseware, and announcements, while other tools are resource-specific, but the descriptions mostly clarify the boundaries.
The tool set consistently uses the lexue_ prefix and snake_case, mostly following a verb_noun pattern. Minor deviations like lexue_capabilities (noun-only) and mixed verbs such as save/create/update/upload keep it from being perfectly uniform.
At 19 tools, the set is somewhat large but still reasonable for an LMS automation server covering courses, members, assignments, courseware, announcements, attachments, login, and section reading. Most tools have a clear role, though a few generic activity tools add some surface area.
The server covers broad read access and core write operations for courses, assignments, announcements, and courseware. However, notable lifecycle gaps remain: no course deletion, no member enrollment management, no submission grading, no courseware update, and no write operations for many readable sections such as discussions, tests, or grades.