Skip to content

Commit 79e4e8d

Browse files
fix(security): Add meta field to Tool struct in tests
Upstream changes to rmcp::model::Tool now require a meta field. Updated test helper function create_test_tool to include meta: None. Fixes compilation error after rebasing on updated main. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 5e4de3c commit 79e4e8d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

crates/agentgateway/src/mcp/security/native/tool_poisoning.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ mod tests {
225225
description: description.map(|s| Cow::Owned(s.to_string())),
226226
icons: None,
227227
title: None,
228+
meta: None,
228229
input_schema: Arc::new(
229230
serde_json::from_value(serde_json::json!({"type": "object"}))
230231
.unwrap()

0 commit comments

Comments
 (0)