chore: upgrade rmcp crate from 0.10.0 to 0.12.0

This commit is contained in:
Michael Bolin
2025-12-18 14:11:25 -08:00
parent 2f048f2063
commit aea7a3c73f
8 changed files with 61 additions and 20 deletions
+2 -2
View File
@@ -183,10 +183,10 @@ impl ServerHandler for ExecTool {
async fn on_custom_notification(
&self,
notification: rmcp::model::CustomClientNotification,
notification: rmcp::model::CustomNotification,
_context: rmcp::service::NotificationContext<rmcp::RoleServer>,
) {
let rmcp::model::CustomClientNotification { method, params, .. } = notification;
let rmcp::model::CustomNotification { method, params, .. } = notification;
if method == MCP_SANDBOX_STATE_NOTIFICATION
&& let Some(params) = params
{
+2 -2
View File
@@ -9,7 +9,7 @@ use rmcp::model::ClientCapabilities;
use rmcp::model::ClientInfo;
use rmcp::model::CreateElicitationRequestParam;
use rmcp::model::CreateElicitationResult;
use rmcp::model::CustomClientNotification;
use rmcp::model::CustomNotification;
use rmcp::model::ElicitationAction;
use rmcp::service::RunningService;
use rmcp::transport::ConfigureCommandExt;
@@ -129,7 +129,7 @@ async fn send_sandbox_notification<S>(
where
S: Service<RoleClient> + ClientHandler,
{
let sandbox_state_notification = CustomClientNotification::new(
let sandbox_state_notification = CustomNotification::new(
MCP_SANDBOX_STATE_NOTIFICATION,
Some(serde_json::to_value(sandbox_state)?),
);