Skip to main content
Glama
Flagwill

传承·交大 MCP

by Flagwill

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
HOMENoUsed to locate the user's configuration/credentials directory. Passing it is recommended when the MCP client starts with a restricted environment.
XDG_DATA_HOMENoWhen set, the default credentials/config directory is placed under this location instead of ~/.local/share/share-sjtu-mcp/data.
SHARE_SJTU_TOKENNoExisting web-version JWT. Takes precedence over the token stored in the configuration file.
SHARE_SJTU_CONFIGNoPath to a data/*.json configuration file outside the repository. Used to specify configuration and credentials.
SHARE_SJTU_API_URLNoAPI base URL. Default: https://api-v2.share.dyweb.sjtu.cn.https://api-v2.share.dyweb.sjtu.cn
SHARE_SJTU_TIMEOUTNoAPI timeout in seconds. Default: 30 seconds.30
SHARE_SJTU_WEB_URLNoWeb base URL. Default: https://share.dyweb.sjtu.cn.https://share.dyweb.sjtu.cn
SHARE_SJTU_DOWNLOAD_DIRNoDownload directory. Default: ~/Downloads/share-sjtu, or the user data directory when Downloads is unavailable.~/Downloads/share-sjtu
SHARE_SJTU_REDIRECT_URINoOAuth redirect URI. Default: http://127.0.0.1:17865/callback.http://127.0.0.1:17865/callback

Instructions

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

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
share_auth_statusB

检查 token 是否存在、过期时间与账号资料;不会输出 token。

share_login_startA

生成 jAccount 登录 URL;浏览器登录后复制回调 URL 交给 share_login_complete。

share_login_completeA

用完整回调 URL 或 code+state 完成登录;凭据仅保存到本机私有配置。

share_logoutA

删除本地保存的 token;环境变量提供的 token 须在宿主配置中移除。

share_get_profileA

读取当前用户姓名、昵称、身份、组织、头像与积分余额。

share_update_profileA

更新昵称(最多 16 字)、上传头像(本地图片,最大 5 MB),或恢复默认头像。

share_search_coursesB

按课程关键词搜索课程;返回 ID、课程代码、学分、资料数量和网页链接。

share_suggest_coursesB

课程关键词自动补全,适合名称不完整时获取候选。

share_get_courseA

读取课程详情、课程简介、教学大纲和课程类别;可同时列教学班。

share_list_course_classesA

列出课程的教学班、教师及资料数量;上传时需要 class_id。

share_get_course_materialsB

按教学班读取课程资料树,另列未归档资料;限制每组返回数量。

share_list_course_materialsB

展平课程资料,支持资料类型、免费、名称/描述筛选与最新/最旧/热门/名称排序。

share_search_materialsB

跨课程检索:先搜课程,再对相关课程资料排序。无全站资料搜索 API;混合关键词可用 course_keyword 指定课程名。

share_list_material_typesA

获取当前资料类型及 ID;类型 ID 以接口返回为准。

share_get_materialA

读取资料详情、描述、文件大小、积分价格、上传者、兑换数、点赞状态与网页链接。

share_get_download_urlA

获取临时下载链接;可能需要先兑换资料。链接含临时权限,请勿公开分享。

share_download_materialB

流式下载到本地并返回路径、大小、SHA-256;不会自动兑换。默认同名文件自动改名。

share_purchase_materialA

兑换资料,可能扣除积分;请先读取详情确认价格。confirm=true 执行。

share_rate_materialA

点赞/点踩资料;rating=like/hate,liked=false 表示取消。

share_get_material_report_reasonsB

获取举报资料的可用 reason code 与文案。

share_report_materialA

举报资料;reason 使用举报原因接口返回的 code。confirm=true 执行。

share_upload_materialA

上传本地文件并创建资料:申请票据、上传对象存储、提交元数据。最大 100 MB,价格 0–10,默认匿名且免费。confirm=true 执行。

share_update_materialA

修改自己上传资料的名称、描述、类型、价格或匿名状态;未指定字段保持原值。confirm=true 执行。

share_delete_materialA

删除自己上传的资料,可能无法恢复。confirm=true 执行。

share_list_commentsA

分页读取资料评论;sort=old/new/like(最早/最新/最热)。

share_list_comment_repliesB

分页读取评论下的回复。

share_post_commentA

发表资料评论或回复,最多 1000 字;parent_id 指向被回复评论。confirm=true 执行。

share_rate_commentB

点赞/点踩评论;liked=false 取消。

share_delete_commentB

删除自己的评论。confirm=true 执行。

share_get_comment_report_reasonsA

获取评论举报原因 code 与文案。

share_report_commentA

举报评论;reason 使用举报原因接口返回的 code。confirm=true 执行。

share_list_my_termsA

列出已同步的学年 year 与学期 semester。

share_list_my_coursesB

按学年、学期列出我的课程、教学班和教师。semester 通常为 1/2/3,以我的学期接口为准。

share_list_my_uploadsB

分页列出我上传的资料。

share_list_my_purchasesB

分页列出我兑换的资料与兑换时间。

share_list_my_point_logsC

积分流水;支持 materials/redeem/bonus/transfer 类型过滤与 date/delta 排序。

share_get_points_overviewA

汇总传承积分余额、本月接收转账额度、三个合作站点的可兑换积分。

share_get_point_transfer_addressA

获取我的积分收款地址,可交给转账方。

share_get_point_transfer_quotaA

查看本月接收转账的已用、待处理、预留和剩余额度。

share_create_point_transferA

发起积分转账;internal 从金额内扣手续费,external 额外扣手续费。当前前端限制单笔 2–20。confirm=true 执行。

share_list_pending_point_transfersA

查看等待我接受的积分转账。

share_handle_point_transferB

接受或拒绝待处理转账;action=accept/reject。confirm=true 执行。

share_list_point_transfer_recordsA

分页读取转账记录;direction=sent/received,可按状态过滤。

share_get_redeem_quotaA

查看合作站点可兑换积分;shuiyuan=水源,sjtuplus=选课社区,sjtuwiki=交大 Wiki。

share_list_redeem_recordsC

列出来源站点的积分兑换记录。

share_redeem_pointsA

消耗合作站点积分换传承积分;amount 为来源积分数量,到账以平台为准。confirm=true 执行。

share_list_bannersB

读取平台公告标题、正文与状态。

share_close_bannerB

关闭/标记已读某条平台公告。

share_lesson_sync_login_urlB

获取课程同步专用 jAccount 授权 URL;与普通站点登录不同。完成后用回调 code 创建同步任务。

share_lesson_sync_startA

用课程同步授权码创建后台任务;随后调用 share_lesson_sync_status 查询。confirm=true 执行。

share_lesson_sync_statusB

查询课程同步任务的状态、同步数量和错误信息。

Prompts

Interactive templates invoked by user choice

NameDescription
share_find_materials在传承·交大检索和比较课程资料

Resources

Contextual data attached and managed by the client

NameDescription
传承使用指南

TDQS

B3.3/5.0

Scored across 51 tools

Disambiguation3/5

The tool set covers many distinct subdomains, but several material and points tools have overlapping boundaries. Examples include share_get_course_materials vs share_list_course_materials, share_get_download_url vs share_download_material vs share_purchase_material, and share_get_points_overview vs separate quota/redeem tools. Descriptions help, but an agent can still hesitate among similar-looking options.

Naming Consistency4/5

All tools use a consistent share_ snake_case prefix, and most follow a verb_noun pattern. Minor deviations include noun/status-style names such as share_auth_status and share_lesson_sync_status, but the overall convention is predictable.

Tool Count2/5

At 51 tools, the surface is very heavy and contains many granular operations across auth, courses, materials, comments, points, and profile. While the domain is broad, several tools could likely be consolidated or grouped, making the set harder to navigate than necessary.

Completeness5/5

Coverage is extensive: authentication, profile management, course discovery, material lifecycle, comments, ratings, reports, points transfer/redemption, banners, and lesson sync are all represented. The server appears to cover the platform's main CRUD and workflow operations with few obvious dead ends.

Maintenance

ActivityMaintained
ResponsivenessNo issues