Sichuan University campus services for DeepSeek Harness, with account sign-in and read-only grades, timetables, and bound-room electricity queries.
Install
# from a prebuilt release tarball
dsh plugin --profile web add "https://github.com/AzureKyrielight/dsh-mingyuanhu/releases/download/v0.1.0/dsh-mingyuanhu.tgz"
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:AzureKyrielight/dsh-mingyuanhu
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
This plugin publishes its README in Chinese only.
面向四川大学的 DeepSeek Harness 插件。校园协议源自 明远湖光,不启动第二套 Electron 应用或 Agent 内核。
范围
- 在 DSH 设置中的校园账号面板登录统一身份认证;支持本地验证码识别与手动输入。
- 向 Agent 提供登录状态、学期、成绩、课表和电费查询工具。
- 提供
scu_query:考表、空闲教室、培养方案、班级/课程课表、校园卡、体测、办事申请、第二课堂记录、本人报修、教务通知和校历等只读查询。 - 提供
scu_search与scu_read_webpage:针对企业招聘、企业技术交流、保研细则和大创规则做多路公开检索、去重、来源分类、正文续读和附件发现。 - 提供
scu_action_prepare:创建二课报名/取消/订阅和报修撤回的冻结草稿;必须由账号所有者在设置面板检查并二次确认后提交。 - 电费只读查询本人已有房间绑定,不自动绑定房间,不缴费。
- 报修发布、办事大厅提交、文件上传、云打印上传、浏览器无感认证暂不支持;未知提交结果不会自动重试。
- 复用 DSH 的
web_search、web_fetch与会话能力,不替换宿主工具。
安装
需要 DeepSeek Harness 0.2.2-rc.2。首次版本只针对该版本验证,不承诺兼容后续运行时。
在 DSH 的 插件 → 添加插件 中选择本仓库目录,或选择已发布的 npm 包名 dsh-mingyuanhu。本地目录安装前需要先构建。是否需要重启,以 DSH 安装结果为准。
npm ci --ignore-scripts --legacy-peer-deps
npm run check
npm pack
使用
- 在 DSH 设置中打开校园账号面板。
- 输入学号与统一认证密码。验证码自动识别失败时,切换手动输入。
- 登录后向 Agent 请求查询成绩,或先列出学期,再查询指定学期课表。
- 电费查询使用现有本人房间绑定。未绑定时请在学校官方服务中完成绑定。
- 不再使用时退出校园账号,清除插件保存的本地会话。
工具使用
- 个人校园数据:先用
scu_status,再使用scu_semesters、scu_grades、scu_schedule、scu_balance或scu_query。 - 公开信息:使用
scu_search;招聘与活动类默认附带搜狗微信搜索的公众号标题与摘要(wechat-search,仅搜索摘要、不等同已读正文),需要原文时使用scu_read_webpage。公开抓取不携带校园 cookie、token 或账号凭据。搜索结果中的发布日期可能未知;宿主的 provider 时间只标为抓取/提供时间。 - 操作提交:先调用
scu_action_prepare,只得到草稿 ID;必须在设置面板检查冻结字段并明确确认。Agent 没有提交工具。
隐私与限制
密码不注册为模型工具参数,不写入聊天记录,不持久化。选择记住登录状态时,token 与 cookie 通过 DSH 的 credentials 记录保存,不写入工作区。credentials 后端决定实际存储保护方式;它不构成对同 OS 用户工具或其他宿主插件的秘密隔离。不要在不信任的 DSH 配置中登录。
查询结果会进入 Agent 会话,并可能发送给所选模型服务。成绩、课表、住宿信息属于个人数据;请先了解模型服务和 DSH 的会话日志策略。退出只清除校园认证状态,不删除历史聊天结果。
校园请求仅访问 scu.edu.cn 及其子域。学校教务系统使用 HTTP,无法由插件提供端到端 TLS 保护。部分服务需要校园网或 VPN;学校接口、验证码与登录策略可能变更。插件不承诺自动续期,不保存密码。
搜狗微信搜索可能返回验证码页或限制页;命中时该路标为 blocked 并保留其他来源,插件不尝试绕过验证码。公众号正文页同样可能被微信拦截,只能用搜索摘要说明线索。
此插件不是学校或 DeepSeek 的官方产品。
架构
src/core:不依赖 DSH、Pi 或 Electron 的校园认证、cookie 与业务协议。- Host 适配:只读模型工具、用户专用认证入口、DSH credentials。
- Client 适配:复用宿主 React 与主题,密码不进入模型调用链。
登录、退出和查询复用同一业务实例。校园认证传输与公开网页抓取严格分离。
开发与验证
npm run typecheck
npm test
npm run build
自动化测试使用本地响应,不登录真实账号,不进行校园写操作。真实账号、网络可达性与界面视觉验证须在使用者本机进行。测试通过不等于学校服务当前可用。
许可
Links
More in this category
Tencent/WeKnora#dsh-weknora★ 37546
Four read-only tools over a WeKnora knowledge base: list knowledge bases, hybrid passage search, reassemble one document's chunks in order, and WeKnora's own cited RAG or ReAct-agent answer with a resumable session id.
DayuanJiang/next-ai-draw-io#dsh-plugin★ 36997
Draws draw.io diagrams in DeepSeek Harness through the next-ai-drawio MCP server: the link in the reply opens a live preview in the right sidebar, you can edit the diagram by hand, and each AI change is a version you can restore. Node.js 18+; npx downloads the MCP server on first use.
superdesigndev/treg★ 8164
Tool catalog for agents: search ~2,600 external endpoints (SEO and SERP, backlinks, social, people and company enrichment, ad libraries, scraping) by the task you want done, read each one's parameters and per-call price, then call it with the credential injected server-side. Ships the skill plus an MCP row that stays disabled until TREG_TOKEN is set.
T-Auto/dsh-ops★ 5864
Provides bash, PowerShell 7, and high-performance Rust tools for DSH on Windows to reduce token usage.
sixtysevenlf/dsh-blender-plugin★ 2147
Lets a DSH agent drive a local Blender over a direct TCP channel with 15 tools: viewport frames, custom-angle renders, Python execution, headless and job offload, transaction rollback, and a planning layer of 228 ops across 34 families.
helloHub1212/dsh-windows-mcp★ 1456
Bridges the CursorTouch/Windows-MCP desktop automation server into DSH through the official MCP client bridge, registering its screenshot, UI tree snapshot, mouse and keyboard input, clipboard, process and registry tools as mcp__windows__* tools for the model, and adds a windows_mcp_doctor diagnostic tool. Computer Use is off by default and is switched on from the plugin panel.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.