
pan-nie/tsinghuamcp
Developer toolsThis page was translated automatically. Technical details may differ from the original. View the original
长程执行的清华事务个人 AI Agent。方案见 PLAN.md,(接入各客户端、权限模式、工具目录、排障)。
Overview
长程执行的清华事务个人 AI Agent。方案见 PLAN.md,(接入各客户端、权限模式、工具目录、排障)。 依赖 vendored 的 @thu-info/lib(来自 thu-info-community/thu-info-app,BSL 1.1 许可证)。 配置凭据:cp .env.example .env,填 THU_USER_ID / THU_PASSWORD, 建议配 THU_TOTP_SECRET(二次认证全自动,获取方法见文件内注释)。 面向**(stdio 传输):Claude Code、Claude Desktop、Cursor、Codex CLI 等。 命令均为(把路径换成你的仓库位置): - :仓库根已带 .mcp.json,打开本项目启用 thu-agent 即可; 其他项目可用 claude mcp add thu-agent -- pnpm --dir /path/to/Tsinghua-agent --filter @thu-agent/mcp-server start - :在 MCP 配置里加 - :codex mcp add thu-agent -- pnpm --dir /path/to/Tsinghua-agent --filter @thu-agent/mcp-server start - :先 pnpm httpd start 启动本机 HTTP 入口,连接器填 http://127.0.0.1:9876/mcp(开关/自启见 USAGE §2) 约 64 个工具,系统提示已内置两段式确认协议与验证码协同流程。 验证码工具返回内嵌图片内容 + 本地 PNG 路径,本机 agent 可直接看图转述给用户。 云端-only 客户端(手机豆包 App、ChatGPT 网页自定义 connector)需要远程 HTTP 传输,暂不支持;工具层与传输层解耦,以后需要时再加 transport 入口即可。 - (登记在 risk.ts,fail-safe: 新工具不登记直接拒绝启动):read(只读)/ write(改状态:选课、订座、发信)/ write+pay(资金与卡状态:充值、缴费、挂失)。
Install
This server does not publish a one-line install command.
Open the repository installation guide New to MCP? Start with the mcpskill.org guide →Configuration
{ "mcpServers": { "thu-agent": {
"command": "pnpm",
"args": ["--dir", "/path/to/Tsinghua-agent", "--filter", "@thu-agent/mcp-server", "start"]
} } }