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
+5 -5
View File
@@ -271,16 +271,16 @@ pub fn apply_inspection_results_to_permissions(
mod tests {
use super::*;
use crate::conversation::message::ToolRequest;
use mcp_core::ToolCall;
use serde_json::json;
use rmcp::model::CallToolRequestParam;
use rmcp::object;
#[test]
fn test_apply_inspection_results() {
let tool_request = ToolRequest {
id: "req_1".to_string(),
tool_call: Ok(ToolCall {
name: "test_tool".to_string(),
arguments: json!({}),
tool_call: Ok(CallToolRequestParam {
name: "test_tool".into(),
arguments: Some(object!({})),
}),
};