e94ec8153d
**New Tool: get_latest_report** - Returns the most recent backtest report from the database - Includes full report details: metrics, paths, tags, notes, verdict - Optional include_chart parameter (default: true) - Returns equity chart as base64 PNG when available **Implementation:** - ReportDb.get_latest(): Query for most recent report by created_at DESC - handle_get_latest_report(): Fetches report and reads equity.png from charts_dir - Base64 encoding using base64 crate v0.22 - Graceful handling when chart not found (equity_chart_error field) **Files Changed:** - storage/database.rs: Added get_latest() method - tools/definitions.rs: Added tool_get_latest_report() definition - tools/handlers/mod.rs: Added dispatch for get_latest_report - tools/handlers/reports.rs: Implemented handler with base64 chart encoding - Cargo.toml: Added base64 = 0.22 dependency
31 lines
783 B
TOML
31 lines
783 B
TOML
[package]
|
|
name = "mt5-quant"
|
|
version = "1.27.0"
|
|
edition = "2021"
|
|
description = "MT5-Quant MCP Server - Exposes MT5 backtest and optimization tools via MCP"
|
|
authors = ["masdevid <masdevid@example.com>"]
|
|
|
|
[[bin]]
|
|
name = "mt5-quant"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
tokio = { version = "1.0", features = ["full"] }
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "1.0"
|
|
serde_yaml = "0.9"
|
|
clap = { version = "4.0", features = ["derive"] }
|
|
anyhow = "1.0"
|
|
tracing = "0.1"
|
|
tracing-subscriber = "0.3"
|
|
uuid = { version = "1.0", features = ["v4"] }
|
|
regex = "1.0"
|
|
dirs = "5.0"
|
|
walkdir = "2.0"
|
|
chrono = { version = "0.4", features = ["serde"] }
|
|
encoding_rs = "0.8"
|
|
tempfile = "3.0"
|
|
roxmltree = "0.21.1"
|
|
rusqlite = { version = "0.31", features = ["bundled"] }
|
|
base64 = "0.22"
|