alexhancock/mcp-crate-cleanup (#4885)

This commit is contained in:
Alex Hancock
2025-09-29 17:00:17 -04:00
committed by GitHub
parent 2bd18a757b
commit cb0eca9966
78 changed files with 1039 additions and 1090 deletions
+6 -5
View File
@@ -1,6 +1,7 @@
#![cfg(test)]
use rmcp::model::ErrorCode;
use rmcp::model::{CallToolRequestParam, ErrorCode};
use rmcp::object;
use serde_json::json;
use goose::agents::platform_tools::PLATFORM_MANAGE_SCHEDULE_TOOL_NAME;
@@ -808,11 +809,11 @@ async fn test_schedule_tool_dispatch() {
.await;
// Test that the tool is properly dispatched through dispatch_tool_call
let tool_call = mcp_core::tool::ToolCall {
name: PLATFORM_MANAGE_SCHEDULE_TOOL_NAME.to_string(),
arguments: json!({
let tool_call = CallToolRequestParam {
name: PLATFORM_MANAGE_SCHEDULE_TOOL_NAME.into(),
arguments: Some(object!({
"action": "list"
}),
})),
};
let (request_id, result) = agent