Skip to content

Commit ad4d961

Browse files
committed
fix: typo
1 parent e3e3664 commit ad4d961

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

crates/rust-mcp-sdk/src/hyper_servers/routes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pub fn app_routes(state: Arc<AppState>, server_options: &HyperServerOptions) ->
2727
))
2828
.merge({
2929
let mut r = Router::new();
30-
if matches!(server_options.supprt_sse, Some(supprt_sse) if supprt_sse) {
30+
if matches!(server_options.support_sse, Some(support_sse) if support_sse) {
3131
r = r
3232
.merge(sse_routes::routes(
3333
state.clone(),

crates/rust-mcp-sdk/src/hyper_servers/server.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ pub struct HyperServerOptions {
7070
/// Optional thread-safe session id generator to generate unique session IDs.
7171
pub session_id_generator: Option<Arc<dyn IdGenerator>>,
7272
/// If set to true, the SSE transport will also be supported for backward compatibility (default: true)
73-
pub supprt_sse: Option<bool>,
73+
pub support_sse: Option<bool>,
7474
/// List of allowed host header values for DNS rebinding protection.
7575
/// If not specified, host validation is disabled.
7676
pub allowed_hosts: Option<Vec<String>>,
@@ -206,7 +206,7 @@ impl Default for HyperServerOptions {
206206
ssl_key_path: None,
207207
session_id_generator: None,
208208
enable_json_response: None,
209-
supprt_sse: Some(true),
209+
support_sse: Some(true),
210210
allowed_hosts: None,
211211
allowed_origins: None,
212212
dns_rebinding_protection: false,
@@ -316,7 +316,7 @@ impl HyperServer {
316316
self.options.streamable_http_endpoint()
317317
);
318318

319-
if self.options.supprt_sse.unwrap_or_default() {
319+
if self.options.support_sse.unwrap_or_default() {
320320
let sse_url = format!(
321321
"\n• SSE {} is available at {}://{}{}",
322322
server_type,

0 commit comments

Comments
 (0)