アーキテクチャ
ユーザー (CLI)
│
▼
Claude Agent SDK (Python)
├── System Prompt: CFOペルソナ + 行動指針
├── Extended Thinking: 複雑な財務推論
│
├── MCP Server: 知識ベース検索
│ └── search_knowledge(query, filters)
│
├── MCP Server: 財務計算機
│ ├── calc_dcf(fcf, growth, wacc, years)
│ ├── calc_wacc(equity, debt, re, rd, tax)
│ ├── calc_roic(nopat, invested_capital)
│ ├── calc_eva(roic, wacc, invested_capital)
│ ├── decompose_roe(...)
│ └── calc_pbr_decomposition(roe, per)
│
└── MCP Server: 経験ログ
├── log_decision(context, decision, reasoning)
└── search_past_decisions(query)
必要パッケージ
| Package | 用途 |
| claude-agent-sdk | エージェントフレームワーク |
| chromadb | ベクトルDB |
| voyageai | 金融特化Embedding API |
| fastmcp | MCPサーバー構築 |