[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77XKKCE47GNMHW6JWGSYAX8":3,"skill-same:01M77XKKCE47GNMHW6JWGSYAX8":65},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":42,"commitSha":43,"skillDirectory":44,"forksCount":45,"repositoryHtmlUrl":46,"repositoryHomepageUrl":47,"ownerHtmlUrl":48,"ownerBlogUrl":6,"ownerDescription":49,"updatedAt":50,"install":51,"resources":64},"01M77XKKCE47GNMHW6JWGSYAX8","vibe-trading",null,"Professional finance research toolkit — backtesting (7 engines + benchmark comparison panel), factor analysis, Alpha Zoo (452 pre-built alphas across qlib158\u002Falpha101\u002Fgtja191\u002Facademic), options pricing, 77 finance skills, 29 multi-agent swarm teams, Trade Journal analyzer, and Shadow Account (extract → backtest → render) across 7 data sources (tushare, yfinance, okx, akshare, mootdx, ccxt, futu).","Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fv\u002Fvibe-trading\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: vibe-trading\nversion: 0.1.9\ndescription: Professional finance research toolkit — backtesting (7 engines + benchmark comparison panel), factor analysis, Alpha Zoo (452 pre-built alphas across qlib158\u002Falpha101\u002Fgtja191\u002Facademic), options pricing, 77 finance skills, 29 multi-agent swarm teams, Trade Journal analyzer, and Shadow Account (extract → backtest → render) across 7 data sources (tushare, yfinance, okx, akshare, mootdx, ccxt, futu).\ndependencies:\n  python: \">=3.11\"\n  pip:\n    - vibe-trading-ai\nenv:\n  - name: TUSHARE_TOKEN\n    description: \"Tushare API token for China A-share data (optional — HK\u002FUS\u002Fcrypto work without any key)\"\n    required: false\n  - name: OPENAI_API_KEY\n    description: \"OpenAI-compatible API key — only needed for run_swarm (multi-agent teams). All other tools work without it.\"\n    required: false\n  - name: LANGCHAIN_MODEL_NAME\n    description: \"LLM model name for run_swarm (e.g. deepseek\u002Fdeepseek-v4-pro). Only needed if using run_swarm.\"\n    required: false\nmcp:\n  command: vibe-trading-mcp\n  args: []\n---\n\n# Vibe-Trading\n\nProfessional finance research toolkit with AI-powered backtesting (7 engines), multi-agent teams, 77 specialized skills, the **Alpha Zoo** (452 pre-built quantitative alphas across qlib158 \u002F alpha101 \u002F gtja191 \u002F academic with one-line CLI benchmarking), and the Shadow Account loop — extract your implicit trading rules from a journal, backtest them across A股\u002F港股\u002F美股\u002Fcrypto, then see where they would have served you better.\n\n## Setup\n\n```bash\npip install vibe-trading-ai\n```\n\n> **Package name vs commands:** The PyPI package is `vibe-trading-ai`. Once installed, you get:\n>\n> | Command | Purpose |\n> |---------|---------|\n> | `vibe-trading` | Interactive CLI \u002F TUI |\n> | `vibe-trading serve` | Launch FastAPI web server |\n> | `vibe-trading-mcp` | Start MCP server (for Claude Desktop, OpenClaw, Cursor, etc.) |\n\nAdd to your agent's MCP config:\n\n```json\n{\n  \"mcpServers\": {\n    \"vibe-trading\": {\n      \"command\": \"vibe-trading-mcp\"\n    }\n  }\n}\n```\n\n### API Key Requirements\n\nCore research MCP tools work with zero API keys for HK\u002FUS\u002Fcrypto. After `pip install`, backtesting, market data, factor analysis, options pricing, chart patterns, web search, document reading, trade journal analysis, shadow-account extraction\u002Fbacktest\u002Freport, the Alpha Zoo (452 pre-built alphas), and all 77 skills are ready to use. IBKR tools require a local TWS \u002F IB Gateway session; `run_swarm` requires an LLM key.\n\n| Feature | Key needed | When |\n|---------|-----------|------|\n| HK\u002FUS equities & crypto | None | Always free (yfinance + OKX) |\n| China A-share data | `TUSHARE_TOKEN` | Only if you query A-share symbols |\n| Multi-agent swarm (`run_swarm`) | `OPENAI_API_KEY` + `LANGCHAIN_MODEL_NAME` | Swarm spawns internal LLM workers |\n\n## What You Can Do\n\n### Shadow Account — flagship loop\n\nFeed a CSV broker export (同花顺 \u002F 东财 \u002F 富途 \u002F generic), and the agent will:\n1. `analyze_trade_journal` — profile your behavior (holding period, win rate, disposition effect, chasing, overtrading, anchoring).\n2. `extract_shadow_strategy` — distill 3-5 if-then rules that describe your profitable roundtrips.\n3. `run_shadow_backtest` — backtest those rules across A\u002FHK\u002FUS\u002Fcrypto and compute delta-PnL vs your realized trades.\n4. `render_shadow_report` — produce an HTML\u002FPDF report (8 sections + charts) with today's matching signals.\n5. `scan_shadow_signals` — list today's symbols that match your shadow's entry cadence (research only).\n\n### Backtesting\nCreate and run quantitative strategies across 7 engines (ChinaA, GlobalEquity, Crypto, ChinaFutures, GlobalFutures, Forex + options) with 7 data sources:\n- **HK\u002FUS equities** via yfinance (free, no API key)\n- **Cryptocurrency** via OKX or CCXT\u002F100+ exchanges (free, no API key)\n- **China A-shares** via Tushare (token) or AKShare (free fallback)\n- **Futures, forex, macro** via AKShare (free, no API key)\n- **HK & A-share equities** via Futu (broker login required, optional)\n\nExample workflow:\n1. Use `list_skills()` to discover strategy patterns\n2. Use `load_skill(\"strategy-generate\")` for the strategy creation guide\n3. Use `write_file()` to create `config.json` and `code\u002Fsignal_engine.py`\n4. Use `backtest()` to run and get metrics (Sharpe, return, drawdown, etc.)\n\n### Multi-Agent Swarm Teams\n29 pre-built agent teams for complex research:\n- **Investment Committee**: bull\u002Fbear debate → risk review → PM decision\n- **Global Equities Desk**: A-share + HK\u002FUS + crypto → global strategist\n- **Crypto Trading Desk**: funding\u002Fbasis + liquidation + flow → risk manager\n- **Earnings Research Desk**: fundamentals + revisions + options → earnings strategist\n- **Macro\u002FRates\u002FFX Desk**: rates + FX + commodities → macro PM\n- **Quant Strategy Desk**: screening → factor research → backtest → risk audit\n- **Risk Committee**: drawdown, tail risk, regime analysis\n- And 22 more specialized teams\n\nUse `list_swarm_presets()` to see all teams, then `run_swarm()` to execute.\n\n### Alpha Zoo (452 pre-built alphas)\nOne-line cross-sectional IC \u002F IR \u002F alive-reversed-dead categorisation across four bundled zoos:\n- **qlib158** (154 alphas) — Microsoft Qlib's `Alpha158` feature handler, Apache-2.0 with pinned commit SHA.\n- **alpha101** (101 alphas) — Kakushadze (2015) \"101 Formulaic Alphas\" (arXiv:1601.00991), written from the paper appendix.\n- **gtja191** (191 alphas) — Guotai Junan 2014 \"191 Short-period Trading Alpha Factors\" research report.\n- **academic** (6 factors) — Fama-French 5 + Carhart momentum (honest price-based proxies).\n\nEach alpha ships with `__alpha_meta__` (formula LaTeX + theme + universe + warmup + columns required), guarded by an AST purity gate + 300-row lookahead sentinel test. Use the `vibe-trading alpha {list,show,bench,compare,export-manifest}` CLI, the `\u002Falpha\u002F*` REST routes (browser at `\u002Falpha-zoo`), or compose multi-factor signals via `ZooSignalEngine.from_zoo(...)`.\n\n### Finance Skills (77)\nComprehensive knowledge base covering:\n- Technical analysis (candlestick, Elliott wave, Ichimoku, SMC, harmonic, chanlun)\n- Quantitative methods (factor research, ML strategy, pair trading, multi-factor)\n- Risk management (VaR\u002FCVaR, stress testing, hedging)\n- Options (Black-Scholes, Greeks, multi-leg strategies, payoff diagrams)\n- HK\u002FUS equities (SEC filings, earnings revisions, ETF flows, ADR\u002FH-share arbitrage)\n- Crypto trading desk (funding rates, liquidation heatmaps, stablecoin flows, token unlocks, DeFi yields)\n- Behavioral finance, trade journal diagnostics, shadow account\n- Macro analysis, credit research, sector rotation, and more\n\nUse `load_skill(name)` to access full methodology docs with code templates.\n\n## Available MCP Tools (35)\n\n| Tool | Description | API Key |\n|------|-------------|---------|\n| `list_skills` | List all 77 finance skills | None |\n| `load_skill` | Load full skill documentation | None |\n| `start_research_goal` | Create an auditable research goal | None |\n| `get_research_goal` | Read the current research goal | None |\n| `add_goal_evidence` | Attach evidence to a research goal | None |\n| `update_research_goal_status` | Update goal lifecycle status | None |\n| `backtest` | Run vectorized backtest engine | None* |\n| `factor_analysis` | IC\u002FIR analysis + layered backtest | None* |\n| `analyze_options` | Black-Scholes price + Greeks | None |\n| `pattern_recognition` | Detect chart patterns (H&S, double top, etc.) | None |\n| `get_market_data` | Fetch OHLCV data across 6 sources (auto-detect + fallback) | None* |\n| `web_search` | Search the web via DuckDuckGo | None |\n| `read_url` | Fetch web page as Markdown | None |\n| `read_document` | Extract text from PDF\u002FDOCX\u002FXLSX\u002FPPTX\u002Fimages | None |\n| `write_file` | Write files (config, strategy code) | None |\n| `read_file` | Read file contents | None |\n| `analyze_trade_journal` | Parse broker CSV → profile + behavior diagnostics | None |\n| `extract_shadow_strategy` | Distill 3-5 if-then rules from profitable roundtrips | None |\n| `run_shadow_backtest` | Multi-market backtest + delta-PnL attribution | None* |\n| `render_shadow_report` | HTML\u002FPDF shadow report (8 sections + charts) | None |\n| `scan_shadow_signals` | Today's symbols matching the shadow's cadence | None |\n| `list_swarm_presets` | List multi-agent team presets | None |\n| `run_swarm` | Execute a multi-agent research team | LLM key |\n| `get_swarm_status` | Poll swarm run status without blocking | None |\n| `get_run_result` | Get final report and task summaries | None |\n| `list_runs` | List recent swarm runs with metadata | None |\n| `reap_stale_runs` | Finalize stale swarm runs | None |\n| `trading_connections` | List selectable connector profiles | None |\n| `trading_select_connection` | Select the default connector profile | None |\n| `trading_check` | Check connector readiness | Connector app\u002FOAuth |\n| `trading_account` | Read account summary from selected connector | Connector app\u002FOAuth |\n| `trading_positions` | Read positions from selected connector | Connector app\u002FOAuth |\n| `trading_orders` | Read open orders from selected connector | Connector app\u002FOAuth |\n| `trading_quote` | Read a quote snapshot from selected connector | Connector app\u002FOAuth |\n| `trading_history` | Read historical bars from selected connector | Connector app\u002FOAuth |\n\n\u003Csub>*A-share symbols require `TUSHARE_TOKEN`. HK\u002FUS\u002Fcrypto are free. Trading connector rows use the selected connector profile, e.g. IBKR local TWS\u002FGateway or Robinhood MCP OAuth.\u003C\u002Fsub>\n\n## Quick Start\n\n```bash\npip install vibe-trading-ai\n```\n\nThat's it — no API keys needed for HK\u002FUS\u002Fcrypto markets. Start using `backtest`, `get_market_data`, `analyze_options`, `analyze_trade_journal`, `extract_shadow_strategy`, `web_search`, the **Alpha Zoo** (`vibe-trading alpha bench --zoo gtja191 --universe csi300 --period 2018-2025`), and all 77 skills immediately.\n\n## Loading Tools from External MCP Servers\n\nThe built-in agent can load tools from your own external MCP servers in addition to its local toolset.\n\n> **Note:** This is the *MCP client* path — the opposite of the MCP plugin listed above. The plugin above makes Vibe-Trading's tools available to your agents. This section lets Vibe-Trading's own agent call tools from *your* servers.\n\n### Setup\n\nCreate `~\u002F.vibe-trading\u002Fagent.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"my-server\": {\n      \"command\": \"uvx\",\n      \"args\": [\"my-mcp-server\"],\n      \"toolTimeout\": 30,\n      \"enabledTools\": [\"*\"]\n    }\n  }\n}\n```\n\nOrdinary external MCP tools appear automatically in every `vibe-trading run` \u002F `vibe-trading chat` call. They are injected after local tools under stable names: `mcp_\u003Cserver>_\u003Ctool>`. Live-broker MCP servers are consumed through the connector-scoped `trading_*` tools instead of exposing raw `mcp_\u003Cbroker>_*` tools to the agent.\n\n### Official IBKR MCP read-only probe\n\nAdd Interactive Brokers' official MCP endpoint as a read-only external server:\n\n```json\n{\n  \"mcpServers\": {\n    \"ibkr\": {\n      \"type\": \"streamableHttp\",\n      \"url\": \"https:\u002F\u002Fapi.ibkr.com\u002Fv1\u002Fapi\u002Fmcp\",\n      \"auth\": {\n        \"type\": \"oauth\",\n        \"scopes\": [\"mcp.read\"],\n        \"clientName\": \"Vibe-Trading\",\n        \"cacheDir\": \"~\u002F.vibe-trading\u002Flive\u002Fibkr\u002Foauth\"\n      },\n      \"enabledTools\": [\"*\"]\n    }\n  }\n}\n```\n\nAuthorize it with `vibe-trading connector authorize ibkr-live-official-mcp-readonly`. The wildcard is accepted\nonly for this `mcp.read` probe. Generic `trading_account` and `trading_positions`\ncalls stay disabled until IBKR publishes stable read tool names that Vibe-Trading\ncan map safely; `mcp.write` requires an explicit tool allowlist and live\norder-guard handling. If IBKR issues a pre-registered OAuth client, add\n`clientId` and `clientSecret` inside `auth`.\n\n### Trading connector profiles\n\nThe public trading surface is connector-first. Choose a connector profile, then\npaper\u002Flive is just an attribute under that connector.\n\n```bash\npip install \"vibe-trading-ai[ibkr]\"\nvibe-trading connector list\nvibe-trading connector use ibkr-paper-local\nvibe-trading connector configure ibkr-paper-local --yes\nvibe-trading connector check\nvibe-trading connector account\nvibe-trading connector positions\nvibe-trading connector orders\nvibe-trading connector quote AAPL\nvibe-trading connector history AAPL --duration \"30 D\" --bar-size \"1 day\"\n```\n\nDefault ports are TWS paper `7497`, IB Gateway paper `4002`, TWS live-readonly\n`7496`, and IB Gateway live-readonly `4001`.\n\n### Config fields\n\n| Field | Required | Default | Description |\n|-------|----------|---------|-------------|\n| `type` | stdio: no, HTTP: yes | inferred only for stdio | Transport type. Use `sse` or `streamableHttp` for URL-based servers. |\n| `command` | stdio: yes | — | Executable to launch |\n| `args` | no | `[]` | Command arguments |\n| `env` | no | `{}` | Extra env vars for the subprocess |\n| `url` | HTTP: yes | — | Remote SSE \u002F streamable HTTP endpoint URL |\n| `headers` | no | `{}` | Extra HTTP headers for SSE \u002F streamable HTTP servers |\n| `toolTimeout` | no | `30` | Seconds before a tool call is cancelled |\n| `enabledTools` | no | `[\"*\"]` | Allowlist of remote tool names. `[\"*\"]` enables all |\n\nFor URL-based transports, `type` is required. The agent no longer guesses between SSE and streamable HTTP from the URL suffix.\n\n### Per-session override (API)\n\n> **Security — disabled by default.** `mcpServers` defines subprocess `command`\u002F`args`\u002F`env` and is therefore restricted to operator-level trust. API callers **cannot** inject MCP server definitions through `POST \u002Fsessions` unless the server operator explicitly opts in.\n\nTo enable session-level MCP injection, set the environment variable on the server before starting the agent:\n\n```bash\nexport ALLOW_SESSION_MCP_SERVERS=1\n```\n\nWith the opt-in active, pass `mcpServers` inside `session.config` to extend or replace the global config for that session only:\n\n```json\n{\n  \"config\": {\n    \"mcpServers\": {\n      \"research\": {\n        \"command\": \"uvx\",\n        \"args\": [\"research-mcp\"],\n        \"enabledTools\": [\"search\"]\n      }\n    }\n  }\n}\n```\n\nWithout `ALLOW_SESSION_MCP_SERVERS=1`, any `mcpServers` key in `session.config` is silently stripped before config loading. The global operator config on disk (`~\u002F.vibe-trading\u002Fagent.json`) is always respected regardless of this flag.\n\n### v1 limits\n\n- **Transport:** stdio, SSE, and streamable HTTP.\n- **Execution:** serial only. MCP tools never enter the parallel readonly path.\n- **Surfaces:** tools only. Resources and prompts are not exposed.\n- **Swarm:** MCP tools are excluded from Swarm worker registries in v1.\n- **Hot reload:** not supported. Restart the process to pick up config changes.\n\n### Failure handling\n\n| Case | Behavior |\n|------|----------|\n| Missing config file | falls back to empty config — no MCP servers loaded |\n| Invalid config file | logs a warning and falls back to empty config |\n| Server fails to start | that server is skipped; local tools and other servers still load |\n| Tool call times out | returns a normalized error payload instead of raising |\n| Two server names collide after sanitization | deterministic hash suffix appended; operator warning emitted |\n\n\n\n## Examples\n\n**Backtest a MACD strategy on Apple:**\n> Backtest AAPL with MACD crossover strategy (fast=12, slow=26, signal=9) for 2024\n\n**Analyze my trade journal and build a Shadow Account:**\n> Call analyze_trade_journal on ~\u002FDownloads\u002Ftonghuashun.csv, then extract_shadow_strategy with min_support=3, then run_shadow_backtest for the last year, then render_shadow_report.\n\n**Run an investment committee review:**\n> Use run_swarm with investment_committee preset to evaluate NVDA. Variables: target=NVDA.US, market=US\n\n**Factor analysis on CSI 300:**\n> Run factor_analysis on CSI 300 stocks using pe_ttm factor from 2023 to 2024\n\n**Options analysis:**\n> Use analyze_options: spot=100, strike=105, 90 days, vol=25%, rate=3%\n","# Vibe-Trading\n\nProfessional finance research toolkit with AI-powered backtesting (7 engines), multi-agent teams, 77 specialized skills, the **Alpha Zoo** (452 pre-built quantitative alphas across qlib158 \u002F alpha101 \u002F gtja191 \u002F academic with one-line CLI benchmarking), and the Shadow Account loop — extract your implicit trading rules from a journal, backtest them across A股\u002F港股\u002F美股\u002Fcrypto, then see where they would have served you better.\n\n## Setup\n\n```bash\npip install vibe-trading-ai\n```\n\n> **Package name vs commands:** The PyPI package is `vibe-trading-ai`. Once installed, you get:\n>\n> | Command | Purpose |\n> |---------|---------|\n> | `vibe-trading` | Interactive CLI \u002F TUI |\n> | `vibe-trading serve` | Launch FastAPI web server |\n> | `vibe-trading-mcp` | Start MCP server (for Claude Desktop, OpenClaw, Cursor, etc.) |\n\nAdd to your agent's MCP config:\n\n```json\n{\n  \"mcpServers\": {\n    \"vibe-trading\": {\n      \"command\": \"vibe-trading-mcp\"\n    }\n  }\n}\n```\n\n### API Key Requirements\n\nCore research MCP tools work with zero API keys for HK\u002FUS\u002Fcrypto. After `pip install`, backtesting, market data, factor analysis, options pricing, chart patterns, web search, document reading, trade journal analysis, shadow-account extraction\u002Fbacktest\u002Freport, the Alpha Zoo (452 pre-built alphas), and all 77 skills are ready to use. IBKR tools require a local TWS \u002F IB Gateway session; `run_swarm` requires an LLM key.\n\n| Feature | Key needed | When |\n|---------|-----------|------|\n| HK\u002FUS equities & crypto | None | Always free (yfinance + OKX) |\n| China A-share data | `TUSHARE_TOKEN` | Only if you query A-share symbols |\n| Multi-agent swarm (`run_swarm`) | `OPENAI_API_KEY` + `LANGCHAIN_MODEL_NAME` | Swarm spawns internal LLM workers |\n\n## What You Can Do\n\n### Shadow Account — flagship loop\n\nFeed a CSV broker export (同花顺 \u002F 东财 \u002F 富途 \u002F generic), and the agent will:\n1. `analyze_trade_journal` — profile your behavior (holding period, win rate, disposition effect, chasing, overtrading, anchoring).\n2. `extract_shadow_strategy` — distill 3-5 if-then rules that describe your profitable roundtrips.\n3. `run_shadow_backtest` — backtest those rules across A\u002FHK\u002FUS\u002Fcrypto and compute delta-PnL vs your realized trades.\n4. `render_shadow_report` — produce an HTML\u002FPDF report (8 sections + charts) with today's matching signals.\n5. `scan_shadow_signals` — list today's symbols that match your shadow's entry cadence (research only).\n\n### Backtesting\nCreate and run quantitative strategies across 7 engines (ChinaA, GlobalEquity, Crypto, ChinaFutures, GlobalFutures, Forex + options) with 7 data sources:\n- **HK\u002FUS equities** via yfinance (free, no API key)\n- **Cryptocurrency** via OKX or CCXT\u002F100+ exchanges (free, no API key)\n- **China A-shares** via Tushare (token) or AKShare (free fallback)\n- **Futures, forex, macro** via AKShare (free, no API key)\n- **HK & A-share equities** via Futu (broker login required, optional)\n\nExample workflow:\n1. Use `list_skills()` to discover strategy patterns\n2. Use `load_skill(\"strategy-generate\")` for the strategy creation guide\n3. Use `write_file()` to create `config.json` and `code\u002Fsignal_engine.py`\n4. Use `backtest()` to run and get metrics (Sharpe, return, drawdown, etc.)\n\n### Multi-Agent Swarm Teams\n29 pre-built agent teams for complex research:\n- **Investment Committee**: bull\u002Fbear debate → risk review → PM decision\n- **Global Equities Desk**: A-share + HK\u002FUS + crypto → global strategist\n- **Crypto Trading Desk**: funding\u002Fbasis + liquidation + flow → risk manager\n- **Earnings Research Desk**: fundamentals + revisions + options → earnings strategist\n- **Macro\u002FRates\u002FFX Desk**: rates + FX + commodities → macro PM\n- **Quant Strategy Desk**: screening → factor research → backtest → risk audit\n- **Risk Committee**: drawdown, tail risk, regime analysis\n- And 22 more specialized teams\n\nUse `list_swarm_presets()` to see all teams, then `run_swarm()` to execute.\n\n### Alpha Zoo (452 pre-built alphas)\nOne-line cross-sectional IC \u002F IR \u002F alive-reversed-dead categorisation across four bundled zoos:\n- **qlib158** (154 alphas) — Microsoft Qlib's `Alpha158` feature handler, Apache-2.0 with pinned commit SHA.\n- **alpha101** (101 alphas) — Kakushadze (2015) \"101 Formulaic Alphas\" (arXiv:1601.00991), written from the paper appendix.\n- **gtja191** (191 alphas) — Guotai Junan 2014 \"191 Short-period Trading Alpha Factors\" research report.\n- **academic** (6 factors) — Fama-French 5 + Carhart momentum (honest price-based proxies).\n\nEach alpha ships with `__alpha_meta__` (formula LaTeX + theme + universe + warmup + columns required), guarded by an AST purity gate + 300-row lookahead sentinel test. Use the `vibe-trading alpha {list,show,bench,compare,export-manifest}` CLI, the `\u002Falpha\u002F*` REST routes (browser at `\u002Falpha-zoo`), or compose multi-factor signals via `ZooSignalEngine.from_zoo(...)`.\n\n### Finance Skills (77)\nComprehensive knowledge base covering:\n- Technical analysis (candlestick, Elliott wave, Ichimoku, SMC, harmonic, chanlun)\n- Quantitative methods (factor research, ML strategy, pair trading, multi-factor)\n- Risk management (VaR\u002FCVaR, stress testing, hedging)\n- Options (Black-Scholes, Greeks, multi-leg strategies, payoff diagrams)\n- HK\u002FUS equities (SEC filings, earnings revisions, ETF flows, ADR\u002FH-share arbitrage)\n- Crypto trading desk (funding rates, liquidation heatmaps, stablecoin flows, token unlocks, DeFi yields)\n- Behavioral finance, trade journal diagnostics, shadow account\n- Macro analysis, credit research, sector rotation, and more\n\nUse `load_skill(name)` to access full methodology docs with code templates.\n\n## Available MCP Tools (35)\n\n| Tool | Description | API Key |\n|------|-------------|---------|\n| `list_skills` | List all 77 finance skills | None |\n| `load_skill` | Load full skill documentation | None |\n| `start_research_goal` | Create an auditable research goal | None |\n| `get_research_goal` | Read the current research goal | None |\n| `add_goal_evidence` | Attach evidence to a research goal | None |\n| `update_research_goal_status` | Update goal lifecycle status | None |\n| `backtest` | Run vectorized backtest engine | None* |\n| `factor_analysis` | IC\u002FIR analysis + layered backtest | None* |\n| `analyze_options` | Black-Scholes price + Greeks | None |\n| `pattern_recognition` | Detect chart patterns (H&S, double top, etc.) | None |\n| `get_market_data` | Fetch OHLCV data across 6 sources (auto-detect + fallback) | None* |\n| `web_search` | Search the web via DuckDuckGo | None |\n| `read_url` | Fetch web page as Markdown | None |\n| `read_document` | Extract text from PDF\u002FDOCX\u002FXLSX\u002FPPTX\u002Fimages | None |\n| `write_file` | Write files (config, strategy code) | None |\n| `read_file` | Read file contents | None |\n| `analyze_trade_journal` | Parse broker CSV → profile + behavior diagnostics | None |\n| `extract_shadow_strategy` | Distill 3-5 if-then rules from profitable roundtrips | None |\n| `run_shadow_backtest` | Multi-market backtest + delta-PnL attribution | None* |\n| `render_shadow_report` | HTML\u002FPDF shadow report (8 sections + charts) | None |\n| `scan_shadow_signals` | Today's symbols matching the shadow's cadence | None |\n| `list_swarm_presets` | List multi-agent team presets | None |\n| `run_swarm` | Execute a multi-agent research team | LLM key |\n| `get_swarm_status` | Poll swarm run status without blocking | None |\n| `get_run_result` | Get final report and task summaries | None |\n| `list_runs` | List recent swarm runs with metadata | None |\n| `reap_stale_runs` | Finalize stale swarm runs | None |\n| `trading_connections` | List selectable connector profiles | None |\n| `trading_select_connection` | Select the default connector profile | None |\n| `trading_check` | Check connector readiness | Connector app\u002FOAuth |\n| `trading_account` | Read account summary from selected connector | Connector app\u002FOAuth |\n| `trading_positions` | Read positions from selected connector | Connector app\u002FOAuth |\n| `trading_orders` | Read open orders from selected connector | Connector app\u002FOAuth |\n| `trading_quote` | Read a quote snapshot from selected connector | Connector app\u002FOAuth |\n| `trading_history` | Read historical bars from selected connector | Connector app\u002FOAuth |\n\n\u003Csub>*A-share symbols require `TUSHARE_TOKEN`. HK\u002FUS\u002Fcrypto are free. Trading connector rows use the selected connector profile, e.g. IBKR local TWS\u002FGateway or Robinhood MCP OAuth.\u003C\u002Fsub>\n\n## Quick Start\n\n```bash\npip install vibe-trading-ai\n```\n\nThat's it — no API keys needed for HK\u002FUS\u002Fcrypto markets. Start using `backtest`, `get_market_data`, `analyze_options`, `analyze_trade_journal`, `extract_shadow_strategy`, `web_search`, the **Alpha Zoo** (`vibe-trading alpha bench --zoo gtja191 --universe csi300 --period 2018-2025`), and all 77 skills immediately.\n\n## Loading Tools from External MCP Servers\n\nThe built-in agent can load tools from your own external MCP servers in addition to its local toolset.\n\n> **Note:** This is the *MCP client* path — the opposite of the MCP plugin listed above. The plugin above makes Vibe-Trading's tools available to your agents. This section lets Vibe-Trading's own agent call tools from *your* servers.\n\n### Setup\n\nCreate `~\u002F.vibe-trading\u002Fagent.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"my-server\": {\n      \"command\": \"uvx\",\n      \"args\": [\"my-mcp-server\"],\n      \"toolTimeout\": 30,\n      \"enabledTools\": [\"*\"]\n    }\n  }\n}\n```\n\nOrdinary external MCP tools appear automatically in every `vibe-trading run` \u002F `vibe-trading chat` call. They are injected after local tools under stable names: `mcp_\u003Cserver>_\u003Ctool>`. Live-broker MCP servers are consumed through the connector-scoped `trading_*` tools instead of exposing raw `mcp_\u003Cbroker>_*` tools to the agent.\n\n### Official IBKR MCP read-only probe\n\nAdd Interactive Brokers' official MCP endpoint as a read-only external server:\n\n```json\n{\n  \"mcpServers\": {\n    \"ibkr\": {\n      \"type\": \"streamableHttp\",\n      \"url\": \"https:\u002F\u002Fapi.ibkr.com\u002Fv1\u002Fapi\u002Fmcp\",\n      \"auth\": {\n        \"type\": \"oauth\",\n        \"scopes\": [\"mcp.read\"],\n        \"clientName\": \"Vibe-Trading\",\n        \"cacheDir\": \"~\u002F.vibe-trading\u002Flive\u002Fibkr\u002Foauth\"\n      },\n      \"enabledTools\": [\"*\"]\n    }\n  }\n}\n```\n\nAuthorize it with `vibe-trading connector authorize ibkr-live-official-mcp-readonly`. The wildcard is accepted\nonly for this `mcp.read` probe. Generic `trading_account` and `trading_positions`\ncalls stay disabled until IBKR publishes stable read tool names that Vibe-Trading\ncan map safely; `mcp.write` requires an explicit tool allowlist and live\norder-guard handling. If IBKR issues a pre-registered OAuth client, add\n`clientId` and `clientSecret` inside `auth`.\n\n### Trading connector profiles\n\nThe public trading surface is connector-first. Choose a connector profile, then\npaper\u002Flive is just an attribute under that connector.\n\n```bash\npip install \"vibe-trading-ai[ibkr]\"\nvibe-trading connector list\nvibe-trading connector use ibkr-paper-local\nvibe-trading connector configure ibkr-paper-local --yes\nvibe-trading connector check\nvibe-trading connector account\nvibe-trading connector positions\nvibe-trading connector orders\nvibe-trading connector quote AAPL\nvibe-trading connector history AAPL --duration \"30 D\" --bar-size \"1 day\"\n```\n\nDefault ports are TWS paper `7497`, IB Gateway paper `4002`, TWS live-readonly\n`7496`, and IB Gateway live-readonly `4001`.\n\n### Config fields\n\n| Field | Required | Default | Description |\n|-------|----------|---------|-------------|\n| `type` | stdio: no, HTTP: yes | inferred only for stdio | Transport type. Use `sse` or `streamableHttp` for URL-based servers. |\n| `command` | stdio: yes | — | Executable to launch |\n| `args` | no | `[]` | Command arguments |\n| `env` | no | `{}` | Extra env vars for the subprocess |\n| `url` | HTTP: yes | — | Remote SSE \u002F streamable HTTP endpoint URL |\n| `headers` | no | `{}` | Extra HTTP headers for SSE \u002F streamable HTTP servers |\n| `toolTimeout` | no | `30` | Seconds before a tool call is cancelled |\n| `enabledTools` | no | `[\"*\"]` | Allowlist of remote tool names. `[\"*\"]` enables all |\n\nFor URL-based transports, `type` is required. The agent no longer guesses between SSE and streamable HTTP from the URL suffix.\n\n### Per-session override (API)\n\n> **Security — disabled by default.** `mcpServers` defines subprocess `command`\u002F`args`\u002F`env` and is therefore restricted to operator-level trust. API callers **cannot** inject MCP server definitions through `POST \u002Fsessions` unless the server operator explicitly opts in.\n\nTo enable session-level MCP injection, set the environment variable on the server before starting the agent:\n\n```bash\nexport ALLOW_SESSION_MCP_SERVERS=1\n```\n\nWith the opt-in active, pass `mcpServers` inside `session.config` to extend or replace the global config for that session only:\n\n```json\n{\n  \"config\": {\n    \"mcpServers\": {\n      \"research\": {\n        \"command\": \"uvx\",\n        \"args\": [\"research-mcp\"],\n        \"enabledTools\": [\"search\"]\n      }\n    }\n  }\n}\n```\n\nWithout `ALLOW_SESSION_MCP_SERVERS=1`, any `mcpServers` key in `session.config` is silently stripped before config loading. The global operator config on disk (`~\u002F.vibe-trading\u002Fagent.json`) is always respected regardless of this flag.\n\n### v1 limits\n\n- **Transport:** stdio, SSE, and streamable HTTP.\n- **Execution:** serial only. MCP tools never enter the parallel readonly path.\n- **Surfaces:** tools only. Resources and prompts are not exposed.\n- **Swarm:** MCP tools are excluded from Swarm worker registries in v1.\n- **Hot reload:** not supported. Restart the process to pick up config changes.\n\n### Failure handling\n\n| Case | Behavior |\n|------|----------|\n| Missing config file | falls back to empty config — no MCP servers loaded |\n| Invalid config file | logs a warning and falls back to empty config |\n| Server fails to start | that server is skipped; local tools and other servers still load |\n| Tool call times out | returns a normalized error payload instead of raising |\n| Two server names collide after sanitization | deterministic hash suffix appended; operator warning emitted |\n\n\n\n## Examples\n\n**Backtest a MACD strategy on Apple:**\n> Backtest AAPL with MACD crossover strategy (fast=12, slow=26, signal=9) for 2024\n\n**Analyze my trade journal and build a Shadow Account:**\n> Call analyze_trade_journal on ~\u002FDownloads\u002Ftonghuashun.csv, then extract_shadow_strategy with min_support=3, then run_shadow_backtest for the last year, then render_shadow_report.\n\n**Run an investment committee review:**\n> Use run_swarm with investment_committee preset to evaluate NVDA. Variables: target=NVDA.US, market=US\n\n**Factor analysis on CSI 300:**\n> Run factor_analysis on CSI 300 stocks using pe_ttm factor from 2023 to 2024\n\n**Options analysis:**\n> Use analyze_options: spot=100, strike=105, 90 days, vol=25%, rate=3%\n",{"env":24,"mcp":34,"name":5,"version":37,"description":7,"dependencies":38},[25,28,31],{"name":26,"required":20,"description":27},"TUSHARE_TOKEN","Tushare API token for China A-share data (optional — HK\u002FUS\u002Fcrypto work without any key)",{"name":29,"required":20,"description":30},"OPENAI_API_KEY","OpenAI-compatible API key — only needed for run_swarm (multi-agent teams). All other tools work without it.",{"name":32,"required":20,"description":33},"LANGCHAIN_MODEL_NAME","LLM model name for run_swarm (e.g. deepseek\u002Fdeepseek-v4-pro). Only needed if using run_swarm.",{"args":35,"command":36},[],"vibe-trading-mcp","0.1.9",{"pip":39,"python":41},[40],"vibe-trading-ai",">=3.11","master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Fv\u002Fvibe-trading",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":8,"skillName":5,"commands":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill vibe-trading",{"tool":57,"command":58},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill vibe-trading",{"tool":60,"command":61},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill vibe-trading","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fv\u002Fvibe-trading\u002FSKILL.md",true,[],[66,73,80,87,94,101],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":19},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":19},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]