akshare-mcp 0.1.9

MCP server for akshare-rs — financial market data via Model Context Protocol
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use rmcp::schemars;

#[derive(serde::Deserialize, schemars::JsonSchema)]
pub struct CryptoDateParams {
    pub date: String,
}

#[cfg(test)]
mod tests {
    use super::*;

    #[test]
    fn test_crypto_date_params() {
        let json = r#"{"date": "20240101"}"#;
        let params: CryptoDateParams = serde_json::from_str(json).unwrap();
        assert_eq!(params.date, "20240101");
    }
}