DSH Plugins Marketplace

DSH Plugins

Plugins

/

dsh-ima-copilot

o

dsh-ima-copilot

Manifest valid1

Tencent IMA is an excellent knowledge base application, but the skill version they provide only offers keyword-based retrieval based on file titles for public knowledge base queries, which left me speechless for a while. To make up for this knowledge base retrieval capability in harness, I iterated on the corresponding dsh version based on tencent-ima-copilot-mcp.

UI (client)hasBundlePatch

dsh-ima-copilot

腾讯 IMA Copilot 的 DeepSeek Harness 原生插件。它将知识库问答注册为 ima_ask 工具, 让 Agent 可以按问题语义检索 IMA 知识库、归纳答案并返回引用资料,无需额外运行 MCP、 Python 服务或常驻子进程。

IMA Copilot 插件设置预览

功能

  • 使用原生 ima_ask 工具查询一个或多个 IMA 知识库。
  • 返回回答正文以及资料 ID、标题和知识库名称等引用信息。
  • 通过 Web 设置页维护认证信息和知识库 ID,更新后无需重启 DSH。
  • 提供超时、并发限制、瞬时失败重试和请求取消处理。
  • 凭证仅通过 DSH Credentials API 读写,不在 Web 页面回显。

安装

运行环境:

  • Node.js ^22.19.0>=24.0.0
  • 兼容的 DSH 版本见版本兼容验证矩阵
  • Web 设置页需要 @deepseek-ai/dsh-client-ui-settings-plugins

从 npm 安装:

dsh plugin --profile web add dsh-ima-copilot
dsh web

也可以从 GitHub 安装:

dsh plugin --profile web add https://github.com/onclaw-dev/dsh-ima-copilot.git
dsh web

安装后重启 Web profile。以下命令的输出中应包含 ima-copilot

dsh --profile web --dump-config

配置

打开“设置 → 插件 → IMA Copilot”,填写:

字段DSH 凭证引用说明
X-Ima-CookieIMA_X_IMA_COOKIEIMA 请求的完整 Cookie
X-Ima-BknIMA_X_IMA_BKNIMA 请求头中的业务密钥
知识库 IDIMA_KNOWLEDGE_BASE_IDS每行一个 ID,也可使用逗号分隔

获取配置值:

  1. 登录 IMA Copilot
  2. 打开浏览器开发者工具的 Network 面板,在 IMA 中发送一条消息。
  3. 找到 /cgi-bin/assistant/qa 请求,从同一请求的原始请求头复制完整 x-ima-cookiex-ima-bkn。不要使用包含省略号的截断值。
  4. 在目标知识库页面找到 init_session 请求,从请求体读取 knowledge_base_id

保存知识库 ID 时需要提交完整列表,新列表会替换旧列表。设置页只显示凭证是否已配置, 不会读取或展示已保存的明文。

工具说明

ima_ask

参数必填说明
question要向 IMA 知识库提出的非空问题
knowledgeBaseId目标知识库 ID;配置多个知识库时必填

返回结果包含回答正文和引用资料:

{
  "answer": "回答正文",
  "references": [
    {
      "id": "资料 ID",
      "title": "资料标题",
      "knowledgeBase": "知识库名称"
    }
  ]
}

配置单个知识库时插件会自动选择;配置多个知识库时必须传入列表中的 knowledgeBaseId。配置缺失、列表为空或 ID 不在列表中时,请求会在访问 IMA 前失败并 返回配置提示。

每次调用都会读取最新凭证、创建一次性 IMA 会话并在结束后释放资源,因此不保留跨调用的 对话历史。默认请求超时为 300 秒,瞬时失败最多重试 3 次,并发上限为 1。

版本兼容验证矩阵

下表最后验证于 2026-09-09。“通过”表示同一个未改写插件包已在该 DSH Release 的精确依赖 环境中完成安装、Client 启动和 Host 工具契约测试;不等同于使用真实 IMA 凭证完成在线问答。

