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.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:v587d/capital-generation#path:/dsh-plugin
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time. Only install sources you trust, and pin a commit (github:owner/repo#sha).
README
This plugin publishes its README in Chinese only.
本目录把 capital-generation(Python 金融数据 MCP server)包装为符合
DeepSeek Harness 插件规范的 dsh.bundle 包, 供
dsh plugin add / dsh-market / awesome-dsh-plugin 生态使用。
安装
# 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 同款机制)。
Links
More in this category
superdesigndev/treg★ 460
Tool catalog for agents: search ~2,600 external endpoints (SEO and SERP, backlinks, social, people and company enrichment, ad libraries, scraping) by the task you want done, read each one's parameters and per-call price, then call it with the credential injected server-side. Ships the skill plus an MCP row that stays disabled until TREG_TOKEN is set.
zhaoolee/notes#dsh-plugin★ 147
Export DSH conversations as Smartisan Notes-style PNGs, or create and update Markdown notes in a configured account-scoped workspace.
taxueseek/argo#dsh-plugin★ 99
Search built for agents: multilingual coverage across web, academic, code, shopping, finance, news, and encyclopedias.
omdsh-dev/dsh-data-agent★ 52
Let the AI connect to databases and write SQL for you.
heartleo/hn-cli#hacker-news★ 50
Hacker News tools for feeds, discussion threads, search, and user profiles.
geml-spec/geml#integrations/dsh-plugin★ 24
Block-addressed document editing: an MCP server exposing geml_get / geml_set / geml_check and friends, so an agent reads or rewrites one addressed block of a Markdown or GEML document instead of the whole file. Ships the GEML authoring skill and a code-graph skill that builds and navigates a project call graph as GEML codemaps.