reactive-resume
reactive-resume
A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:duhu2000/qcc-mcp-oauth
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
One-click OAuth connect to 企查查 (Qichacha) MCP services inside DeepSeek Harness. 在 DeepSeek Harness 中一键 OAuth 授权接入企查查 MCP 数据(工商 / 风险 / 知产 / 经营 / 董监高)。
Authorization Code + PKCE(S256),动态注册客户端(无 client_secret),自动打开浏览器跳转企查查授权页,loopback 回调自动完成access_token / refresh_token 覆盖企查查 MCP 企业数据 SERVER(company / risk / ipr / operation / history / executive,共 6 个);history(历史信息)需企业认证,插件按 token 实际授权范围动态挂载——企业认证账号 6 个、个人账号 5 个~/.dsh/storages,目录 0700),重启 Host 自动恢复连接qcc_oauth_connect / qcc_oauth_status / qcc_oauth_disconnect 三个工具前置:DeepSeek Harness(dsh CLI,web profile),Node ≥ 20。
把下面的链接直接发给你的 DeepSeek Harness 对话(推荐先在 dshmarket 插件市场搜索「企查查」一键安装;市场直装失败时,同样把链接发给 Agent 即可代为安装):
帮我安装这个插件 https://github.com/duhu2000/qcc-mcp-oauth
Agent 会按本 README 执行以下命令(你也可以自己跑):
# 方式一:一键脚本(自动安装 + 注册 bundle + 提示重启)
bash <(curl -fsSL https://raw.githubusercontent.com/duhu2000/qcc-mcp-oauth/main/install.sh)
# 方式二:手动两步
dsh plugin --profile web add qcc-dsh-mcp-oauth # 安装依赖并自动注册 bundle
# 重启 dsh web
说明:安装时的
peer dependencies警告可忽略——@deepseek-ai/*等对等依赖由 DSH web profile 自带(host 依赖),无需另行安装;安装完成后必须重启 dsh web 才能生效。
# 1. 安装插件到 profile(声明了 dsh.bundle 的包会被 dsh plugin add 自动注册到 bundles)
dsh plugin --profile web add qcc-dsh-mcp-oauth
# 2. 重启 dsh web
若未自动注册:手动在 ~/.dsh/profiles/web/package.json 的
dsh.profile.bundles追加"qcc-dsh-mcp-oauth"(与@deepseek-ai/dsh-base、@deepseek-ai/dsh-web-app并列),再重启。
dsh plugin --profile web add github:duhu2000/qcc-mcp-oauth
# 再重启 dsh web
git clone https://github.com/duhu2000/qcc-mcp-oauth.git
cd qcc-mcp-oauth
dsh plugin --profile web add "link:$(pwd)" # 或 pnpm add "file:$(pwd)"
# 再重启 dsh web
插件包内自带
cordis.patch.yml(bundle patch);dsh plugin add自动完成依赖安装与 bundles 注册,插件行自动合入,无需手改任何文件。
重启后,插件会自动发起 OAuth 授权(默认开启,激活且无有效授权时自动打开企查查授权页);如未自动触发,在对话中输入:
| 你说 | 效果 |
|---|---|
| "连接企查查" | 触发 qcc_oauth_connect:自动打开浏览器跳转企查查授权页,登录授权后自动完成连接 |
| "查一下企查查连接状态" | 触发 qcc_oauth_status:显示授权状态、token 过期时间、覆盖的 MCP Server |
| "断开企查查" | 触发 qcc_oauth_disconnect:撤销 refresh_token、清除本地授权、停用工具 |
连接成功后,以下工具直接可用(示例):
mcp__qcc-company__get_company_registration_info / get_actual_controller / ...mcp__qcc-risk__get_company_risk_scan / get_dishonest_info / ...mcp__qcc-ipr__*、mcp__qcc-operation__*、mcp__qcc-executive__*严格遵循《企查查MCP OAuth 接入文档》(Authorization Code + PKCE,公开接口版):
client_id,90 天自动续期)→ 4. 打开授权页(scope=mcp:tools)state → 6. 授权码 + code_verifier 换 tokenctx.loader 为授权的 @deepseek-ai/dsh-mcp-client 条目注入 Bearer header(企业认证 6 个 / 个人 5 个)→ 8. 过期前自动刷新(轮换)详见 docs/OAUTH-IMPLEMENTATION.md。
插件行位于 ~/.dsh/profiles/web/cordis.patch.yml(bundle 合入后可见):
- id: qcc-mcp-oauth
name: 'qcc-dsh-mcp-oauth'
config:
issuer: 'https://agent.qcc.com' # OAuth 授权服务器
clientName: 'DeepSeek Harness - QCC MCP' # OAuth 客户端名(授权页展示 + 后台品牌识别依据)
refreshSkewMs: 300000 # 过期前提前刷新(ms)
openBrowser: true # 自动打开浏览器(false = 仅打印授权 URL)
autoConnectOnActivate: true # 激活且无授权时自动打开授权页(false = 手动触发)
persistTokens: true # 持久化 token(false = 仅内存)
mcpEntryPrefix: 'mcp-qcc' # 受管 mcp-client 条目 id 前缀
关于
clientName:它是 OAuth 协议的client_name,会被企查查写入 access_token 的client_nameclaim,用于后台看板品牌识别(企查查侧将名称去除空格/连字符/下划线并转小写后,按deepseekharness*前缀归一为激活来源deepseekharness)。默认值DeepSeek Harness - QCC MCP已命中该前缀。如需自定义,请保持DeepSeek Harness前缀,否则后台会归入「其他(未注册)」、无法正确统计品牌激活。
~/.dsh/storages(0700),不进入 git、不进入对话历史loader 会把条目配置写回 profile 配置文件(含 token),建议:chmod 600 ~/.dsh/profiles/web/cordis.yml;不要把 ~/.dsh 加入任何仓库qcc_oauth_disconnect 后从 bundles 移除包名并 dsh plugin --profile web remove qcc-dsh-mcp-oauthhistory(历史信息)需企业认证后 token 才授权,插件按 token 实际授权范围动态挂载(企业认证 6 个 / 个人 5 个)resources 配置npm install # 需要 host 依赖时(见 docs/INSTALL.md)
npm run lint # 语法检查
npm test # 单元 + 集成测试(含 mock OAuth 服务器全流程)
测试覆盖:PKCE、元数据发现、动态注册、完整授权码流程(loopback)、refresh 轮换、revoke、 插件级集成(连接/幂等/自动刷新/断开/重启恢复)。
MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: mcp、mcp-client、oauth。