File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11//! Official-SDK MCP adapter over the transport-independent lifecycle service.
22mod history;
3+ mod planning;
34mod play;
45mod play_types;
56mod resources;
67mod types;
7- mod planning;
8- use planning:: { Analysis , AnalysisArgs , Simulation , SimulationArgs } ;
98use gfa_api_types:: ApiError ;
109use gfa_core:: Viewer ;
1110use gfa_service:: GameService ;
1211use history:: { HistoryArgs , HistoryOutput , ReplayArgs , ReplayOutput } ;
12+ use planning:: { Analysis , AnalysisArgs , Simulation , SimulationArgs } ;
1313use play_types:: * ;
1414use rmcp:: {
1515 model:: {
Original file line number Diff line number Diff line change @@ -18,7 +18,11 @@ async fn mcp_discovery_output_schemas_match_success_and_error_results() -> Resul
1818 . all( |name| tools. iter( ) . any( |tool| tool. name == * name) ) ) ;
1919 assert_eq ! (
2020 tools. len( ) ,
21- tools. iter( ) . map( |tool| tool. name. as_ref( ) ) . collect:: <std:: collections:: BTreeSet <_>>( ) . len( )
21+ tools
22+ . iter( )
23+ . map( |tool| tool. name. as_ref( ) )
24+ . collect:: <std:: collections:: BTreeSet <_>>( )
25+ . len( )
2226 ) ;
2327 for tool in tools. iter ( ) . filter ( |tool| {
2428 matches ! (
@@ -94,7 +98,11 @@ async fn mcp_official_client_negotiates_and_reads_the_real_catalog() -> Result<(
9498 . all( |name| tools. iter( ) . any( |tool| tool. name == * name) ) ) ;
9599 assert_eq ! (
96100 tools. len( ) ,
97- tools. iter( ) . map( |tool| tool. name. as_ref( ) ) . collect:: <std:: collections:: BTreeSet <_>>( ) . len( )
101+ tools
102+ . iter( )
103+ . map( |tool| tool. name. as_ref( ) )
104+ . collect:: <std:: collections:: BTreeSet <_>>( )
105+ . len( )
98106 ) ;
99107 let result = client
100108 . call_tool ( CallToolRequestParams :: new ( "list_games" ) )
You can’t perform that action at this time.
0 commit comments