Skip to content

Commit fdefdc2

Browse files
committed
style(mcp): format combined tool catalog assertions
1 parent 77e873f commit fdefdc2

2 files changed

Lines changed: 12 additions & 4 deletions

File tree

‎crates/adapters/gfa-mcp/src/lib.rs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
//! Official-SDK MCP adapter over the transport-independent lifecycle service.
22
mod history;
3+
mod planning;
34
mod play;
45
mod play_types;
56
mod resources;
67
mod types;
7-
mod planning;
8-
use planning::{Analysis, AnalysisArgs, Simulation, SimulationArgs};
98
use gfa_api_types::ApiError;
109
use gfa_core::Viewer;
1110
use gfa_service::GameService;
1211
use history::{HistoryArgs, HistoryOutput, ReplayArgs, ReplayOutput};
12+
use planning::{Analysis, AnalysisArgs, Simulation, SimulationArgs};
1313
use play_types::*;
1414
use rmcp::{
1515
model::{

‎crates/apps/gfa-server/src/mcp_tests.rs‎

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff 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"))

0 commit comments

Comments
 (0)