fix: gate optional dependencies behind feature flags (#672)

This commit is contained in:
Dale Seo 2026-02-24 11:02:28 -05:00 • committed by GitHub
commit 91e208efb7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,12 +1,14 @@
use futures::{FutureExt, future::BoxFuture};
use thiserror::Error;
#[cfg(feature = "server")]
use crate::model::ServerJsonRpcMessage;
use crate::{
error::ErrorData as McpError,
model::{
CancelledNotification, CancelledNotificationParam, Extensions, GetExtensions, GetMeta,
JsonRpcError, JsonRpcMessage, JsonRpcNotification, JsonRpcRequest, JsonRpcResponse, Meta,
NumberOrString, ProgressToken, RequestId, ServerJsonRpcMessage,
NumberOrString, ProgressToken, RequestId,
},
transport::{DynamicTransportError, IntoTransport, Transport},
};