DeepSeek Harness Release适配接口结果说明
dsh-v0.1.0-rc.7Connection通过已完成同包验证
dsh-v0.1.0-rc.8Connection通过已完成同包验证
dsh-v0.1.1-rc.1Connection通过已完成同包验证
dsh-v0.1.1-rc.2Connection通过已完成同包验证
dsh-v0.1.2-alpha.1Gateway Remote不支持上游 Node 24 Client Loader 缺陷,仅完成源码审计
dsh-v0.1.2-alpha.2Gateway Remote通过已完成同包验证
dsh-v0.1.2-alpha.3Gateway Remote通过已完成同包验证
dsh-v0.1.2-alpha.4Gateway Remote通过已完成同包验证
dsh-v0.1.2-alpha.5Gateway Remote通过已完成同包验证
dsh-v0.1.2-rc.1Gateway Remote通过已完成同包验证
dsh-v0.1.3-alpha.1Gateway Remote不支持精确依赖未发布,不能声明 registry 安装支持
dsh-v0.1.3-alpha.2Gateway Remote通过已覆盖凭证服务延迟就绪场景
dsh-v0.1.5-alpha.1Gateway Remote通过已完成同包验证

真实凭证在线验证未执行。IMA Web API 并非公开稳定 API,上游字段、鉴权或响应格式变化时, 插件可能需要同步更新。

许可与说明

IMA 请求与响应解析逻辑源自 highkay/tencent-ima-copilot-mcp, 本项目将其适配为 DSH 原生插件,并采用 MIT License

DSH 是 DeepSeek Harness 的生态简称。本项目是社区插件,与腾讯 IMA 或 DeepSeek 官方均无 隶属或背书关系。使用者应自行确保账号、知识库内容和认证信息的使用符合相关服务条款。

Versions

Latest versionPublishedSize
0.1.0
0.1.2-alpha.2.ima.1
0.1.1-rc.2.ima.1
0.2.0
0.2.1
0.2.2
0.2.3

Comments

Loading…

From the same category

api-relay-audit

by toby-bridges

Local security audit for AI API relays and LLM proxies: detects prompt injection, model substitution, tool-call rewriting, SSE anomalies, error leakage, and Web3 wallet risks.

Security & AuditDevelopment & InfrastructureManifest valid

856

AGPL-3.0

Python

Sep 16, 2026

dsh plugin --profile web add dsh-api-relay-audit

by hashgraph-online

Open-source antivirus for AI agents: block risky tools, secret access, prompt injection, malicious packages, MCP servers, plugins, and skills at runtime.

Security & AuditTools & CapabilitiesManifest valid

663

Apache-2.0

Python

Sep 24, 2026

Index only — not installable

by sandbaseai

Local-first, self-hosted AI agent runtime and MCP bridge with sandboxed sessions, memory, credentials, audit/replay, and a local Console.

Security & AuditWorkflow & AutomationTerminal & ClientsManifest valid

660

5/wk

Apache-2.0

TypeScript

Sep 24, 2026

dsh plugin --profile terminal add managed-agents

by SeaOf0

基于dsh web实现的多种模式,目的是服务于redteam进行授权的安全研究,覆盖渗透测试、红队评估、代码审计等范围领域,请勿用于非法行为。(允许二开,赋予模块各位自己的业务逻辑,方法论只有自己熟练的才好用,好的方法论=好的生态)

Tools & CapabilitiesSecurity & AuditModels & ProvidersTerminal & ClientsManifest valid

595

MIT

Python

Sep 23, 2026

dsh plugin --profile web add @dsh-external/dsh-redteam-model

by howmp

面向 DeepSeek Harness(dsh)的渗透测试模式 @CloverSecLabs

Tools & CapabilitiesSecurity & AuditTerminal & ClientsManifest valid

542

NOASSERTION

JavaScript

Sep 22, 2026

dsh plugin --profile web add @howmp/dsh-pentest

by xiaods

k8e.sh - OpenSource Agentic AI Sandbox Matrix

Security & AuditTools & CapabilitiesWorkflow & AutomationManifest valid

497

13/wk

Apache-2.0

Go

Sep 24, 2026

dsh plugin --profile agent add @k8e-sandbox/dsh-k8e-sandbox-bundle