Skip to content

Commit 9c361ed

Browse files
committed
test(mcp): add tool_policy All to e2e test that exercises write tool (compute)
1 parent a9115b6 commit 9c361ed

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

crates/rustapi-mcp/tests/mcp_e2e.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,8 @@ async fn test_mcp_tool_call_get_with_path_param_and_post_body() {
172172
McpConfig::new()
173173
.name("e2e-mcp")
174174
.version("0.0.0")
175-
.allowed_tags(["agent"]),
175+
.allowed_tags(["agent"])
176+
.tool_policy(rustapi_mcp::ToolPolicy::All), // needs the POST compute tool
176177
);
177178

178179
let http_listener = std::net::TcpListener::bind("127.0.0.1:0").unwrap();

0 commit comments

Comments
 (0)