capital-generation
by v587d
[!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-pluginGitHub 源码安装:首次需按提示配置 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 ↗
同类插件
查看全部 →
dsh-anchored-standard
两阶段 DeepSeek Harness 预设:先 Minimal 对齐的 bootstrap,再切完整 Standard 工具(Project2 98/99)

PicGo-Core
极致的图片上传引擎,CLI 与 API 双支持

awesome-deepseek-harness
DeepSeek Harness(DSH)及其优秀社区插件的精选指南。

awesome-deepseek-harness
DeepSeek Harness (DSH)生态系统:来自dsh-external/hub和公共dsh-plugin主题的精选插件、工具和基础设施。

AI-Novel-Writer
本地优先 AI 小说创作工作台,提供 Windows/macOS 桌面版与 DeepSeek Harness 插件开发预览,支持角色、大纲、章节蓝图、审稿修稿和本地模型。

mcp-for-stata
MCP-for-Stata:把 Stata 集成进你的 agent