capital-generation

by v587d

0 工具与能力github 检测到 manifest package.json#dsh收录于 08-16

[!IMPORTANT] 愿大家的财富数字就像“text generation”一样,不断增长,永不停止。

China A-share financial data MCP server for the harness: 11 fin_data__* tools (quotes/K-lines/financials/calendar/special-data/announcements/EDB/reconcile/funds/indices) over THS free official REST (primary) + AKShare (fallback) + Wind (exclusive domains), with observable degradation, context-budget compression (result-side -72.2% measured), and an offline 10-year market-data lake; BYOK.

安装

dsh plugin --profile web add github:v587d/capital-generation#path:/dsh-plugin

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

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

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

README

本目录把 capital-generation(Python 金融数据 MCP server)包装为符合 DeepSeek Harness 插件规范的 dsh.bundle 包, 供 dsh plugin add / dsh-market / 社区精选目录 生态使用。

安装

# 0. 前置: uv + Python 3.12+, 已 clone 本仓库
git clone https://github.com/v587d/capital-generation.git
export CAPITAL_GENERATION_DIR=$PWD/capital-generation

# 1. Key (BYOK): THS_API_KEY / WIND_API_KEY → ~/.dsh/.credentials.yaml (0600)

# 2. 安装插件 (本目录发布到 npm 后):
dsh plugin --profile web add capital-generation

#    或未发布时手动接入: 把 cordis.patch.yml 的内容并入 profile patch
#    (参考 servers/cordis.patch.finance.example.yml), 重启 dsh web

安装后工具以 mcp__fin__fin_data__* 暴露(11 个), 即用。

说明

  • cwd 路径: cordis.patch.yml 的 cwd 取 $CAPITAL_GENERATION_DIR, 未设置时回退到仓库默认路径(按本机修改)。
  • BYOK: 同花顺/万得 Key 由使用者自备, 仓库零密钥; 缺失源自动跳过并 warnings 明示(降级可观测)。
  • 体积与上下文: v0.3.1 起结果侧压缩 -72.2% (真实 KEY 实测), 公告全文截断
    • url 兜底, 详见 docs/CONTEXT_BUDGET_RESULTS.md。
  • 发布: 本目录作为 npm 包发布时, package.json 的 dsh.bundle.patch 即 插件清单 (与 dsh-bridge-browser / dsh-mcp-bridge 同款机制)。

原始 README: https://github.com/v587d/capital-generation/blob/master/dsh-plugin/README.md ↗