akshare-mcp 0.1.2

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 NlpParams {
    pub question: String,
}

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

    #[test]
    fn test_nlp_params() {
        let json = r#"{"question": "What is the PE ratio of Apple?"}"#;
        let params: NlpParams = serde_json::from_str(json).unwrap();
        assert_eq!(params.question, "What is the PE ratio of Apple?");
    }
}