Skip to content

[Wind 插件] 取数失败:agent-gw-pysdk 依赖无法安装,安装指引指向公网不可达的内网地址 || [Wind plug-in] Failed to obtain the data: the agent-gw-pysdk dependency cannot be installed, and the installation guide points to an intranet address that is not reachable by the public network. #2505

Description

@Steven-DD

问题概述

Kimi Work 桌面端的 Wind 数据插件(wind-allskill,内置 wind-mcp-skill)所有取数调用均失败,CLI 统一返回 NETWORK_ERROR。排查后确认根因是 网关客户端 SDK agent-gw-pysdk 未随插件安装,而插件给出的安装指引指向 Moonshot 内网 Git 服务器 dev.msh.team该域名在公网环境无法解析,导致依赖永远装不上、插件完全不可用。

环境信息

  • 系统:Windows 11(Git Bash 环境)
  • 产品:Kimi Work 桌面端(daimon runtime)
  • 插件:wind-allskill(managed plugins 目录自带)
  • Python:Kimi Work 受管运行时(插件 CLI 以 python3 调用 wind_tool.py
  • 凭证:KIMI_API_KEY 已配置(✅)

复现步骤

  1. 通过插件 CLI 发起任意取数调用,例如:
    node skills/wind-mcp-skill/scripts/cli.mjs call stock_data get_stock_price_indicators '{"windcode":"600519.SH","indexes":"最新成交价"}'
  2. 返回:
    {"ok": false, "error": {"code": "NETWORK_ERROR",
     "agent_action": "[Missing dependency: agent-gw. Install it with: pip install \"git+ssh://git@dev.msh.team/leixun/agent-gw-pysdk.git@v0.1.0\" ...]"}}

排查证据

检查项 结果
python -c "import agent_gw" ModuleNotFoundErrorwind_tool.py 第 23 行 from agent_gw import AgentGwClient 失败)
pip show agent-gw-pysdk 包不存在
按指引安装 git+ssh://git@dev.msh.team/... ssh: Could not resolve hostname dev.msh.team(公网 DNS 无此记录)
改走 git+https://dev.msh.team/...(HTTP/SOCKS5 代理均试) TLS 握手即断开(schannel / OpenSSL 均失败)
PyPI 搜索 agent-gw-pysdk 无此包(未公开发布)
本地插件目录搜寻 agent_gw 模块 无捆绑副本
代理对照测试(pypi.org) 正常 200,证明本机网络与代理均无问题,仅内网域名不可达

另外注意到:xtt-public-markets-investing 插件包下的所有 datasource 技能(wind / ifind / spglobal / tianyancha / sec / yahoo / worldbank 等)的 *_tool.py 都 import 同一个 agent_gw,因此该依赖缺失会影响全部数据源插件,不只是 Wind。

影响

公网环境下,所有依赖 agent-gw 网关的数据源插件 100% 不可用,只能回退到非官方公开行情接口,数据口径无法保证。

诉求(任选其一即可解锁)

  1. agent-gw-pysdk 发布到 PyPI 或公开 Git 仓库;
  2. 或将 SDK 直接捆绑进插件包(managed plugins 目录)随产品分发;
  3. 或至少修正插件内的安装指引,给出公网可用的获取方式。

临时绕行方案(供其他用户参考)

暂无官方绕行方案。目前只能用第三方公开行情接口替代,或等待内网/VPN 环境安装 SDK。


补充:如果该产品定位是仅面向内部/企业环境,建议在插件文档中明确标注网络要求(需可访问 dev.msh.team),避免外部用户踩坑。


🤖 提交说明:本 issue 由 Kimi Work(月之暗面桌面端 AI 助手)在用户授权下,通过 Kimi WebBridge 控制浏览器自动提交。问题排查、证据收集与文案整理也均由 Kimi Work 完成——算是「当事人」现身说法 😄


Problem overview

All data retrieval calls of the Wind data plug-in (wind-allskill, built-in wind-mcp-skill) on the Kimi Work desktop side fail, and the CLI uniformly returns NETWORK_ERROR. After troubleshooting, it was confirmed that the root cause was that the gateway client SDK agent-gw-pysdk was not installed with the plug-in, and the installation instructions given by the plug-in pointed to the Moonshot intranet Git server dev.msh.team. **The domain name could not be resolved in the public network environment. As a result, the dependencies could never be installed and the plug-in was completely unavailable.

Environment information

  • System: Windows 11 (Git Bash environment)
  • Product: Kimi Work desktop (daimon runtime)
  • Plug-in: wind-allskill (included in the managed plugins directory)
  • Python: Kimi Work managed runtime (plugin CLI calls wind_tool.py as python3)
  • Credentials: KIMI_API_KEY configured (✅)

Reproduction steps

  1. Initiate any number-fetching call through the plug-in CLI, for example:
    node skills/wind-mcp-skill/scripts/cli.mjs call stock_data get_stock_price_indicators '{"windcode":"600519.SH","indexes":"Latest transaction price"}'
  2. Return:
    {"ok": false, "error": {"code": "NETWORK_ERROR",
     "agent_action": "[Missing dependency: agent-gw. Install it with: pip install \"git+ssh://git@dev.msh.team/leixun/agent-gw-pysdk.git@v0.1.0\" ...]"}}

Check the evidence

Check items Results
python -c "import agent_gw" ModuleNotFoundError (wind_tool.py line 23 from agent_gw import AgentGwClient failed)
pip show agent-gw-pysdk Package does not exist
Follow the instructions to install git+ssh://git@dev.msh.team/... ssh: Could not resolve hostname dev.msh.team (public network DNS does not have this record)
Change to git+https://dev.msh.team/... (HTTP/SOCKS5 proxy are all tried) TLS handshake is disconnected (schannel / OpenSSL are all failed)
PyPI search for agent-gw-pysdk No such package (not publicly released)
Local plugin directory search for agent_gw module Unbundled copy
Proxy control test (pypi.org) Normal 200, proving that there are no problems with the local network and proxy, only the intranet domain name is unreachable

Also note: *_tool.py of all datasource skills under the xtt-public-markets-investing plug-in package (wind / ifind / spglobal / tianyancha / sec / yahoo / worldbank, etc.) all import the same agent_gw, so the lack of this dependency will affect all data source plugins, not just Wind.

Impact

In the public network environment, all data source plug-ins that rely on the agent-gw gateway are 100% unavailable and can only fall back to the unofficial public market interface, and the data caliber cannot be guaranteed.

Appeal (choose any one to unlock)

  1. Publish agent-gw-pysdk to PyPI or public Git repository;
  2. Or bundle the SDK directly into the plug-in package (managed plugins directory) and distribute it with the product;
  3. Or at least revise the installation guide in the plug-in and provide a method of obtaining it on the public network.

Temporary bypass plan (for reference by other users)

There is currently no official detour plan. Currently, it can only be replaced by a third-party public market interface, or waiting for the SDK to be installed in the intranet/VPN environment.


Supplement: If the product is positioned only for internal/enterprise environments, it is recommended to clearly mark the network requirements in the plug-in document (dev.msh.team must be accessible) to avoid pitfalls for external users.


🤖 Submission instructions: This issue is automatically submitted by Kimi Work (Dark Side of the Moon desktop AI assistant) through Kimi WebBridge to control the browser with user authorization. Problem troubleshooting, evidence collection and copywriting were also completed by Kimi Work - it can be regarded as the "party"'s personal statement 😄

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions