fundapi-dsh-plugin:基金数据 API 官方 DeepSeek Harness 插件

前言

DeepSeek Harness(DSH)采用「一切皆插件」的理念,让开发者通过插件扩展能力。在金融数据场景中,智能体需要调用外部 API 获取真实数据。fundapi-cn/fundapi-dsh-plugin 是基金数据 API 的官方插件,为 DSH 提供 19 个基金工具,解决智能体需要手动拼接 API 请求、处理鉴权与重连等重复工作的问题。

这是什么

这是一个基金数据 DeepSeek Harness 插件,维护者为 fundapi-cn。它把 fundapi.cn 的 MCP 服务挂进 DSH,让 DSH 直接调用基金数据。插件本身只负责工具注册与配置透传,底层传输、断线重连由 DSH 自带的 MCP 客户端处理,插件与 DSH 升级解耦。

插件支持 DeepSeek Harness 桌面端与 Web UI,命令行安装也可用。

核心功能

插件提供 19 个基金工具,按免费 / 体验版 / 专业版 / 机构版分级:

  • 免费工具(无需 Key):fund_search、fund_profile、fund_screener_options
  • 体验版及以上:fund_nav(历史净值)、fund_rank(全市场排行)、fund_notices(公告)
  • 专业版及以上:fund_holdings(季报持仓)、fund_managers(现任经理)、fund_estimate(当日估算)、fund_dividends(分红与折算)、fund_trade_rule(交易规则与费率)、fund_rating(多家机构评级)
  • 机构版:fund_overlap(持仓重叠)、fund_portfolio_xray(组合穿透)、fund_holding_changes(调仓变化)、fund_manager_history(经理历任)、fund_portfolio_diagnose(组合诊断)、fund_screener(多条件选基)、fund_compare(基金对比)

工具命名格式为 mcp__fundapi__*,例如 mcp__fundapi__fund_nav。

插件配置项包括:

  • apiKey:默认读环境变量 FUND_KEY,不填则走匿名,只有 3 个免费工具可用
  • url:默认 https://api.fundapi.cn/mcp
  • serverName:默认 fundapi,工具名前缀
  • headers:额外请求头,与 Key 合并

安装与启用

桌面端 / Web UI

下载 DeepSeek Harness 桌面端后,在「插件」页面输入包名:

fundapi-dsh-plugin

Web UI 的 dsh web 同样使用「插件」页面,装完重启即可在对话中使用。

命令行

npx @deepseek-ai/dsh web
npx @deepseek-ai/dsh plugin --profile web add fundapi-dsh-plugin

如已全局装过 dsh,可将 npx @deepseek-ai/dsh 替换为 dsh。

安装前需确保已安装 pnpm(DSH 不自带,桌面端自带一份)。

确认安装成功:

npx @deepseek-ai/dsh --profile web --dump-config

输出中应出现 # == fundapi-dsh-plugin。

其他安装方式:

npx @deepseek-ai/dsh plugin --profile web add github:fundapi-cn/fundapi-dsh-plugin
npx @deepseek-ai/dsh plugin --profile web add file:/绝对路径/fundapi-dsh-plugin

卸载:

npx @deepseek-ai/dsh plugin --profile web remove fundapi-dsh-plugin

典型用法

装好后,在对话中直接提问:

  • 「易方达消费行业是哪个代码?」:使用 fund_search
  • 「110022 费率多少、规模多大、谁在管?」:使用 fund_profile
  • 「110022 最近一年涨了多少?」:使用 fund_nav
  • 「110022 重仓了哪些股票?」:使用 fund_holdings
  • 「这季新进了什么、减了什么?」:使用 fund_holding_changes
  • 「这几只基金是不是买了一样的股票?」:使用 fund_overlap
  • 「这三只基金合起来实际押在哪些股票上?」:使用 fund_portfolio_xray
  • 「帮我按近三年收益 + 晨星五星筛一下股票型」:使用 fund_screener
  • 「110022 今天大概涨跌多少?」:使用 fund_estimate
  • 「这几只基金到底差在哪?」:使用 fund_compare

适用场景与注意

适合需要获取基金净值、持仓、经理、评级、排行、选基、组合分析等能力的 DSH 用户,特别是金融数据场景的智能体开发。

注意:插件以当前 DSH 进程权限运行,安装前应检查源码与许可证(MIT)。

结尾

插件通过 19 个工具将基金数据 API 集成到 DSH,3 个免费工具无需配置即可使用,其余工具通过 API Key 访问。它把工具定义、鉴权与重连逻辑交给 DSH 与服务端,开发者只需关注业务提问。

目录页 · GitHub · 文档 · 官网

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

小夜