Skip to main content
Glama
gzgs-xgxt-mcp
by yjp-jdp

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

广州工商学院学生工作管理服务系统(学工系统)工具。 首次使用先调 xg_login_status;未登录时可用 xg_login_token 粘贴浏览器里的 Xsfwpt-Token,或用 xg_login_browser 从已开启调试端口的本地浏览器自动抓取。 所有分数在网站里是 ×100 的整数,本服务已统一除以 100 转成百分制。

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
xg_login_statusA

检查本地保存的登录凭证是否还有效。返回当前用户(姓名/学号/班级/院系)、角色、权限码数量。未登录时提示下一步怎么做。

xg_login_tokenA

直接写入从浏览器拿到的登录凭证。 获取方式:浏览器登录学工系统 → F12 → Application/应用 → Cookies → 选 https://usc.gzgs.edu.cn → 复制 Xsfwpt-Token 的值。 写入后会自动校验一次,有效才保存。

xg_login_browserA

从一个已开启远程调试端口的本地浏览器里,自动抓取已登录页面上的 Xsfwpt-Token。 前提:浏览器以 --remote-debugging-port=9222 启动,并且已经登录学工系统。 这是最省事的方式——不用手动复制 Cookie。

xg_login_captchaA

拉取学工系统的图形验证码,返回 uuid 和可直接显示的 base64 图片。 拿到后让人读出验证码,再把 code + uuid 一起传给 xg_login_account。 注意:学校主入口是 CAS 单点登录,账号密码登录是否可用取决于学校是否给该账号开了本地登录。

xg_login_accountA

用学工系统本地登录接口 POST /login 登录。需要验证码时先调 xg_login_captcha 拿 uuid。 密码按明文提交(系统前端就是这么做的),凭证只保存在本机 ~/.xgxt-mcp/token.json。

xg_logoutB

调用系统 /logout 并清除本地保存的凭证。

xg_meA

返回当前登录用户的基础资料(姓名/学号/班级/专业/院系/年级),以及角色列表和全部权限码。 权限码形如 comEva:personal:list,能看出这个账号实际能访问哪些接口。

xg_menuA

拉取后端按当前角色下发的菜单(getRouters)。这是"这个账号实际能点开什么"的权威答案。 platform=pc 是桌面端,platform=m 是手机端。

xg_semestersA

列出全部学年学期(含 id)。五进相关的接口都要用这个 id 过滤。

xg_comeva_batchesA

列出全部综合测评批次(id / 名称 / 学年学期)。后续查综测名单和明细都要用 batchInfoId。

xg_comeva_studentsA

按批次拉取综测名单汇总。注意:数据范围由后端按角色控制——学生看到自己班,测评小组组长看到全班。分数已转成百分制。

xg_comeva_detailB

这是综测里信息最全的接口。返回: · 三个维度(品行/学业/文体)的全部加扣分项目,每项含自评分、认定分、是否已评、佐证材料链接 · 课程成绩(课程名/学分/成绩) · 四方评语(小组/辅导员/班主任/院系) · 各项分数(百分制) id / batchInfoId / userName 三个参数都要给,缺一不可。

xg_comeva_classA

对某个批次下的全部(或指定几个)学生逐个拉明细,汇总成一张带加分项目的表。 数据量大(每人一次请求),只拉你确实需要的范围。

xg_wujin_listB

五进育人手册的原始记录。dim 可选:classroom 进课室 / library 进图书馆 / laboratory 进实验实训室 / competition 专业竞赛 / gymnasium 进体育场馆 / society 进社会。 需要 studyYearSemesterId,可先调 xg_semesters 取。

xg_wujin_statsC

五进手册统计页用的两个接口:top 与 bottomFirst 的原始数据。

xg_suggestionsC

拉取意见反馈列表(数据范围由后端按角色控制)。

xg_dictA

读取系统的数据字典,用来解读返回结果里的枚举值。常用:user_type(角色类型)、read_status(已读状态)、school_year(学年)、competition_level(竞赛级别)。

xg_my_classesB

返回当前账号关联的班级信息。

xg_rawA

按需直调 system 的任意 platform-api 路径,用于上面没封装到的接口。 只支持 GET,路径示例:/system/user/profile。别拿它做写操作。

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.4/5.0

Scored across 19 tools

Disambiguation4/5

The domain prefixes (login_*, comeva_*, wujin_*) make most tools clearly separable, and the three login paths (account/captcha, manual token, browser auto-grab) are explicitly differentiated by their preconditions. The main overlaps are xg_login_status vs xg_me (both return user identity, role and permission info) and xg_comeva_students vs xg_comeva_class (summary list vs per-student aggregation), which an agent could confuse without reading carefully.

Naming Consistency4/5

Names follow a steady xg_<domain>_<resource> snake_case pattern with subsystem grouping (comeva, wujin, login). A few outliers break the pattern: bare nouns xg_me, xg_menu, xg_dict, xg_raw lack a domain segment, and xg_logout is verb-only, but the overall convention is still predictable.

Tool Count4/5

19 tools is on the heavier side, but they map cleanly onto real subsystems: 6 auth, 5 identity/metadata, 4 综测, 2 五进, plus semesters and suggestions. Each tool has a concrete purpose, though the six login/identity tools are the one area that could be consolidated.

Completeness4/5

The surface covers the query lifecycle well: auth (captcha/login/token/browser/logout/status), identity (me/menu/dict/classes), semesters, 五进 records and stats, and the full 综测 chain from batches to per-student detail to class aggregation, with xg_raw as a GET-only escape hatch. Gaps are mostly write operations (no submissions, feedback creation, or score entry), which is consistent with the server's read-oriented design but limits it for any mutating workflow.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues