dsh-mineru

by dsh-external

模型与账号接入github 检测到 manifest package.json#dsh收录于 08-17

MineRU 文档解析工具插件:把 MineRU 文档解析能力暴露给模型(bundle)

MineRU document-parsing tool plugin: exposes MineRU's document-parsing capabilities to the model (bundle).

安装

dsh plugin --profile web add github:dsh-external/dsh-mineru

GitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试

安装与环境配置指引、插件开发教程见 DSH 中文社区文档 ↗

安装即在你的机器上以你的权限运行第三方代码——它可读写文件、使用凭据、访问网络,DSH 的工具审批不会为插件代码加沙箱。「检测到 manifest」仅代表发现 dsh.bundle / dsh.plugin 清单,不构成兼容性或安全审查;安装前请审阅源码,不熟悉的插件先在不含密钥的环境试用。

README

目录

dshfind

📌 本插件已收录于 dshfind 插件超市,点击上方徽章直达主页。

dsh-mineru

npm version

DSH 插件:向模型暴露 MinerU 文档解析工具。MinerU 可将 PDF、图片、DOCX、PPTX、XLSX 等文件转换为结构化的 Markdown / JSON。

安装

# 从 npm 安装(推荐):
dsh plugin --profile web add @huanlin/dsh-plugin-mineru

# 从本地 checkout 开发安装:
dsh plugin --profile web add link:D:\Projects\deepseek-harness\dsh-mineru

若从 git 安装(pnpm ≥10),需在 profile 的 pnpm-workspace.yaml 中允许构建:

allowBuilds:
  '@huanlin/dsh-plugin-mineru': true

配置

在 DSH GUI 设置页或 cordis.patch.yml 中配置:

字段 类型 默认值 说明
baseURL string (必填) MinerU API 地址,如 http://your-mineru-host:18000
apiKeyEnv credential-ref MINERU_API_KEY API key 的环境变量名 / 凭据引用。测试实例无需鉴权。
defaultBackend enum pipeline pipeline / vlm-engine / hybrid-engine / vlm-http-client / hybrid-http-client
defaultParseMethod enum auto auto / txt / ocr
defaultLang string ch pipeline 后端的语言代码
pollIntervalMs number 2000 异步状态轮询间隔
pollTimeoutMs number 600000 mineru_parse_document 最大轮询时长(10 分钟)
requestTimeoutMs number 60000 单次 HTTP 请求超时
maxMdOutputChars number 200000 内联返回给模型的 markdown 字符上限;超出时完整内容存到临时文件

工具

mineru_parse_document(推荐)

解析本地文档并返回提取出的 markdown。内部自动完成:提交文件 → 轮询至完成 → 返回 markdown。大多数解析任务用这个即可。

mineru_submit_parse_job

异步提交解析任务,立即返回 task_id。适合大文档或并行批量提交。

mineru_get_parse_status

轮询异步任务状态,返回 pending / processing / completed / failed。

mineru_get_parse_result

获取已完成任务的结果。内联返回 markdown(过大则截断),并将完整结构化 JSON 存到 raw_result_path。

mineru_health

检查服务器健康状态、版本、队列深度与并发容量。

开发

pnpm install          # 安装开发依赖(schemastery、typescript、vitest)
pnpm run typecheck    # tsc --noEmit 类型检查
pnpm test             # vitest run 单元测试
pnpm run build        # tsdown 构建 → lib/

目录结构

dsh-mineru/
├── src/
│   ├── index.ts        # 入口:name、inject、Config(Schemastery)、apply
│   ├── client.ts       # MinerUClient(基于 fetch 的 HTTP 客户端 + 类型)
│   ├── tools.ts        # 5 个 defineTool 定义 + 辅助函数 + registerTools
│   └── types.d.ts      # @deepseek-ai/dsh-tools + cordis 的环境类型声明
├── tests/
│   └── tools.spec.ts   # 单元测试(mock fetch,无需真实服务器)
├── cordis.patch.yml    # bundle 层:插入 dsh-mineru 插件行
├── package.json        # dsh.bundle.patch 声明 + peerDeps
└── tsconfig.json       # NodeNext、ES2022、strict

测试 API

请自己部署 MinerU 实例。cordis.patch.yml 默认指向 http://localhost:18000,请在 DSH GUI 中覆盖 baseURL 改为你的 MinerU 服务器地址。

原始 README: https://github.com/HuanLinOTO/dsh-plugin-mineru/blob/master/README.md ↗

同类插件

查看全部 →
模型与账号接入Anionex

agent-vision-toolkit

为纯文本模型"看图“设计更好的视觉工具箱和技能,支持多图理解,图片问答,前端UI还原、GUI 自动化等,并可选无缝接入多个主流agent,直接识别粘贴图片| A vision toolkit and skill designed for text-only llms — image Q&A, long-screenshot OCR, frontend UI restoration, and GUI automation, with optional seamless integration for Codex, Claude Code, Pi, Oh My Pi, and OpenCode

查看详情
928github+08-16
模型与账号接入toby-bridges

api-relay-audit

从 DeepSeek Harness 对 AI API 中转站和 LLM 代理运行本地安全审计,生成 Markdown 报告,覆盖提示词注入、模型替换信号、工具调用改写、错误泄漏、流完整性和按 profile 启用的 Web3 风险。

查看详情
791github+08-21
模型与账号接入ZJU-LLMs

OpenStory

✨ OpenStory 现已支持 DeepSeek Harness 插件! 现在可以通过 dsh-openstory 将 OpenStory 多智能体推演接入 DeepSeek Harness,让 agent 直接启动模拟、查看角色、下达指令并逐回合推进故事。查看 DSH 插件配置与使用指南。

查看详情
377github+08-17
模型与账号接入pulseaiclub

phi

pi的编码代理 ∞ 提供者、子代理、hashline编辑和权限门

查看详情
89github+08-16
模型与账号接入anysearch-team

anysearch-dsh

DeepSeek Harness(DSH)的 AnySearch 网络搜索提供方与高级搜索工具。

查看详情
79github+08-17
模型与账号接入kuangre123

codex-switch

Codex Switch 是一个 macOS 工具,一键配置 Codex 的自定义 API,同时保留官方 OpenAI 登录。保存后 Codex 的模型选择器里只会出现你选的那个 provider 的模型。也支持 Claude Code 的官方 / 自定义 API 切换。Codex Switch is a lightweight helper for configuring multiple coding-agent API routes. For Codex, it keeps Official OpenAI and a custom API provider configured in parallel, registers the custom model in Codex's mod

查看详情
67github+08-16