Skip to content

Commit 3c832c0

Browse files
committed
refactor: rename run_mrtr_client to run_stateless_client
1 parent 4113884 commit 3c832c0

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

conformance/src/bin/client.rs

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -890,12 +890,14 @@ impl rmcp::transport::Transport<RoleClient> for StatelessHttpTransport {
890890
}
891891
}
892892

893-
/// SEP-2322 MRTR client scenario: the mock server has no `initialize` handler
894-
/// (stateless lifecycle), so skip the handshake with `serve_directly` and let
895-
/// the high-level `call_tool` helper drive the `input_required` retry rounds.
896-
/// The mock server verifies requestState echo, fresh JSON-RPC ids on retry,
897-
/// state omission, isolation between tools, and the `resultType` default.
898-
async fn run_mrtr_client(server_url: &str) -> anyhow::Result<()> {
893+
/// A stateless-lifecycle client: the scenario's server has no `initialize`
894+
/// handler, so skip the handshake with `serve_directly`, list the tools, and
895+
/// call each one via the high-level `call_tool` helper (which drives SEP-2322
896+
/// `input_required` retry rounds when the server requests them). Used by the
897+
/// `sep-2322-client-request-state` scenario, whose mock server verifies
898+
/// requestState echo, fresh JSON-RPC ids on retry, state omission, isolation
899+
/// between tools, and the `resultType` default.
900+
async fn run_stateless_client(server_url: &str) -> anyhow::Result<()> {
899901
let transport = StatelessHttpTransport::new(server_url);
900902
let peer_info = InitializeResult::new(ServerCapabilities::builder().enable_tools().build())
901903
.with_protocol_version(ProtocolVersion::V_2026_07_28);
@@ -958,7 +960,7 @@ async fn main() -> anyhow::Result<()> {
958960
run_elicitation_defaults_client(&server_url).await?
959961
}
960962
"sse-retry" => run_sse_retry_client(&server_url).await?,
961-
"sep-2322-client-request-state" => run_mrtr_client(&server_url).await?,
963+
"sep-2322-client-request-state" => run_stateless_client(&server_url).await?,
962964

963965
// Auth scenarios - standard OAuth flow
964966
"auth/metadata-default"

0 commit comments

Comments
 (0)