账号密码登录
xg_login_accountLogs in to the student affairs system with a username and password, using a captcha UUID/code when required, and saves the credential locally for later queries.
Instructions
用学工系统本地登录接口 POST /login 登录。需要验证码时先调 xg_login_captcha 拿 uuid。 密码按明文提交(系统前端就是这么做的),凭证只保存在本机 ~/.xgxt-mcp/token.json。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"username": "<username>",
"password": "<password>"
},
"name": "xg_login_account"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | 图形验证码(系统要求时必填) | |
| uuid | No | xg_login_captcha 返回的 uuid(系统要求时必填) | |
| password | Yes | 密码 | |
| username | Yes | 学号 / 工号 |